Safe Haskell | Safe-Inferred |
---|
- toRGB :: CIEXYZ Double -> RGB Integer
- toRGBMatrix :: XYZtoRGB -> CIEXYZ Double -> RGB Integer
- toLAB :: CIEXYZ Double -> CIELAB Double
- toLCH :: CIEXYZ Double -> CIELCH Double
- toHex :: CIEXYZ Double -> Hex
- fromRGB :: RGB Integer -> CIEXYZ Double
- fromHex :: Hex -> CIEXYZ Double
- fromLAB :: CIELAB Double -> CIEXYZ Double
- fromLCH :: CIELCH Double -> CIEXYZ Double
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.
fromRGB :: RGB Integer -> CIEXYZ DoubleSource
fromRGB
convenience function for converting to XYZ from RGB.