|
aest 0.1.0
Collection of C++ utility libraries
|
Interpolation of OKLab, channel by channel: gradients with even perceived steps, like CSS color-mix(in oklab, …). More...
Static Public Member Functions | |
| static constexpr OKLab | lerp (const OKLab &from, const OKLab &to, const float amount) |
| Interpolates the lightness, a, b and alpha of two colors. | |
Interpolation of OKLab, channel by channel: gradients with even perceived steps, like CSS color-mix(in oklab, …).
Definition at line 767 of file Operations.cppm.
|
inlinestaticconstexpr |
Interpolates the lightness, a, b and alpha of two colors.
| [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 776 of file Operations.cppm.