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

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.

Detailed Description

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.

Member Function Documentation

◆ lerp()

constexpr OKLab aest::colors::Interpolation< OKLab >::lerp ( const OKLab & from,
const OKLab & to,
const float amount )
inlinestaticconstexpr

Interpolates the lightness, a, b and alpha of two colors.

Parameters
[in]fromThe color at amount 0
[in]toThe color at amount 1
[in]amountPosition between the two colors, in the 0-1 range
Returns
The interpolated color.

Definition at line 776 of file Operations.cppm.


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