prizm-0.3.1.0: A haskell library for computing with colors
Data.Prizm.Color.SRGB
Synopsis
toXYZ :: RGB Integer -> CIEXYZ DoubleSource
toXYZ convert an sRGB value to a CIE XYZ value.
toXYZ
toXYZMatrix :: RGBtoXYZ -> RGB Integer -> CIEXYZ DoubleSource
toHex :: RGB Integer -> HexSource
toHex convert an sRGB value to hexadecimal.
toHex
fromHex :: Hex -> RGB IntegerSource
clamp :: Integer -> IntegerSource