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

Saturation of OKLCH: its chroma, which has no maximum, so saturate() scales it. More...

Static Public Member Functions

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

Detailed Description

Saturation of OKLCH: its chroma, which has no maximum, so saturate() scales it.

Definition at line 982 of file Operations.cppm.

Member Function Documentation

◆ get()

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

Get the chroma of color.

Parameters
[in]colorThe color to read
Returns
The chroma, 0 or greater.

Definition at line 989 of file Operations.cppm.

◆ set()

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

Copy color with a new chroma.

Parameters
[in]colorThe color to copy
[in]chromaThe new chroma
Returns
The color with the same lightness, hue and alpha.

Definition at line 997 of file Operations.cppm.


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