Public Member Functions | |
| Color () | |
| Color (int r, int g, int b, int a=0) | |
| Color (unsigned int uiARGB) | |
| Color (int x, int y, int z, ColorSpec enumColorSpec, int a=0) | |
| Color | Lighter (float factor=2.0) const |
| Color | Darker (float factor=2.0) const |
| operator unsigned int () const | |
| void | SetRGB (int r, int g, int b, int a=0) |
| void | SetHSV (int h, int s, int v, int a=0) |
| void | GetRGB (int &r, int &g, int &b) const |
| void | GetHSV (int &h, int &s, int &v) const |
Static Public Member Functions | |
| static String | GetColorspaceString (Colorspace nColorspace) |
Public Attributes | |
| unsigned char | red |
| unsigned char | green |
| unsigned char | blue |
| unsigned char | alpha |
| SkyGI::Color::Color | ( | ) | [inline] |
| SkyGI::Color::Color | ( | int | r, | |
| int | g, | |||
| int | b, | |||
| int | a = 0 | |||
| ) | [inline] |
| SkyGI::Color::Color | ( | unsigned int | uiARGB | ) | [inline] |
| SkyGI::Color::Color | ( | int | x, | |
| int | y, | |||
| int | z, | |||
| ColorSpec | enumColorSpec, | |||
| int | a = 0 | |||
| ) | [inline] |
| Color Color::Lighter | ( | float | factor = 2.0 |
) | const |
| Color Color::Darker | ( | float | factor = 2.0 |
) | const |
| SkyGI::Color::operator unsigned int | ( | ) | const [inline] |
| void Color::SetRGB | ( | int | r, | |
| int | g, | |||
| int | b, | |||
| int | a = 0 | |||
| ) |
Set color using RGB components
| void Color::SetHSV | ( | int | h, | |
| int | s, | |||
| int | v, | |||
| int | a = 0 | |||
| ) |
Set color using HSV components
| void Color::GetRGB | ( | int & | r, | |
| int & | g, | |||
| int & | b | |||
| ) | const |
| void Color::GetHSV | ( | int & | h, | |
| int & | s, | |||
| int & | v | |||
| ) | const |
| static String SkyGI::Color::GetColorspaceString | ( | Colorspace | nColorspace | ) | [inline, static] |
| unsigned char SkyGI::Color::red |
| unsigned char SkyGI::Color::green |
| unsigned char SkyGI::Color::blue |
| unsigned char SkyGI::Color::alpha |
1.5.1-p1