The colour of white at a temperature, as per-channel factors. More...
#include <PhosphorServiceNightLight/ColorTemperature.h>
Public Member Functions | |
| bool | operator== (const WhitePoint &) const =default |
Public Attributes | |
| double | red = 1.0 |
| double | green = 1.0 |
| double | blue = 1.0 |
The colour of white at a temperature, as per-channel factors.
Each factor is in [0, 1] and the largest is 1, so the ramp only ever dims a channel. The factors are gamma-encoded (sRGB-like, exponent 2.2), ready to multiply an encoded ramp value: scaling an encoded value by w^(1/2.2) scales the light it produces by w.
|
default |
| double PhosphorServiceNightLight::WhitePoint::blue = 1.0 |
| double PhosphorServiceNightLight::WhitePoint::green = 1.0 |
| double PhosphorServiceNightLight::WhitePoint::red = 1.0 |