26 return Color(
static_cast<uint8_t
>((rgba >> 24) & 0xFF),
27 static_cast<uint8_t
>((rgba >> 16) & 0xFF),
28 static_cast<uint8_t
>((rgba >> 8) & 0xFF),
29 static_cast<uint8_t
>(rgba & 0xFF)
35 return (
static_cast<uint32_t
>(
r) << 24) | (
static_cast<uint32_t
>(
g) << 16) | (
static_cast<uint32_t
>(
b) << 8) |
36 static_cast<uint32_t
>(
a);
Main types header for EmberCore.
static const Color Yellow
static const Color LightGray
static Color FromRGBA32(uint32_t rgba)
Color(uint8_t r, uint8_t g, uint8_t b, uint8_t a=255)
static const Color Transparent
bool operator!=(const Color &other) const
bool operator==(const Color &other) const
static const Color DarkGray
static const Color Magenta
static Color FromRGBA(uint8_t r, uint8_t g, uint8_t b, uint8_t a)
uint32_t ToRGBA32() const
static Color FromRGB(uint8_t r, uint8_t g, uint8_t b)