Copyright | (C) 2013 Parnell Springmeyer |
---|---|
License | BSD3 |
Maintainer | Parnell Springmeyer <parnell@digitalmentat.com> |
Stability | stable |
Safe Haskell | None |
Language | Haskell2010 |
Basic utility functions for the CIE
transformations and CIE
convertible instances between the different color space
representations within CIE
and RGB
.
Documentation
Reference white, 2deg observer, d65 illuminant.
[x,y,z]
TODO: this should probably be a triple.
toRGBMatrix :: XYZtoRGB -> CIEXYZ -> RGB Source #
Convert an XYZ color to an SRGB color.
XYZtoRGB
is the pre-calculated illuminant matrix, it is
preferable to use toRG
as it uses the most "common" one.
transformLAB :: Double -> Double Source #
Transform a CIELAB
point.
TODO: should provide *much* better documentation on what this is actually doing in the algorithms.
calcLCHHue :: Double -> Double Source #
transformRGB :: Double -> Integer Source #
transformXYZ :: Double -> Double Source #
Transform a CIEXYZ
point.
TODO: should provide *much* better documentation on what this is actually doing in the algorithms.