|
using | Channel = std::uint8_t |
|
|
| Color (std::uint32_t argb) |
|
| Color (Channel red, Channel green, Channel blue) |
|
Color | withAlpha (Channel newAlpha) const |
|
double | hue () const |
|
void | setHue (double h) |
|
double | saturation () const |
|
void | setSaturation (double s) |
|
double | value () const |
|
void | setValue (double v) |
|
std::uint32_t | argb () const |
|
std::uint32_t | bgr () const |
|
std::uint32_t | abgr () const |
|
std::uint32_t | gl () const |
|
std::strong_ordering | operator<=> (const Color &) const =default |
|
|
static Color | fromHSV (double h, double s, double v) |
|
|
Channel | red = 0 |
|
Channel | green = 0 |
|
Channel | blue = 0 |
|
Channel | alpha = 0 |
|
|
static const Color | NONE { 0x00'000000 } |
|
static const Color | BLACK { 0, 0, 0 } |
|
static const Color | GRAY { 128, 128, 128 } |
|
static const Color | WHITE { 255, 255, 255 } |
|
static const Color | AQUA { 0, 255, 255 } |
|
static const Color | CYAN { 0, 255, 255 } |
|
static const Color | RED { 255, 0, 0 } |
|
static const Color | GREEN { 0, 255, 0 } |
|
static const Color | BLUE { 0, 0, 255 } |
|
static const Color | YELLOW { 255, 255, 0 } |
|
static const Color | FUCHSIA { 255, 0, 255 } |
|
The documentation for this struct was generated from the following files: