FLTK stores the colors of widgets as an 8-bit number that is an index into a color palette of 256 colors. This is not the X or WIN32 colormap, but instead is an internal table with fixed contents.

There are symbols for naming some of the more common colors:

The widget color can be set using the color() method:


Similarly, the label color can be set using the labelcolor() method: