prizm-0.3.1.1: Compute with colors and differenct color spaces

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

Data.Prizm.Color.CIE.LAB

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 :: CIELAB Double -> RGB IntegerSource

Convenience function to convert LAB to RGB.

toHex :: CIELAB Double -> HexSource

Convenience function to convert LAB to HEX.

CIE LCH or XYZ

toLCH :: CIELAB Double -> CIELCH DoubleSource

Convert a LAB color to the LCH representation.

toXYZ :: CIELAB Double -> CIEXYZ DoubleSource

Convert a LAB color to the XYZ representation.

Transform from

RGB or Hex

fromRGB :: RGB Integer -> CIELAB DoubleSource

Convenience function to convert RGB to LAB.

fromHex :: Hex -> CIELAB DoubleSource

Convenience function to convert HEX to LAB.

CIE XYZ or LCH

fromXYZ :: CIEXYZ Double -> CIELAB DoubleSource

Convert an XYZ color to LAB.

fromLCH :: CIELCH Double -> CIELAB DoubleSource

Convert an LCH color to the LAB representation.