aest 0.1.0
Collection of C++ utility libraries
Loading...
Searching...
No Matches
aest::colors::Lightness< Space > Struct Template Referenceexport

Reads and replaces the lightness of a color space. More...

Detailed Description

template<ColorType Space>
struct aest::colors::Lightness< Space >

Reads and replaces the lightness of a color space.

Specialize it for a color space to make it a LightnessSpace, usable with lighten() and darken(). set receives the lightness of the end the color moves toward, 1 for white and 0 for black, so a space whose colorfulness does not vanish at those ends on its own, such as OKLCH, can shrink it on the way and reach exactly white or black.

Template Parameters
SpaceThe color space.

Definition at line 72 of file Operations.cppm.


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