prizm-0.3.0.0: A haskell library for computing with colors

Safe HaskellSafe-Inferred

Data.Prizm.Color.CIE.LAB

Synopsis

Documentation

toLCH :: CIELAB Double -> CIELCH DoubleSource

toLCH convert a LAB color to the LCH representation.

toXYZ :: CIELAB Double -> CIEXYZ DoubleSource

toXYZ convert a LAB color to the XYZ representation.

toRGB :: CIELAB Double -> RGB IntegerSource

toRGB convenience function for converting straight to RGB.

toHex :: CIELAB Double -> HexSource

toHex convenience function for converting straight to HEX.

fromXYZ :: CIEXYZ Double -> CIELAB DoubleSource

fromXYZ convert an XYZ color straight to LAB.

fromRGB :: RGB Integer -> CIELAB DoubleSource

fromRGB convenience function for converting to LAB from RGB.

fromHex :: Hex -> CIELAB DoubleSource

fromHex convenience function for converting to LAB from HEX.

fromLCH :: CIELCH Double -> CIELAB DoubleSource

fromLCH convert a LCH color to the LAB representation.