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