#include <color.hh>
Public Types | |
| enum | COLOR_NAME { WHITE = 0xffffff, LIGHT_GREY = 0xaaaaff, GREY = 0x999999ff, DARK_GREY = 0x333333ff, BLACK = 0x000000, RED = 0xff0000, GREEN = 0x00ff00, BLUE = 0x0000ff, CYAN = 0x00ffff, MAGENTA = 0xff00ff, YELLOW = 0xffff00 } |
Public Member Functions | |
| Color () | |
| Color (float r, float g, float b, float a=1.0) | |
| Color (int hex_code) | |
| float & | Red () |
| const float & | Red () const |
| float & | Green () |
| const float & | Green () const |
| float & | Blue () |
| const float & | Blue () const |
| float & | Alpha () |
| const float & | Alpha () const |
| operator float * () | |
| operator const float * () const | |
| Color & | operator*= (float rhs) |
| Color & | operator+= (float rhs) |
| Color & | operator+= (const Color &rhs) |
| Color & | operator-= (const Color &rhs) |
| Color & | operator-= (float rhs) |
| Color & | operator/= (float rhs) |
Static Public Member Functions | |
| static Color | FromRGB (unsigned char r, unsigned char g, unsigned char b, unsigned char a=0xff) |
Definition at line 35 of file color.hh.
| enum COLOR_NAME |
| Color | ( | int | hex_code | ) |
| static Color FromRGB | ( | unsigned char | r, | |
| unsigned char | g, | |||
| unsigned char | b, | |||
| unsigned char | a = 0xff | |||
| ) | [inline, static] |
| Color& operator*= | ( | float | rhs | ) |
| Color& operator+= | ( | float | rhs | ) |
| Color& operator-= | ( | float | rhs | ) |
| Color& operator/= | ( | float | rhs | ) |
1.5.8