6#include <PhosphorServiceNightLight/phosphorservicenightlight_export.h>
24[[nodiscard]]
constexpr int bound(
int kelvin)
71[[nodiscard]] PHOSPHORSERVICENIGHTLIGHT_EXPORT QByteArray
gammaTable(
const WhitePoint& white, quint32 size);
The colour temperatures the library works in, in kelvin.
Definition ColorTemperature.h:14
constexpr int Neutral
The temperature that leaves the screen unchanged (an identity ramp).
Definition ColorTemperature.h:21
constexpr int bound(int kelvin)
Clamp kelvin to [Minimum, Maximum].
Definition ColorTemperature.h:24
constexpr int Maximum
The coolest temperature the library sets.
Definition ColorTemperature.h:19
constexpr int Minimum
The warmest temperature the library sets.
Definition ColorTemperature.h:17
Definition ColorTemperature.h:11
PHOSPHORSERVICENIGHTLIGHT_EXPORT QByteArray gammaTable(const WhitePoint &white, quint32 size)
A wlr-gamma-control table for white with size entries per channel.
PHOSPHORSERVICENIGHTLIGHT_EXPORT WhitePoint whitePoint(int kelvin)
The white point of a black body at kelvin, relative to 6500 K.
The colour of white at a temperature, as per-channel factors.
Definition ColorTemperature.h:40
double blue
Definition ColorTemperature.h:43
bool operator==(const WhitePoint &) const =default
double red
Definition ColorTemperature.h:41
double green
Definition ColorTemperature.h:42