color-rgb-bytes

xod/color/color-rgb-bytes

Constructs a color value from red, green, and blue components expressed as byte values. Use decimal (0d to 255d) or hexadecimal (00h to FFh) byte literals. For example, if a graphical editor shows a blue as “#287ec9” or “rgb(40, 126, 201)” use the following literals for R/G/B: 28h/7Eh/C9h or 40d/126d/201d
color-rgb-bytes
@/color-rgb-bytes
Constructs a color value from red, green, and blue components expressed as byte values. Use decimal (0d to 255d) or hexadecimal (00h to FFh) byte literals. For example, if a graphical editor shows a blue as “#287ec9” or “rgb(40, 126, 201)” use the following literals for R/G/B: 28h/7Eh/C9h or 40d/126d/201d
Rbyte
Red
Gbyte
Green
Bbyte
Blue
color-rgb-bytes
OUT
R
G
B
OUT@/color

C++ implementation

node {
    void evaluate(Context ctx) {
        typeof_OUT obj;
        obj = { (uint8_t)getValue<input_R>(ctx), (uint8_t)getValue<input_G>(ctx), (uint8_t)getValue<input_B>(ctx) };
        emitValue<output_OUT>(ctx, obj);
    }
}