rgb-color-unpack

bradzilla84/color-rgb-hsl/rgb-color-unpack

No description
rgb-color-unpack
@/rgb-color-unpack
IN@/rgb-color-pack
INITpulse
rgb-color-unpack
IN
Red
Green
Blue
Hex
INIT
Hexbyte
Bluenumber
Greennumber
Rednumber
To use the node in your project you should have the bradzilla84/color-rgb-hsl library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.

C++ implementation

struct State {
    // this is a regular state related to the patch (i.e. constructor in this case)
};

{{ GENERATED_CODE }}

void evaluate(Context ctx) {

    if (!isInputDirty<input_INIT>(ctx)){
        return;}


    auto Color = getValue<input_IN>(ctx);
    emitValue<output_Red>(ctx, Color.Red);
    emitValue<output_Green>(ctx, Color.Green);
    emitValue<output_Blue>(ctx, Color.Blue);
    emitValue<output_Hex>(ctx, Color.Hex);
}