to-rgb-bytes

xod/color/to-rgb-bytes

Destructs a color value into red, green, and blue components encoded as byte values
to-rgb-bytes
@/to-rgb-bytes
Destructs a color value into red, green, and blue components encoded as byte values
IN@/color
to-rgb-bytes
IN
R
G
B
Bbyte
Blue
Gbyte
Green
Rbyte
Red

C++ implementation

node {
    void evaluate(Context ctx) {
        auto color = getValue<input_IN>(ctx);
        emitValue<output_R>(ctx, color.r);
        emitValue<output_G>(ctx, color.g);
        emitValue<output_B>(ctx, color.b);
    }
}