Example:
uint orange = colorCube(4, 4, 0); // Bright red + medium greenuint colorCube(int r, int g, int b) pure nothrow @nogcCreates 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).
r | Red level (0-4) |
g | Green level (0-7) |
b | Blue level (0-4) |
Example:
uint orange = colorCube(4, 4, 0); // Bright red + medium green