aest 0.1.0
Collection of C++ utility libraries
Loading...
Searching...
No Matches
aest::colors::Hue< OKLCH > Struct Reference

Hue of OKLCH, in degrees. More...

Static Public Member Functions

static constexpr float get (const OKLCH &color) noexcept
 Get the hue of color.
static constexpr OKLCH set (const OKLCH &color, const float hue)
 Copy color with a new hue.

Detailed Description

Hue of OKLCH, in degrees.

Definition at line 1057 of file Operations.cppm.

Member Function Documentation

◆ get()

constexpr float aest::colors::Hue< OKLCH >::get ( const OKLCH & color)
inlinestaticconstexprnoexcept

Get the hue of color.

Parameters
[in]colorThe color to read
Returns
The hue in the [0, 360) range.

Definition at line 1064 of file Operations.cppm.

◆ set()

constexpr OKLCH aest::colors::Hue< OKLCH >::set ( const OKLCH & color,
const float hue )
inlinestaticconstexpr

Copy color with a new hue.

Parameters
[in]colorThe color to copy
[in]hueThe new hue in degrees, wrapped to [0, 360)
Returns
The color with the same lightness, chroma and alpha.

Definition at line 1072 of file Operations.cppm.


The documentation for this struct was generated from the following file: