Color

This class represents a color. A color is defined by the combination of given amounts of red, green, and blue. This method of defining colors is referred to as an RGB color model. Different colors are obtained by altering the amounts of the three base colors. The amount of each base color is specified as an integer value in the range from 0 to 255 (an 8-bit color model). A Color object can be used to specify the colors to be used for drawing and filling in a Canvas.

[ Index | Source | Summary | Member Functions ]

Quick Index


Class Summary

class Color

{

public:
Color(int red, int green, int blue);
int Red();
int Green();
int Blue();
~Color();
}; // Color

Back to the top of Color


Color(int red, int green, int blue);

Construct a color defined by the combination of the given amounts of the base colors red, green, and blue.

	Color(int red, int green, int blue);

Back to the top of Color


int Red();

Return the amount of red in the current color.

	int Red();

Back to the top of Color


int Green();

Return the amount of green in the current color.

	int Green();

Back to the top of Color


int Blue();

Return the amount of blue in the current color.

	int Blue();

Back to the top of Color


~Color();

Destructor for the Color class.

	~Color();

Back to the top of Color


Member Functions

public:
int Red();
int Green();
int Blue();

Back to the top of Color


Generated from source by the Cocoon utilities on Thu Apr 02 12:40:32 1998 .

Report problems to jkotula@unimax.com