Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- data Chromaticity a = Chroma !a !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
- app_prec :: Int
- infix_prec :: Int
Documentation
data Chromaticity a Source #
Chroma !a !a |
Eq a => Eq (Chromaticity a) Source # | |
(Fractional a, Read a) => Read (Chromaticity a) Source # | |
(Fractional a, Show a) => Show (Chromaticity a) Source # | |
mkChromaticity :: Fractional a => a -> a -> Chromaticity a Source #
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 -> a Source #
Returns the CIE little x coordinate for the 2° standard (colourimetric) observer.
chromaY :: Fractional a => Chromaticity a -> a Source #
Returns the CIE little y coordinate for the 2° standard (colourimetric) observer.
chromaZ :: Fractional a => Chromaticity a -> a Source #
Returns the CIE little z coordinate for the 2° standard (colourimetric) observer.
chromaConvert :: (Fractional b, Real a) => Chromaticity a -> Chromaticity b Source #
Change the type used to represent the chromaticity coordinates.
infix_prec :: Int Source #