Color operations are very sensitive to the current display settings. You should only construct colors while the display is properly setup, and is initialized with the palette that you wish to use.
Do not use color objects after you have changed display settings.
Definition at line 46 of file Color.h.
Public Member Functions | |
Color (UInt8 r, UInt8 g, UInt8 b) | |
Construct a color with the specified RGB values. | |
void | init (UInt8 r, UInt8 g, UInt8 b) |
Set an existing color object to the color with the specified RGB values. | |
IndexedColorType | getIndexedColor () const |
Get the index of the color in the display's current palette. | |
RGBColorType | getRGBColor () const |
Static Public Attributes | |
const Color | BLACK |
const Color | WHITE |
|
Construct a color with the specified RGB values.
|
|
Set an existing color object to the color with the specified RGB values. Use this to reuse color objects, which might reduce memory fragmentation.
|
|
Get the index of the color in the display's current palette.
|
|
|
|
|
|
|