Safe Haskell | Safe |
---|---|
Language | Haskell98 |
- 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) #
Returns the HSV (hue-saturation-value) coordinates of an RGB
triple.
See hue
, saturation
, and value
.
hue :: (Fractional a, Ord a) => RGB a -> a #
saturation :: (Fractional a, Ord a) => RGB a -> a #
Returns the saturation coordinate of an RGB
triple for the HSV
(hue-saturation-value) system.
Note: This is different from saturation
for
the Data.Colour.RGBSpace.HSL