|
|
| 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 |
| |
|
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 |
| |
|
|
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) |
| |
|
|
float | red |
| |
|
float | green |
| |
|
float | blue |
| |
|
float | alpha |
| |
The documentation for this class was generated from the following files: