Stability | stable |
---|---|
Maintainer | Parnell Springmeyer <parnell@ixmat.us> |
Safe Haskell | None |
Transformation functions and convenience functions, some imported from the other modules to ease conversion between representations.
- toRGB :: CIEXYZ Double -> RGB Integer
- toRGBMatrix :: XYZtoRGB -> CIEXYZ Double -> RGB Integer
- toHex :: CIEXYZ Double -> Hex
- toLAB :: CIEXYZ Double -> CIELAB Double
- toLCH :: CIEXYZ Double -> CIELCH Double
- fromRGB :: RGB Integer -> CIEXYZ Double
- fromHex :: Hex -> CIEXYZ Double
- fromLAB :: CIELAB Double -> CIEXYZ Double
- fromLCH :: CIELCH Double -> CIEXYZ Double
Transform to
RGB or Hex
toRGB :: CIEXYZ Double -> RGB IntegerSource
Convert a CIE color to an SRGB color.
This function uses the default d65 illuminant matrix.
CIE LAB or LCH
toLAB :: CIEXYZ Double -> CIELAB DoubleSource
Convert an XYZ color to a LAB color.
This function uses the default reference white (2deg observer, d65 illuminant).