Color pixel as a RGB triple.
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.
unsigned char g
unsigned char r
friend int operator==(const GPixel & p1, const GPixel & p2)
friend int operator!=(const GPixel & p1, const GPixel & p2)
Predefined colors.
static GPixel WHITE
static GPixel BLACK
static GPixel BLUE
static GPixel GREEN
static GPixel RED
Alphabetic index HTML hierarchy of classes or Java