colour-accelerate-0.4.0.0: Working with colours in Accelerate

Copyright[2016..2020] Trevor L. McDonell
LicenseBSD3
MaintainerTrevor L. McDonell <trevor.mcdonell@gmail.com>
Stabilityexperimental
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Data.Array.Accelerate.Data.Colour.HSV

Description

Colours in the HSV (hue-saturation-value) cylindrical-coordinate representation of points in the RGB colour space.

https://en.wikipedia.org/wiki/HSL_and_HSV

Synopsis

Documentation

type Colour = HSV Float Source #

A HSV colour value

data HSV a Source #

Constructors

HSV a a a 
Instances
Functor HSV Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSV

Methods

fmap :: (a -> b) -> HSV a -> HSV b #

(<$) :: a -> HSV b -> HSV a #

Lift Exp (HSV Float) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSV

Associated Types

type Plain (HSV Float) :: Type #

Methods

lift :: HSV Float -> Exp (Plain (HSV Float)) #

Lift Exp (HSV (Exp Float)) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSV

Associated Types

type Plain (HSV (Exp Float)) :: Type #

Methods

lift :: HSV (Exp Float) -> Exp (Plain (HSV (Exp Float))) #

Unlift Exp (HSV (Exp Float)) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSV

Methods

unlift :: Exp (Plain (HSV (Exp Float))) -> HSV (Exp Float) #

Eq a => Eq (HSV a) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSV

Methods

(==) :: HSV a -> HSV a -> Bool #

(/=) :: HSV a -> HSV a -> Bool #

(Fractional a, Unlift Exp (HSV (Exp a)), Plain (HSV (Exp a)) ~ HSV a) => Fractional (Exp (HSV a)) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSV

Methods

(/) :: Exp (HSV a) -> Exp (HSV a) -> Exp (HSV a) #

recip :: Exp (HSV a) -> Exp (HSV a) #

fromRational :: Rational -> Exp (HSV a) #

(Num a, Fractional a) => Fractional (HSV a) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSV

Methods

(/) :: HSV a -> HSV a -> HSV a #

recip :: HSV a -> HSV a #

fromRational :: Rational -> HSV a #

(Num a, Unlift Exp (HSV (Exp a)), Plain (HSV (Exp a)) ~ HSV a) => Num (Exp (HSV a)) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSV

Methods

(+) :: Exp (HSV a) -> Exp (HSV a) -> Exp (HSV a) #

(-) :: Exp (HSV a) -> Exp (HSV a) -> Exp (HSV a) #

(*) :: Exp (HSV a) -> Exp (HSV a) -> Exp (HSV a) #

negate :: Exp (HSV a) -> Exp (HSV a) #

abs :: Exp (HSV a) -> Exp (HSV a) #

signum :: Exp (HSV a) -> Exp (HSV a) #

fromInteger :: Integer -> Exp (HSV a) #

Num a => Num (HSV a) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSV

Methods

(+) :: HSV a -> HSV a -> HSV a #

(-) :: HSV a -> HSV a -> HSV a #

(*) :: HSV a -> HSV a -> HSV a #

negate :: HSV a -> HSV a #

abs :: HSV a -> HSV a #

signum :: HSV a -> HSV a #

fromInteger :: Integer -> HSV a #

Show a => Show (HSV a) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSV

Methods

showsPrec :: Int -> HSV a -> ShowS #

show :: HSV a -> String #

showList :: [HSV a] -> ShowS #

Generic (HSV a) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSV

Associated Types

type Rep (HSV a) :: Type -> Type #

Methods

from :: HSV a -> Rep (HSV a) x #

to :: Rep (HSV a) x -> HSV a #

Elt (HSV Float) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSV

Associated Types

type EltR (HSV Float) :: Type

Methods

eltR :: TypeR (EltR (HSV Float))

tagsR :: [TagR (EltR (HSV Float))]

fromElt :: HSV Float -> EltR (HSV Float)

toElt :: EltR (HSV Float) -> HSV Float

NamedColour (HSV Float) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSV

Methods

antiqueWhite :: HSV Float Source #

azure :: HSV Float Source #

bisque :: HSV Float Source #

blanchedAlmond :: HSV Float Source #

cornsilk :: HSV Float Source #

eggshell :: HSV Float Source #

floralWhite :: HSV Float Source #

gainsboro :: HSV Float Source #

ghostWhite :: HSV Float Source #

honeydew :: HSV Float Source #

ivory :: HSV Float Source #

