Colobot
|
RGBA color. More...
#include <color.h>
Public Member Functions | |
Color (float aR=0.0f, float aG=0.0f, float aB=0.0f, float aA=0.0f) | |
Constructor; default values are (0,0,0,0) = black. | |
Color | Inverse () const |
float * | Array () |
Returns the struct cast to float* array; use with care! | |
const float * | Array () const |
Returns the struct cast to const float* array; use with care! | |
std::string | ToString () const |
Returns a string (r, g, b, a) | |
bool | operator== (const Color &other) const |
bool | operator!= (const Color &other) const |
Color | operator* (float scale) const |
Public Attributes | |
float | r |
Red, green, blue and alpha components. | |
float | g |
float | b |
float | a |
RGBA color.