colorCube

fnuint colorCube(int r, int g, int b) pure nothrow @nogc

Creates a color from the FLTK color cube.

Returns a color from FLTK's 5x8x5 color cube. Red and blue have 5 levels (0-4), green has 8 levels (0-7).

Parameters

rRed level (0-4)
gGreen level (0-7)
bBlue level (0-4)

Returns

Color value from the color cube

Example:

uint orange = colorCube(4, 4, 0);  // Bright red + medium green