struct GPixel

Color pixel as a RGB triple.

[more]unsigned char b
Blue component.
[more]unsigned char g
Green component.
[more]unsigned char r
Red component.
[more]friend int operator==(const GPixel & p1, const GPixel & p2)
Returns true iff colors are identical.
[more]friend int operator!=(const GPixel & p1, const GPixel & p2)
Returns true iff colors are different.
[more] Predefined colors.


Documentation

Color pixel as a RGB triple. The colors are represented using three bytes named r, g and b. The value of these bytes represent additive amounts of light. Color white is represented by setting all three bytes to 255. Color black is represented by setting all three bytes to 0. This convention should not be confused with the convention adopted for class GBitmap where the pixel values represent an ink level.
ounsigned char b
Blue component.

ounsigned char g
Green component.

ounsigned char r
Red component.

ofriend int operator==(const GPixel & p1, const GPixel & p2)
Returns true iff colors are identical.

ofriend int operator!=(const GPixel & p1, const GPixel & p2)
Returns true iff colors are different.

o Predefined colors.

ostatic GPixel WHITE
GPixel::WHITE is initialized to rgb:255/255/255.

ostatic GPixel BLACK
GPixel::BLACK is initialized to rgb:0/0/0.

ostatic GPixel BLUE
GPixel::BLUE is initialized to rgb:0/0/255.

ostatic GPixel GREEN
GPixel::GREEN is initialized to rgb:0/255/0.

ostatic GPixel RED
GPixel::RED is initialized to rgb:255/0/0.

Alphabetic index HTML hierarchy of classes or Java