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.HSL

Description

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

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

Synopsis

Documentation

type Colour = HSL Float Source #

A HSL colour value

data HSL a Source #

Constructors

HSL a a a 
Instances
Functor HSL Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSL

Methods

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

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

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

Defined in Data.Array.Accelerate.Data.Colour.HSL

Associated Types

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

Methods

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

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

Defined in Data.Array.Accelerate.Data.Colour.HSL

Methods

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

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

Defined in Data.Array.Accelerate.Data.Colour.HSL

Methods

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

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

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

Defined in Data.Array.Accelerate.Data.Colour.HSL

Methods

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

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

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

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

Defined in Data.Array.Accelerate.Data.Colour.HSL

Methods

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

recip :: HSL a -> HSL a #

fromRational :: Rational -> HSL a #

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

Defined in Data.Array.Accelerate.Data.Colour.HSL

Methods

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

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

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

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

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

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

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

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

Defined in Data.Array.Accelerate.Data.Colour.HSL

Methods

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

(-) :: HSL a -> HSL a -> HSL a #

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

negate :: HSL a -> HSL a #

abs :: HSL a -> HSL a #

signum :: HSL a -> HSL a #

fromInteger :: Integer -> HSL a #

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

Defined in Data.Array.Accelerate.Data.Colour.HSL

Methods

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

show :: HSL a -> String #

showList :: [HSL a] -> ShowS #

Generic (HSL a) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSL

Associated Types

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

Methods

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

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

Elt (HSL Float) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSL

Associated Types

type EltR (HSL Float) :: Type

Methods

eltR :: TypeR (EltR (HSL Float))

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

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

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

NamedColour (HSL Float) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSL

Methods

antiqueWhite :: HSL Float Source #

azure :: HSL Float Source #

bisque :: HSL Float Source #

blanchedAlmond :: HSL Float Source #

cornsilk :: HSL Float Source #

eggshell :: HSL Float Source #

floralWhite :: HSL Float Source #

gainsboro :: HSL Float Source #

ghostWhite :: HSL Float Source #

honeydew :: HSL Float Source #

ivory :: HSL Float Source #

lavender :: HSL Float Source #

lavenderBlush :: HSL Float Source #

lemonChiffon :: HSL Float Source #

linen :: HSL Float Source #

mintCream :: HSL Float Source #

mistyRose :: HSL Float Source #

moccasin :: HSL Float Source #

navajoWhite :: HSL Float Source #

oldLace :: HSL Float Source #

papayaWhip :: HSL Float Source #

peachPuff :: HSL Float Source #

seashell :: HSL Float Source #

snow :: HSL Float Source #

thistle :: HSL Float Source #

titaniumWhite :: HSL Float Source #

wheat :: HSL Float Source #

white :: HSL Float Source #

whiteSmoke :: HSL Float Source #

zincWhite :: HSL Float Source #

coldGrey :: HSL Float Source #

dimGrey :: HSL Float Source #

grey :: HSL Float Source #

lightGrey :: HSL Float Source #

slateGrey :: HSL Float Source #

slateGreyDark :: HSL Float Source #

slateGreyLight :: HSL Float Source #

warmGrey :: HSL Float Source #

black :: HSL Float Source #

ivoryBlack :: HSL Float Source #

lampBlack :: HSL Float Source #

alizarinCrimson :: HSL Float Source #

brick :: HSL Float Source #

cadmiumRedDeep :: HSL Float Source #

coral :: HSL Float Source #

coralLight :: HSL Float Source #

deepPink :: HSL Float Source #

englishRed :: HSL Float Source #

firebrick :: HSL Float Source #

geraniumLake :: HSL Float Source #

hotPink :: HSL Float Source #

indianRed :: HSL Float Source #

lightSalmon :: HSL Float Source #

madderLakeDeep :: HSL Float Source #

maroon :: HSL Float Source #

pink :: HSL Float Source #

pinkLight :: HSL Float Source #

raspberry :: HSL Float Source #

red :: HSL Float Source #

roseMadder :: HSL Float Source #

salmon :: HSL Float Source #

tomato :: HSL Float Source #

venetianRed :: HSL Float Source #

beige :: HSL Float Source #

brown :: HSL Float Source #

brownMadder :: HSL Float Source #

brownOchre :: HSL Float Source #

burlywood :: HSL Float Source #

burntSienna :: HSL Float Source #

burntUmber :: HSL Float Source #

chocolate :: HSL Float Source #

deepOchre :: HSL Float Source #

flesh :: HSL Float Source #

fleshOchre :: HSL Float Source #

goldOchre :: HSL Float Source #

greenishUmber :: HSL Float Source #

khaki :: HSL Float Source #

khakiDark :: HSL Float Source #

lightBeige :: HSL Float Source #

peru :: HSL Float Source #

rosyBrown :: HSL Float Source #

rawSienna :: HSL Float Source #

rawUmber :: HSL Float Source #

sepia :: HSL Float Source #

sienna :: HSL Float Source #

saddleBrown :: HSL Float Source #

sandyBrown :: HSL Float Source #

tan :: HSL Float Source #

vanDykeBrown :: HSL Float Source #

