Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Provides a linear colour space with the same gamut as Data.Colour.SRGB.
- data Colour a
- data RGB a = RGB {
- channelRed :: !a
- channelGreen :: !a
- channelBlue :: !a
- rgb :: Fractional a => a -> a -> a -> Colour a
- toRGB :: Fractional a => Colour a -> RGB a
- sRGBGamut :: RGBGamut
Documentation
An RGB triple for an unspecified colour space.
RGB | |
|
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.