|
aest 0.1.0
Collection of C++ utility libraries
|
Interpolation of OKLCH: the hue along an arc of the hue circle, lightness, chroma and alpha linearly, like CSS color-mix(in oklch, …). More...
Static Public Member Functions | |
| static constexpr OKLCH | lerp (const OKLCH &from, const OKLCH &to, const float amount, const HueMode mode) |
Interpolates two colors, the hue along the arc mode picks. | |
| static constexpr OKLCH | lerp (const OKLCH &from, const OKLCH &to, const float amount) |
| Interpolates two colors, the hue along the shorter arc. | |
Interpolation of OKLCH: the hue along an arc of the hue circle, lightness, chroma and alpha linearly, like CSS color-mix(in oklch, …).
Definition at line 880 of file Operations.cppm.
|
inlinestaticconstexpr |
Interpolates two colors, the hue along the shorter arc.
| [in] | from | The color at amount 0 |
| [in] | to | The color at amount 1 |
| [in] | amount | Position between the two colors, in the 0-1 range |
Definition at line 913 of file Operations.cppm.
|
inlinestaticconstexpr |
Interpolates two colors, the hue along the arc mode picks.
A color with chroma below ACHROMATIC_CHROMA is gray, and takes the hue of the other.
| [in] | from | The color at amount 0 |
| [in] | to | The color at amount 1 |
| [in] | amount | Position between the two colors, in the 0-1 range |
| [in] | mode | The arc of the hue circle to follow |
Definition at line 894 of file Operations.cppm.