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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 77a8662 · 2026-10-31

Modulecolour-2.3.7Haskell98

Data.Colour.SRGB.Linear

Provides a linear colour space with the same gamut as Data.Colour.SRGB.

Synopsis
  • Packagecolour-2.3.7
  • Exports5
  • LanguageHaskell98
  • LicenceMIT
  • SourceLinear.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, …