cadmiumOrange :: HSL Float Source #

cadmiumRedLight :: HSL Float Source #

carrot :: HSL Float Source #

darkOrange :: HSL Float Source #

marsOrange :: HSL Float Source #

marsYellow :: HSL Float Source #

orange :: HSL Float Source #

orangeRed :: HSL Float Source #

yellowOchre :: HSL Float Source #

aureolineYellow :: HSL Float Source #

banana :: HSL Float Source #

cadmiumLemon :: HSL Float Source #

cadmiumYellow :: HSL Float Source #

gold :: HSL Float Source #

goldenrod :: HSL Float Source #

goldenrodDark :: HSL Float Source #

goldenrodLight :: HSL Float Source #

goldenrodPale :: HSL Float Source #

lightGoldenrod :: HSL Float Source #

melon :: HSL Float Source #

naplesYellowDeep :: HSL Float Source #

yellow :: HSL Float Source #

yellowLight :: HSL Float Source #

chartreuse :: HSL Float Source #

chromeoxideGreen :: HSL Float Source #

cinnabarGreen :: HSL Float Source #

cobaltGreen :: HSL Float Source #

emeraldGreen :: HSL Float Source #

forestGreen :: HSL Float Source #

green :: HSL Float Source #

greenDark :: HSL Float Source #

greenPale :: HSL Float Source #

greenYellow :: HSL Float Source #

lawnGreen :: HSL Float Source #

limeGreen :: HSL Float Source #

mint :: HSL Float Source #

olive :: HSL Float Source #

oliveDrab :: HSL Float Source #

oliveGreenDark :: HSL Float Source #

permanentGreen :: HSL Float Source #

sapGreen :: HSL Float Source #

seaGreen :: HSL Float Source #

seaGreenDark :: HSL Float Source #

seaGreenMedium :: HSL Float Source #

seaGreenLight :: HSL Float Source #

springGreen :: HSL Float Source #

springGreenMedium :: HSL Float Source #

terreVerte :: HSL Float Source #

viridianLight :: HSL Float Source #

yellowGreen :: HSL Float Source #

aquamarine :: HSL Float Source #

aquamarineMedium :: HSL Float Source #

cyan :: HSL Float Source #

cyanWhite :: HSL Float Source #

turquoise :: HSL Float Source #

turquoiseDark :: HSL Float Source #

turquoiseMedium :: HSL Float Source #

turquoisePale :: HSL Float Source #

aliceBlue :: HSL Float Source #

blue :: HSL Float Source #

blueLight :: HSL Float Source #

blueMedium :: HSL Float Source #

cadet :: HSL Float Source #

cobalt :: HSL Float Source #

cornflower :: HSL Float Source #

cerulean :: HSL Float Source #

dodgerBlue :: HSL Float Source #

indigo :: HSL Float Source #

manganeseBlue :: HSL Float Source #

midnightBlue :: HSL Float Source #

navy :: HSL Float Source #

peacock :: HSL Float Source #

powderBlue :: HSL Float Source #

royalBlue :: HSL Float Source #

slateBlue :: HSL Float Source #

slateBlueDark :: HSL Float Source #

slateBlueLight :: HSL Float Source #

slateBlueMedium :: HSL Float Source #

skyBlue :: HSL Float Source #

skyBlueDeep :: HSL Float Source #

skyBlueLight :: HSL Float Source #

steelBlue :: HSL Float Source #

steelBlueLight :: HSL Float Source #

turquoiseBlue :: HSL Float Source #

ultramarine :: HSL Float Source #

blueViolet :: HSL Float Source #

cobaltVioletDeep :: HSL Float Source #

magenta :: HSL Float Source #

orchid :: HSL Float Source #

orchidDark :: HSL Float Source #

orchidMedium :: HSL Float Source #

permanentViolet :: HSL Float Source #

plum :: HSL Float Source #

purple :: HSL Float Source #

purpleMedium :: HSL Float Source #

ultramarineViolet :: HSL Float Source #

violet :: HSL Float Source #

violetDark :: HSL Float Source #

violetRed :: HSL Float Source #

violetRedMedium :: HSL Float Source #

violetRedPale :: HSL Float Source #

type Rep (HSL a) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSL

type Rep (HSL a) = D1 (MetaData "HSL" "Data.Array.Accelerate.Data.Colour.HSL" "colour-accelerate-0.4.0.0-GZgvVFgNlpQ9AsTfi6pN5F" False) (C1 (MetaCons "HSL" 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 (HSL Float) Source # 
Instance details

Defined in Data.Array.Accelerate.Data.Colour.HSL

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

Defined in Data.Array.Accelerate.Data.Colour.HSL

type Plain (HSL (Exp Float)) = HSL Float

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

hsl Source #

Arguments

:: Exp Float

hue component

-> Exp Float

saturation component

-> Exp Float

lightness component

-> Exp Colour 

Construct a HSL 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 (HSL Float) -> Exp (RGB Float) Source #

Convert a HSL colour to an RGB colour-space value

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

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

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

Return the HSL-hue of an RGB colour

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

Return the HSL-saturation of an RGB colour

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

Return the HSL-lightness of an RGB colour