prizm-1.0.0: Compute with colors and differenct color spaces

Copyright(C) 2013 Parnell Springmeyer
LicenseBSD3
MaintainerParnell Springmeyer <parnell@digitalmentat.com>
Stabilitystable
Safe HaskellNone
LanguageHaskell2010

Data.Prizm.Color.CIE

Contents

Description

Basic utility functions for the CIE transformations and CIE convertible instances between the different color space representations within CIE and RGB.

Synopsis

Documentation

refWhite :: [Double] Source #

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 #

Calculate the hue for a conversion to CIELCH from the atan2 of the *a* and *b* color opponents of a CIELAB color.

TODO: should provide *much* better documentation on what this is actually doing in the algorithms.

transformRGB :: Double -> Integer Source #

Transform an CIEXYZ Double to be computed against the xyzToRGB matrix.

transformXYZ :: Double -> Double Source #

Transform a CIEXYZ point.

TODO: should provide *much* better documentation on what this is actually doing in the algorithms.

v1 :: Double Source #

Exact rational of the "0.008856" value.

v2 :: Double Source #

Exact rational of the "7.787" value.

Orphan instances

AdjustableColor CIELCH Source # 
BlendableColor CIELCH Source # 
PresetColor CIELCH Source # 
Convertible CIELCH CIELAB Source # 
Convertible CIELCH CIEXYZ Source # 
Convertible CIELCH RGB Source # 
Convertible CIELAB CIELCH Source # 
Convertible CIELAB CIEXYZ Source # 
Convertible CIELAB RGB Source # 
Convertible CIELAB Hex Source # 
Convertible CIEXYZ CIELCH Source # 
Convertible CIEXYZ CIELAB Source # 
Convertible CIEXYZ RGB Source # 
Convertible CIEXYZ Hex Source # 
Convertible RGB CIELAB Source # 
Convertible Hex CIELAB Source # 
Convertible Hex CIEXYZ Source #