aest 0.1.0
Collection of C++ utility libraries
Loading...
Searching...
No Matches
aest::colors::Converter< ColorOut, ColorIn > Struct Template Referenceexport

Converts colors from one color space to another. More...

Detailed Description

template<ColorType ColorOut, ColorType ColorIn>
struct aest::colors::Converter< ColorOut, ColorIn >

Converts colors from one color space to another.

The primary template is only declared: specialize it for each conversion a color space provides directly, with a static convert method. Every space needs at least the conversions to and from its ParentSpace; convert() reaches every other space of the tree through them. Other specializations are shortcuts, preferred over the path through the tree.

Specializations must be visible before the conversion is first used: concepts such as ConvertibleTo are evaluated once per translation unit.

Template Parameters
ColorOutThe desired output color space.
ColorInThe input color space.

Definition at line 119 of file Converter.cppm.


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