From 7dcf31ff36fc6b4b5a5798fc45605066ce0a533d Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Thu, 17 May 2012 22:42:26 +0000 Subject: Added colormap with index numbers in the legends to the "Colors" section of the 'Drawing Things in FLTK' section. This should make it easy to quickly identify the color numbers of the default FLTK colormap entries. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9521 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/src/drawing.dox | 5 ++++- documentation/src/fltk-colormap.jpg | Bin 0 -> 140581 bytes 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 documentation/src/fltk-colormap.jpg (limited to 'documentation') diff --git a/documentation/src/drawing.dox b/documentation/src/drawing.dox index e0981d051..4223e0ce2 100644 --- a/documentation/src/drawing.dox +++ b/documentation/src/drawing.dox @@ -164,7 +164,10 @@ and are allocated as needed on screens without TrueColor support. The \b Fl_Color enumeration type defines the standard colors and color cube for the first 256 colors. All of these are named with symbols in -\ref enumerations "". +\ref enumerations "". Example: + + \image html fltk-colormap.jpg "FLTK default colormap (Fl_Color 0x00 - 0xff)" + \image latex fltk-colormap.jpg "FLTK default colormap (Fl_Color 0x00 - 0xff)" width=6cm Color values greater than 255 are treated as 24-bit RGB values. These are mapped to the closest color supported by the diff --git a/documentation/src/fltk-colormap.jpg b/documentation/src/fltk-colormap.jpg new file mode 100644 index 000000000..fc9b48f2e Binary files /dev/null and b/documentation/src/fltk-colormap.jpg differ -- cgit v1.2.3