Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Synopsis
- data RGB a
- hslView :: (Fractional a, Ord a) => RGB a -> (a, a, a)
- hue :: (Fractional a, Ord a) => RGB a -> a
- saturation :: (Fractional a, Ord a) => RGB a -> a
- lightness :: (Fractional a, Ord a) => RGB a -> a
- hsl :: (RealFrac a, Ord a) => a -> a -> a -> RGB a
Documentation
An RGB triple for an unspecified colour space.
hslView :: (Fractional a, Ord a) => RGB a -> (a, a, a) Source #
Returns the HSL (hue-saturation-lightness) coordinates of an RGB
triple.
See hue
, saturation
, and lightness
.
saturation :: (Fractional a, Ord a) => RGB a -> a Source #
Returns the saturation coordinate (range [0, 1]) of an RGB
triple for the HSL
(hue-saturation-lightness) system.
Note: This is different from saturation
for
the Data.Colour.RGBSpace.HSV