supertux
|
Classes | |
class | CalculateColor |
Public Member Functions | |
Color (float red_, float green_, float blue_, float alpha_=1.0) | |
Color (const std::vector< float > &vals) | |
bool | operator== (const Color &other) const |
bool | operator!= (const Color &other) const |
float | greyscale () const |
Color | multiply_linearly (float v) const |
bool | operator< (const Color &other) const |
std::vector< float > | toVector () |
uint8_t | r8 () const |
uint8_t | g8 () const |
uint8_t | b8 () const |
uint8_t | a8 () const |
uint32_t | rgba () const |
std::string | to_string () const |
Return a human-readable string representation for this color. | |
SDL_Color | to_sdl_color () const |
CalculateColor | operator+ (const Color &o) const |
CalculateColor | operator- (const Color &o) const |
CalculateColor | operator* (const Color &o) const |
CalculateColor | operator/ (const Color &o) const |
CalculateColor | operator+ (const CalculateColor &o) const |
CalculateColor | operator- (const CalculateColor &o) const |
CalculateColor | operator* (const CalculateColor &o) const |
CalculateColor | operator/ (const CalculateColor &o) const |
CalculateColor | operator* (float m) const |
CalculateColor | operator/ (float d) const |
Static Public Member Functions | |
static Color | from_rgb888 (uint8_t r, uint8_t g, uint8_t b) |
static Color | from_rgba8888 (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) |
static Color | from_linear (float r, float g, float b, float a=1.0f) |
static float | add_gamma (float x) |
static float | remove_gamma (float x) |
Public Attributes | |
float | red |
float | green |
float | blue |
float | alpha |
Static Public Attributes | |
static const Color | BLACK |
static const Color | RED |
static const Color | GREEN |
static const Color | BLUE |
static const Color | CYAN |
static const Color | MAGENTA |
static const Color | YELLOW |
static const Color | WHITE |