HORIZON HASKELLDocslts/ghc-10.0.x2b276322026-10-31Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 2b27632 · 2026-10-31

Modulecolour-2.3.7Haskell98

Data.Colour.RGBSpace.HSV

Synopsis
  • Packagecolour-2.3.7
  • Exports6
  • LanguageHaskell98
  • LicenceMIT
  • SourceRGB.hs
datadata RGB a

An RGB triple for an unspecified colour space.

Instances5Functor, Applicative, Eq, Read, Show
  • Functor RGBDefined in colour-2.3.7 · Data.Colour.RGB
  • Applicative RGBDefined in colour-2.3.7 · Data.Colour.RGB
  • Eq a => Eq (RGB a)Defined in colour-2.3.7 · Data.Colour.RGB
  • Read a => Read (RGB a)Defined in colour-2.3.7 · Data.Colour.RGB
  • Show a => Show (RGB a)Defined in colour-2.3.7 · Data.Colour.RGB
valuevalue :: (Fractional a, Ord a) => RGB a -> a

Returns the value coordinate (raonge [0,1]) of an RGB triple for the HSV (hue-saturation-value) system.

valuehsv :: (RealFrac a, Ord a) => a -> a -> a -> RGB a

Convert HSV (hue-saturation-value) coordinates to an RGB value. Hue is expected to be measured in degrees [0,360], while saturation and value are expected to be in the closed range [0,1].