|
fmt
|
Public Member Functions | |
| constexpr | Rgb (uint8_t r_, uint8_t g_, uint8_t b_) |
| constexpr | Rgb (uint32_t hex) |
| constexpr | Rgb (Color hex) |
Public Attributes | |
| uint8_t | r |
| uint8_t | g |
| uint8_t | b |
A 24-bit RGB colour.
Constructible from three components, from a packed hex value such as 0xFF0000, or from a named color.
Example:
auto orange = fmt::rgb(255, 165, 0); auto same = fmt::rgb(0xFFA500);