colour-2.3.6: A model for human colour/color perception
Safe Haskell Safe-Inferred
Language Haskell98

Data.Colour.SRGB.Linear

Description

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

Synopsis

Documentation

data Colour a Source #

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.

Instances

Instances details
ColourOps Colour Source #
Instance details

Defined in Data.Colour.Internal

AffineSpace Colour Source #
Instance details

Defined in Data.Colour.Internal

Eq a => Eq ( Colour a) Source #
Instance details

Defined in Data.Colour.Internal

( Fractional a, Read a) => Read ( Colour a) Source #
Instance details

Defined in Data.Colour

( Fractional a, Show a) => Show ( Colour a) Source #
Instance details

Defined in Data.Colour

Num a => Semigroup ( Colour a) Source #
Instance details

Defined in Data.Colour.Internal

Num a => Monoid ( Colour a) Source #
Instance details

Defined in Data.Colour.Internal

rgb :: Fractional a => a -> a -> a -> Colour a Source #

Constructs a Colour from RGB values using the linear RGB colour with the same gamut as sRGB.

toRGB :: Fractional a => Colour a -> RGB a Source #

Return RGB values using the linear RGB colour with the same gamut as sRGB.

sRGBGamut :: RGBGamut Source #

This is the gamut for the sRGB colour space.