colour-2.3.3: A model for human colour/color perception

Data.Colour.RGBSpace.HSV

Synopsis

Documentation

data RGB a Source

An RGB triple for an unspecified colour space.

Instances

Functor RGB 
Applicative RGB 
Eq a => Eq (RGB a) 
Read a => Read (RGB a) 
Show a => Show (RGB a) 

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.

hue :: (Fractional a, Ord a) => RGB a -> aSource

The hue coordinate of an RGB value is in degrees. Its value is always in the range 0-360.

saturation :: (Fractional a, Ord a) => RGB a -> aSource

Returns the saturation coordinate of an RGB triple for the HSV (hue-saturation-value) system. Note: This is different from Data.Colour.RGBSpace.HSL.saturation for the Data.Colour.RGBSpace.HSL

value :: (Fractional a, Ord a) => RGB a -> aSource

Returns the value coordinate of an RGB triple for the HSV (hue-saturation-value) system.

hsv :: (RealFrac a, Ord a) => a -> a -> a -> RGB aSource

Convert HSV (hue-saturation-value) coordinates to an RGB value. Hue is expected to be measured in degrees.