lavender :: HSV Float Source #

lavenderBlush :: HSV Float Source #

lemonChiffon :: HSV Float Source #

linen :: HSV Float Source #

mintCream :: HSV Float Source #

mistyRose :: HSV Float Source #

moccasin :: HSV Float Source #

navajoWhite :: HSV Float Source #

oldLace :: HSV Float Source #

papayaWhip :: HSV Float Source #

peachPuff :: HSV Float Source #

seashell :: HSV Float Source #

snow :: HSV Float Source #

thistle :: HSV Float Source #

titaniumWhite :: HSV Float Source #

wheat :: HSV Float Source #

white :: HSV Float Source #

whiteSmoke :: HSV Float Source #

zincWhite :: HSV Float Source #

coldGrey :: HSV Float Source #

dimGrey :: HSV Float Source #

grey :: HSV Float Source #

lightGrey :: HSV Float Source #

slateGrey :: HSV Float Source #

slateGreyDark :: HSV Float Source #

slateGreyLight :: HSV Float Source #

warmGrey :: HSV Float Source #

black :: HSV Float Source #

ivoryBlack :: HSV Float Source #

lampBlack :: HSV Float Source #

alizarinCrimson :: HSV Float Source #

brick :: HSV Float Source #

cadmiumRedDeep :: HSV Float Source #

coral :: HSV Float Source #

coralLight :: HSV Float Source #

deepPink :: HSV Float Source #

englishRed :: HSV Float Source #

firebrick :: HSV Float Source #

geraniumLake :: HSV Float Source #

hotPink :: HSV Float Source #

indianRed :: HSV Float Source #

lightSalmon :: HSV Float Source #

madderLakeDeep :: HSV Float Source #

maroon :: HSV Float Source #

pink :: HSV Float Source #

pinkLight :: HSV Float Source #

raspberry :: HSV Float Source #

red :: HSV Float Source #

roseMadder :: HSV Float Source #

salmon :: HSV Float Source #

tomato :: HSV Float Source #

venetianRed :: HSV Float Source #

beige :: HSV Float Source #

brown :: HSV Float Source #

brownMadder :: HSV Float Source #

brownOchre :: HSV Float Source #

burlywood :: HSV Float Source #

burntSienna :: HSV Float Source #

burntUmber :: HSV Float Source #

chocolate :: HSV Float Source #

deepOchre :: HSV Float Source #

flesh :: HSV Float Source #

fleshOchre :: HSV Float Source #

goldOchre :: HSV Float Source #

greenishUmber :: HSV Float Source #

khaki :: HSV Float Source #

khakiDark :: HSV Float Source #

lightBeige :: HSV Float Source #

peru :: HSV Float Source #

rosyBrown :: HSV Float Source #

rawSienna :: HSV Float Source #

rawUmber :: HSV Float Source #

sepia :: HSV Float Source #

sienna :: HSV Float Source #

saddleBrown :: HSV Float Source #

sandyBrown :: HSV Float Source #

tan :: HSV Float Source #

vanDykeBrown :: HSV Float Source #

cadmiumOrange :: HSV Float Source #

cadmiumRedLight :: HSV Float Source #

carrot :: HSV Float Source #

darkOrange :: HSV Float Source #

marsOrange :: HSV Float Source #

marsYellow :: HSV Float Source #

orange :: HSV Float Source #

orangeRed :: HSV Float Source #

yellowOchre :: HSV Float Source #

aureolineYellow :: HSV Float Source #

banana :: HSV Float Source #

cadmiumLemon :: HSV Float Source #

cadmiumYellow :: HSV Float Source #

gold :: HSV Float Source #

goldenrod :: HSV Float Source #

goldenrodDark :: HSV Float Source #

goldenrodLight :: HSV Float Source #

goldenrodPale :: HSV Float Source #

lightGoldenrod :: HSV Float Source #

melon :: HSV Float Source #

naplesYellowDeep :: HSV Float Source #

yellow :: HSV Float Source #

yellowLight :: HSV Float Source #

chartreuse :: HSV Float Source #

chromeoxideGreen :: HSV Float Source #

cinnabarGreen :: HSV Float Source #

cobaltGreen :: HSV Float Source #

emeraldGreen :: HSV Float Source #

forestGreen :: HSV Float Source #

green :: HSV Float Source #

greenDark :: HSV Float Source #

greenPale :: HSV Float Source #

greenYellow :: HSV Float Source #

lawnGreen :: HSV Float Source #

