Colour operations defined by the International Commission on Illumination (CIE).
- data Colour a
- cieXYZ :: Fractional a => a -> a -> a -> Colour a
- toCIEXYZ :: Fractional a => Colour a -> (a, a, a)
- luminance :: Fractional a => Colour a -> a
- data Chromaticity a
- mkChromaticity :: Fractional a => a -> a -> Chromaticity a
- chromaCoords :: Fractional a => Chromaticity a -> (a, a, a)
- chromaX :: Fractional a => Chromaticity a -> a
- chromaY :: Fractional a => Chromaticity a -> a
- chromaZ :: Fractional a => Chromaticity a -> a
- chromaConvert :: (Fractional b, Real a) => Chromaticity a -> Chromaticity b
- chromaColour :: Fractional a => Chromaticity a -> a -> Colour a
Documentation
cieXYZ :: Fractional a => a -> a -> a -> Colour aSource
Construct a Colour
from XYZ coordinates for the 2° standard
(colourimetric) observer.
toCIEXYZ :: Fractional a => Colour a -> (a, a, a)Source
Return the XYZ colour coordinates for the 2° standard (colourimetric) observer.
luminance :: Fractional a => Colour a -> aSource
Returns the Y colour coordinate (luminance) for the 2° standard (colourimetric) observer.
data Chromaticity a Source
AffineSpace Chromaticity | |
Eq a => Eq (Chromaticity a) | |
(Fractional a, Read a) => Read (Chromaticity a) | |
Fractional a => Show (Chromaticity a) |
mkChromaticity :: Fractional a => a -> a -> Chromaticity aSource
Constructs Chromaticity
from the CIE little x, little y
coordinates for the 2° standard (colourimetric) observer.
chromaCoords :: Fractional a => Chromaticity a -> (a, a, a)Source
Returns the CIE little x, little y, little z coordinates for the 2° standard (colourimetric) observer.
chromaX :: Fractional a => Chromaticity a -> aSource
Returns the CIE little x coordinate for the 2° standard (colourimetric) observer.
chromaY :: Fractional a => Chromaticity a -> aSource
Returns the CIE little y coordinate for the 2° standard (colourimetric) observer.
chromaZ :: Fractional a => Chromaticity a -> aSource
Returns the CIE little z coordinate for the 2° standard (colourimetric) observer.
chromaConvert :: (Fractional b, Real a) => Chromaticity a -> Chromaticity bSource
Change the type used to represent the chromaticity coordinates.
:: Fractional a | |
=> Chromaticity a | |
-> a | |
-> Colour a |
Constructs a colour from the given Chromaticity
and luminance
.