Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
ColorTemperature.h File Reference
#include <PhosphorServiceNightLight/phosphorservicenightlight_export.h>
#include <QByteArray>
#include <QtGlobal>

Go to the source code of this file.

Classes

struct  PhosphorServiceNightLight::WhitePoint
 The colour of white at a temperature, as per-channel factors. More...

Namespaces

namespace  PhosphorServiceNightLight
namespace  PhosphorServiceNightLight::ColorTemperature
 The colour temperatures the library works in, in kelvin.

Functions

constexpr int PhosphorServiceNightLight::ColorTemperature::bound (int kelvin)
 Clamp kelvin to [Minimum, Maximum].
PHOSPHORSERVICENIGHTLIGHT_EXPORT WhitePoint PhosphorServiceNightLight::whitePoint (int kelvin)
 The white point of a black body at kelvin, relative to 6500 K.
PHOSPHORSERVICENIGHTLIGHT_EXPORT QByteArray PhosphorServiceNightLight::gammaTable (const WhitePoint &white, quint32 size)
 A wlr-gamma-control table for white with size entries per channel.

Variables

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