limeGreen :: HSV Float Source #

mint :: HSV Float Source #

olive :: HSV Float Source #

oliveDrab :: HSV Float Source #

oliveGreenDark :: HSV Float Source #

permanentGreen :: HSV Float Source #

sapGreen :: HSV Float Source #

seaGreen :: HSV Float Source #

seaGreenDark :: HSV Float Source #

seaGreenMedium :: HSV Float Source #

seaGreenLight :: HSV Float Source #

springGreen :: HSV Float Source #

springGreenMedium :: HSV Float Source #

terreVerte :: HSV Float Source #

viridianLight :: HSV Float Source #

yellowGreen :: HSV Float Source #

aquamarine :: HSV Float Source #

aquamarineMedium :: HSV Float Source #

cyan :: HSV Float Source #

cyanWhite :: HSV Float Source #

turquoise :: HSV Float Source #

turquoiseDark :: HSV Float Source #

turquoiseMedium :: HSV Float Source #

turquoisePale :: HSV Float Source #

aliceBlue :: HSV Float Source #

blue :: HSV Float Source #

blueLight :: HSV Float Source #

blueMedium :: HSV Float Source #

cadet :: HSV Float Source #

cobalt :: HSV Float Source #

cornflower :: HSV Float Source #

cerulean :: HSV Float Source #

dodgerBlue :: HSV Float Source #

indigo :: HSV Float Source #

manganeseBlue :: HSV Float Source #

midnightBlue :: HSV Float Source #

navy :: HSV Float Source #

peacock :: HSV Float Source #

powderBlue :: HSV Float Source #

royalBlue :: HSV Float Source #

slateBlue :: HSV Float Source #

slateBlueDark :: HSV Float Source #

slateBlueLight :: HSV Float Source #

slateBlueMedium :: HSV Float Source #

skyBlue :: HSV Float Source #

skyBlueDeep :: HSV Float Source #

skyBlueLight :: HSV Float Source #

steelBlue :: HSV Float Source #

steelBlueLight :: HSV Float Source #

turquoiseBlue :: HSV Float Source #

ultramarine :: HSV Float Source #

blueViolet :: HSV Float Source #

cobaltVioletDeep :: HSV Float Source #

magenta :: HSV Float Source #

orchid :: HSV Float Source #

orchidDark :: HSV Float Source #

orchidMedium :: HSV Float Source #

permanentViolet :: HSV Float Source #

plum :: HSV Float Source #

purple :: HSV Float Source #

purpleMedium :: HSV Float Source #

ultramarineViolet :: HSV Float Source #

violet :: HSV Float Source #

violetDark :: HSV Float Source #

violetRed :: HSV Float Source #

violetRedMedium :: HSV Float Source #

violetRedPale :: HSV Float Source #

type Rep (HSV a) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSV

type Rep (HSV a) = D1 (MetaData "HSV" "Data.Array.Accelerate.Data.Colour.HSV" "colour-accelerate-0.4.0.0-GZgvVFgNlpQ9AsTfi6pN5F" False) (C1 (MetaCons "HSV" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a) :*: (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a) :*: S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 a))))
type EltR (HSV Float) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSV

type EltR (HSV Float) = Vec3 Float
type Plain (HSV Float) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSV

type Plain (HSV (Exp Float)) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSV

type Plain (HSV (Exp Float)) = HSV Float

pattern HSV_ :: (Elt (HSV a), Elt a, VecElt a, EltR (HSV a) ~ Vec3 a) => Exp a -> Exp a -> Exp a -> Exp (HSV a) Source #

hsv Source #

Arguments

:: Exp Float

hue component

-> Exp Float

saturation component

-> Exp Float

value component

-> Exp Colour 

Construct a HSV colour value from the individual channel components. The hue component is measured in degrees and wrapped to the range [0..360), while the saturation and value are clamped to the range [0..1].

toRGB :: Exp (HSV Float) -> Exp (RGB Float) Source #

Convert a HSV colour to an RGB colour-space value

fromRGB :: Exp (RGB Float) -> Exp (HSV Float) Source #

Convert a point in the RGB colour-space to a point in the HSV colour-space.

hue :: Exp (RGB Float) -> Exp Float Source #

Return the HSV-hue of an RGB colour

saturation :: Exp (RGB Float) -> Exp Float Source #

Return the HSV-saturation of an RGB colour

value :: Exp (RGB Float) -> Exp Float Source #

Return the HSV-value of an RGB colour