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.
- (void)unsetColor: (Color)c Remove color at index `c' from the color map.
- (BOOL)setColor: (Color)cToGrey: (double)g Add a color of a certain level of grey.
- (BOOL)setColor: (Color)cToName: (const char *)colorName Add color index `c' looking up the color name in the color database.
- (BOOL)setColor: (Color)cToRed: (double)rGreen: (double)gBlue: (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.