color

fnvoid color(uint c) nothrow @nogc

Sets the current drawing color.

Parameters

colorFLTK color value Example:
color(0xFF0000);  // Red
line(0, 0, 100, 100);
fnvoid color(ubyte r, ubyte g, ubyte b) nothrow @nogc

Sets the current drawing color from RGB values.

Parameters

rRed component (0-255)
gGreen component (0-255)
bBlue component (0-255) Example:
color(255, 0, 0);  // Red
rectf(10, 10, 50, 50);