16 Color(
float r = 1,
float g = 1,
float b = 1,
float a = 1);
20 Color(std::string color);
23 unsigned int toRGBA()
const;
26 unsigned int toABGR()
const;
29 static unsigned int createRGBA(
int r,
int g,
int b,
int a);
32 static unsigned int createABGR(
int r,
int g,
int b,
int a);
35 Color& operator*=(
float value);
37 Color& operator/=(
float value);
41 const Color operator*(
float value)
const;
43 const Color operator/(
float value)
const;
46 bool operator==(
const Color &rhs);
47 bool operator!=(
const Color &rhs);
57 const static Color black;
58 const static Color white;
Color(float r=1, float g=1, float b=1, float a=1)
Construts a Color object default to white.
Definition: Color.cpp:14
static unsigned int createRGBA(int r, int g, int b, int a)
Returns an unsigned int from color values.
Definition: Color.cpp:157
std::string toString()
Returns a string representation of the Color object.
Definition: Color.cpp:137
static unsigned int createABGR(int r, int g, int b, int a)
Returns an unsigned int from color values.
Definition: Color.cpp:162
unsigned int toABGR() const
Writes the color in a single 32 bit int reversed.
Definition: Color.cpp:152
unsigned int toRGBA() const
Writes the color in a single 32 bit int.
Definition: Color.cpp:147
Represents RGBA color.
Definition: Color.h:11