Constructors

Synopses

Declared in <fmt/color.h>

Constructs a black color, i.e. all components set to 0.

constexpr
rgb();

Constructs a color from a fmt::color enumerator.

constexpr
rgb(color hex);

Constructs a color from a packed 0xRRGGBB hex value.

constexpr
rgb(uint32_t hex);

Constructs a color from its red, green, and blue components.

constexpr
rgb(
    uint8_t r_,
    uint8_t g_,
    uint8_t b_);

Parameters

Name

Description

hex

The named color to convert.

r_

The red component.

g_

The green component.

b_

The blue component.

Created with MrDocs