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

The colour temperatures the library works in, in kelvin. More...

Functions

constexpr int bound (int kelvin)
 Clamp kelvin to [Minimum, Maximum].

Variables

constexpr int Minimum = 1000
 The warmest temperature the library sets.
constexpr int Maximum = 10000
 The coolest temperature the library sets.
constexpr int Neutral = 6500
 The temperature that leaves the screen unchanged (an identity ramp).

Detailed Description

The colour temperatures the library works in, in kelvin.

Function Documentation

◆ bound()

int PhosphorServiceNightLight::ColorTemperature::bound ( int kelvin)
nodiscardconstexpr

Clamp kelvin to [Minimum, Maximum].

Variable Documentation

◆ Maximum

int PhosphorServiceNightLight::ColorTemperature::Maximum = 10000
inlineconstexpr

The coolest temperature the library sets.

◆ Minimum

int PhosphorServiceNightLight::ColorTemperature::Minimum = 1000
inlineconstexpr

The warmest temperature the library sets.

◆ Neutral

int PhosphorServiceNightLight::ColorTemperature::Neutral = 6500
inlineconstexpr

The temperature that leaves the screen unchanged (an identity ramp).