rgb-color

awgrover/adafruitneopixel/rgb-color

composite rgb+white object 0..1 values _a rgbw should auto calculate w_
rgb-color
@/rgb-color
composite rgb+white object 0..1 values _a rgbw should auto calculate w_
rednumber
greennumber
bluenumber
rgb-color
color
red
green
blue
color@/rgb-color
To use the node in your project you should have the awgrover/adafruitneopixel 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 {
    float red;
    float green;
    float blue;
};
using Type = State*;

{{ GENERATED_CODE }}


void evaluate(Context ctx) {
    // if we are called, something is dirty, and we might as well write them all
    Type state = getState(ctx);
    
    state->red = getValue<input_red>(ctx);
    state->green = getValue<input_green>(ctx);
    state->blue = getValue<input_blue>(ctx);

    emitValue<output_color>(ctx, state);
}