GGUI::GGColor struct

sRGB, straight alpha.

Public static functions

static auto Hex(uint32_t rgba) -> GGColor constexpr
A colour written 0xRRGGBBAA.
static auto White() -> GGColor constexpr
Opaque white.
static auto Clear() -> GGColor constexpr
Fully transparent.

Constructors, destructors, conversion operators

GGColor() defaulted constexpr
Clear.
GGColor(uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255) constexpr
Red, green, blue, and alpha, 0 to 255.

Public variables

uint8_t R
red
uint8_t G
green
uint8_t B
blue
uint8_t A
alpha: 0 clear, 255 opaque

Friends

auto operator==(const GGColor&, const GGColor&) -> bool defaulted
every member equal