aest 0.1.0
Collection of C++ utility libraries
Loading...
Searching...
No Matches
aest::colors::RGBGamut Concept Referenceexport

A gamut tag, the first parameter of BasicRGB. More...

Concept definition

template<typename T>
concept RGBGamut = requires {
{ T::NAME } -> std::convertible_to<std::string_view>;
{ T::RED } -> std::convertible_to<Chromaticity>;
{ T::GREEN } -> std::convertible_to<Chromaticity>;
{ T::BLUE } -> std::convertible_to<Chromaticity>;
{ T::WHITE } -> std::convertible_to<Chromaticity>;
}
A gamut tag, the first parameter of BasicRGB.
Definition Gamut.cppm:47

Detailed Description

A gamut tag, the first parameter of BasicRGB.

A tag is a type with a static NAME, used in the color space name, and the static Chromaticity values RED, GREEN and BLUE of its primaries and WHITE of its white point. The matrices to and from XYZ are derived from them; a white point other than D65 is adapted to it with the Bradford transform.

Template Parameters
TThe type to check

Definition at line 47 of file Gamut.cppm.