InterViews Reference Manual -- Color
NAME
Color - colors for a painter
SYNOPSIS
#include <InterViews/color.h>
DESCRIPTION
A Color defines a mix of rgb (red, green, and blue)
intensities. The global variables ``black'' and ``white'' point to predefined
colors of zero and full intensity output, respectively. Note that the
displayed intensities of a color will depend on the characteristics of the
workstation.
PUBLIC OPERATIONS
Color(const char* name)
Construct a color with intensities associated with name.
Color(int red, int green, int blue)
Construct a color with the specified red, green, and blue intensities. Zero
represents no intensity; 65535 represents full intensity.
Color(int entry)
Construct a color with intensities associated with a color map entry.
void Intensities(int& red, int& green, int& blue)
Get the intensities used to create the color.
void DisplayIntensities(int& red, int& green, int& blue)
Get the intensities used to display the color.
int PixelValue()
Return the color's index in its color map.
bool Valid()
Return whether the color is meaningful. This call can be used after
Color(name) to see if the name is recognized as a color.
SEE ALSO
Painter
Next: Connection
| Prev: ChiefDeputy
| Up: index
| Top: index