HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Modulecolour-2.3.7Haskell98

Data.Colour.CIE

Colour operations defined by the International Commission on Illumination (CIE).

Synopsis
  • Packagecolour-2.3.7
  • Exports16
  • LanguageHaskell98
  • LicenceMIT
  • SourceCIE.hs
datadata Colour a

This type represents the human preception of colour. The a parameter is a numeric type used internally for the representation.

The Monoid instance allows one to add colours, but beware that adding colours can take you out of gamut. Consider using blend whenever possible.

Instances7AffineSpace, ColourOps, Eq, Read, Show, Semigroup, …
valuecieLAB
  1. :: (Ord a, Floating a)
  2. => Chromaticity a

    White point

  3. -> a

    L* coordinate (lightness)

  4. -> a

    a* coordinate

  5. -> a

    b* coordinate

  6. -> Colour a

Returns the colour for given CIELAB coordinates, which is a perceptually uniform colour space. If you don't know what white point to use, use d65.

Orphan instances

1 instance