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

The linear space that operations in linear light, such as mix() and over(), use for a color type when no space is given. More...

Public Types

using type = LinSRGB
 The linear space.

Detailed Description

template<ColorType Color>
struct aest::colors::LinearSpaceOf< Color >

The linear space that operations in linear light, such as mix() and over(), use for a color type when no space is given.

It keeps the color's own gamut, so wide-gamut colors are not clipped to sRGB: the linear space of the gamut for an RGB space, and for HSL and HSV the one of their RGB space. XYZ is linear already. Any other type gets LinSRGB; specialize the trait to give it another.

Template Parameters
ColorThe color type

Definition at line 52 of file Space.cppm.

Member Typedef Documentation

◆ type

template<ColorType Color>
using aest::colors::LinearSpaceOf< Color >::type = LinSRGB

The linear space.

Definition at line 55 of file Space.cppm.


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