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

Interpolation of XYZ, channel by channel: XYZ is linear in light. More...

Static Public Member Functions

static constexpr XYZ lerp (const XYZ &from, const XYZ &to, const float amount)
 Interpolates the tristimulus values and alpha of two colors.

Detailed Description

Interpolation of XYZ, channel by channel: XYZ is linear in light.

Definition at line 747 of file Operations.cppm.

Member Function Documentation

◆ lerp()

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

Interpolates the tristimulus values 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 756 of file Operations.cppm.


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