Lifx.Internal.Colour
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.
kelvin
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 #
maxWord16 :: Float Source #
minKelvin :: Num a => a Source #
maxKelvin :: Num a => a Source #