|
|
|
|
|
Description |
An RGBSpace is characterized by Chromaticity for red, green, and
blue, the Chromaticity of the white point, and it's
TransferFunction.
|
|
Synopsis |
|
|
|
Documentation |
|
|
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 | |
|
|
RGB Tuple
|
|
|
An RGB triple for an unspecified colour space.
| Constructors | RGB | | channelRed :: !a | | channelGreen :: !a | | channelBlue :: !a | |
|
| Instances | |
|
|
uncurryRGB :: (a -> a -> a -> b) -> RGB a -> b | Source |
|
Uncurries a function expecting three r, g, b parameters.
|
|
curryRGB :: (RGB a -> b) -> a -> a -> a -> b | Source |
|
Curries a function expecting one RGB parameter.
|
|
RGB Gamut
|
|
|
An RGBGamut is a 3-D colour “cube” that contains all the
colours that can be displayed by a RGB device.
The “cube” is normalized so that white has
Data.Colour.CIE.luminance 1.
| Instances | |
|
|
|
|
|
|
|
|
|
|
Returns True if the given colour lies inside the given gamut.
|
|
RGB Space
|
|
data TransferFunction a | Source |
|
A transfer function is a function that typically translates linear
colour space coordinates into non-linear coordinates.
The transferInverse function reverses this by translating non-linear
colour space coordinates into linear coordinates.
It is required that
transfer . transferInverse === id === transferInverse . inverse
(or that this law holds up to floating point rounding errors).
We also require that transfer is approximately (**transferGamma)
(and hence transferInverse is approximately
(**(recip transferGamma))).
The value transferGamma is for informational purposes only, so there
is no bound on how good this approximation needs to be.
| Constructors | TransferFunction | | transfer :: a -> a | | transferInverse :: a -> a | | transferGamma :: a | |
|
| Instances | |
|
|
|
This is the identity TransferFunction.
|
|
|
This is the (**gamma) TransferFunction.
|
|
|
This reverses a TransferFunction.
|
|
|
|
|
|
An RGBSpace is specified by an RGBGamut and a TransferFunction.
|
|
|
|
|
|
|
Produce a linear colour space from an RGBGamut.
|
|
|
Create a Colour from red, green, and blue coordinates given in a
general RGBSpace.
|
|
|
Return the coordinates of a given Colour for a general RGBSpace.
|
|
Produced by Haddock version 2.6.1 |