Colormap
Name
Colormap --  An class for creating a color palette for use with a Raster.
Description
 Mechanism used to map numbers in the range [0, 255] to colour names. Create an XColormap, allocate colours in it, and pass it to a Raster widget for drawing.
Methods
Phase: Using
- - (void) unsetColor:-  (Color) c-  Remove color at index `c' from the color map. 
- - (BOOL) setColor:-  (Color) c ToGrey:-  (double) g-  Add a color of a certain level of grey. 
- - (BOOL) setColor:-  (Color) c ToName:-  (const char *) colorName-  Add color index `c' looking up the color name in the color database. 
- - (BOOL) setColor:-  (Color) c ToRed:-  (double) r Green:-  (double) g Blue:-  (double) b-  Add color index `c' to the color map, using a certain percent of  red, green, and blue. 
- - (PixelValue) white-  The pixel value for white. 
- - (PixelValue) black-  The pixel value for black. 
- - (PixelValue *) map-  The current palette, per color-index.