lifx-lan-0.8.3: LIFX LAN API
Safe HaskellSafe-Inferred
LanguageHaskell2010

Lifx.Internal.Colour

Synopsis

Documentation

hsbkToRgb :: HSBK -> RGB Float Source #

Note that when kelvin has an effect (i.e. when saturation is any less than maximum), output is somewhat arbitrary.

LIFX's team have never shared an exact formula, and this implementation is inspired by various conflicting sources.

rgbToHsbk :: RGB Float -> HSBK Source #

Kelvin in output is always 0.

interpolateColour :: Num a => a -> RGB a -> RGB a -> RGB a Source #

minKelvin :: Num a => a Source #

maxKelvin :: Num a => a Source #