OpenStructure
|
#include <color.hh>
Public Member Functions | |
Color () | |
Color (float r, float g, float b, float a=1.0) | |
float & | Red () |
const float & | Red () const |
float & | Green () |
const float & | Green () const |
float & | Blue () |
const float & | Blue () const |
float & | Alpha () |
const float & | Alpha () const |
geom::Vec3 | ToHSV () |
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) |
|
inlinestatic |
Color& operator*= | ( | float | rhs | ) |
Color& operator+= | ( | float | rhs | ) |
Color& operator-= | ( | float | rhs | ) |
Color& operator/= | ( | float | rhs | ) |
geom::Vec3 ToHSV | ( | ) |