prizm-0.3.1.1: Compute with colors and differenct color spaces

Stabilitystable
MaintainerParnell Springmeyer <parnell@ixmat.us>
Safe HaskellNone

Data.Prizm.Color.CIE.LCH

Contents

Description

Transformation functions and convenience functions, some imported from the other modules to ease conversion between representations.

Synopsis

Transform to

RGB or Hex

toRGB :: CIELCH Double -> RGB IntegerSource

Convert from LCH to RGB.

toHex :: CIELCH Double -> HexSource

Convert from LCH to Hex.

CIE LAB or XYZ

toLAB :: CIELCH Double -> CIELAB DoubleSource

Convert an LCH color to LAB.

toXYZ :: CIELCH Double -> CIEXYZ DoubleSource

Convert from LCH to XYZ.

Transform from

RGB or Hex

fromRGB :: RGB Integer -> CIELCH DoubleSource

Convenience function to convert from RGB to LCH.

fromHex :: Hex -> CIELCH DoubleSource

Convenience function to convert from Hex to LCH.

CIE LAB or XYZ

fromLAB :: CIELAB Double -> CIELCH DoubleSource

Convenience function to convert from LAB to LCH.

fromXYZ :: CIEXYZ Double -> CIELCH DoubleSource

Convert from XYZ to LCH.