Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorServiceNightLight::WhitePoint Struct Reference

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

Detailed Description

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.

Member Function Documentation

◆ operator==()

bool PhosphorServiceNightLight::WhitePoint::operator== ( const WhitePoint & ) const
default

Member Data Documentation

◆ blue

double PhosphorServiceNightLight::WhitePoint::blue = 1.0

◆ green

double PhosphorServiceNightLight::WhitePoint::green = 1.0

◆ red

double PhosphorServiceNightLight::WhitePoint::red = 1.0

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