![]() |
Ember
|
RGBA color with 8-bit components. More...
#include <Color.h>
Public Member Functions | |
| Color ()=default | |
| Color (uint8_t r, uint8_t g, uint8_t b, uint8_t a=255) | |
| uint32_t | ToRGBA32 () const |
| bool | operator== (const Color &other) const |
| bool | operator!= (const Color &other) const |
Static Public Member Functions | |
| static Color | FromRGB (uint8_t r, uint8_t g, uint8_t b) |
| static Color | FromRGBA (uint8_t r, uint8_t g, uint8_t b, uint8_t a) |
| static Color | FromRGBA32 (uint32_t rgba) |
Public Attributes | |
| uint8_t | r = 0 |
| uint8_t | g = 0 |
| uint8_t | b = 0 |
| uint8_t | a = 255 |
Static Public Attributes | |
| static const Color | Black = Color::FromRGB(0, 0, 0) |
| static const Color | White = Color::FromRGB(255, 255, 255) |
| static const Color | Red = Color::FromRGB(255, 0, 0) |
| static const Color | Green = Color::FromRGB(0, 255, 0) |
| static const Color | Blue = Color::FromRGB(0, 0, 255) |
| static const Color | Yellow = Color::FromRGB(255, 255, 0) |
| static const Color | Cyan = Color::FromRGB(0, 255, 255) |
| static const Color | Magenta = Color::FromRGB(255, 0, 255) |
| static const Color | Gray = Color::FromRGB(128, 128, 128) |
| static const Color | DarkGray = Color::FromRGB(64, 64, 64) |
| static const Color | LightGray = Color::FromRGB(192, 192, 192) |
| static const Color | Transparent = Color::FromRGBA(0, 0, 0, 0) |
|
default |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |