prizm-0.3.1.0: A haskell library for computing with colors

Safe HaskellSafe-Inferred

Data.Prizm.Color.CIE.XYZ

Synopsis

Documentation

toRGB :: CIEXYZ Double -> RGB IntegerSource

toRGB convert a CIE color to an SRGB color.

This function uses the default d65 illuminant matrix.

toRGBMatrix :: XYZtoRGB -> CIEXYZ Double -> RGB IntegerSource

toRGBMatrix convert an XYZ color to an SRGB color using a provided matrix.

toLAB :: CIEXYZ Double -> CIELAB DoubleSource

toLAB convert an XYZ color to a LAB color.

This function uses the default reference white (2deg observer, d65 illuminant).

toLCH :: CIEXYZ Double -> CIELCH DoubleSource

toLCH convenience function for converting XYZ straight to LAB.

toHex :: CIEXYZ Double -> HexSource

toHex convenience function for converting XYZ straight to HEX.

fromRGB :: RGB Integer -> CIEXYZ DoubleSource

fromRGB convenience function for converting to XYZ from RGB.

fromHex :: Hex -> CIEXYZ DoubleSource

fromHex convenience function for converting to XYZ from HEX.

fromLAB :: CIELAB Double -> CIEXYZ DoubleSource

fromLAB convenience function for converting to XYZ from LAB.