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)
friend unsigned int hash(const GPixel &p)
Predefined colors.
static const GPixel WHITE
static const GPixel BLACK
static const GPixel BLUE
static const GPixel GREEN
static const GPixel RED
Alphabetic index HTML hierarchy of classes or Java