fmt
Loading...
Searching...
No Matches
fmt::Rgb Struct Referenceexport
module 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

Detailed Description

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);

The documentation for this struct was generated from the following file:
  • /home/mccakit/desktop/mccakit-fmt/fmt/src/fmt/iface/color.cppm