Color-0.3.3: Color spaces and conversions between them
Copyright(c) Alexey Kuleshevich 2018-2020
LicenseBSD3
MaintainerAlexey Kuleshevich <lehins@yandex.ru>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Graphics.Color.Space

Contents

Description

 
Synopsis

Documentation

convertColor :: forall cs cs' i e. (ColorSpace cs' i e, ColorSpace cs i e) => Color cs' e -> Color cs e Source #

Convert a color space through XYZ intermediary with Double precision. Illuminant is enforced to be the same, but in case that it is a limitation and chromatic adaptation is needed convert can be used instead.

Since: 0.1.1

convertColorFloat :: forall cs cs' i e. (ColorSpace cs' i e, ColorSpace cs i e) => Color cs' e -> Color cs e Source #

Same as convertColor, but use 32bit Float as an intermediary precision

Since: 0.1.1

class (Functor (Color cs), Applicative (Color cs), Foldable (Color cs), Traversable (Color cs), Eq (Color cs e), Show (Color cs e), Unbox (Components cs e), Storable (Color cs e), Typeable cs, Elevator e, Typeable (Opaque cs)) => ColorModel cs e where Source #

Minimal complete definition

toComponents, fromComponents

Associated Types

type Components cs e :: Type Source #

Methods

toComponents :: Color cs e -> Components cs e Source #

Convert a Color to a representation suitable for storage as an unboxed element, usually a tuple of channels.

fromComponents :: Components cs e -> Color cs e Source #

Convert from an elemnt representation back to a Color.

showsColorModelName :: Proxy (Color cs e) -> ShowS Source #

Display the cs portion of the pixel. Color itself will not be evaluated.

Since: 0.1.0

Instances

Instances details
Elevator e => ColorModel LCH e Source #

LCH color model

Instance details

Defined in Graphics.Color.Model.LCH

Associated Types

type Components LCH e Source #

Elevator e => ColorModel RGB e Source #

RGB color model

Instance details

Defined in Graphics.Color.Model.RGB

Associated Types

type Components RGB e Source #

Elevator e => ColorModel HSV e Source #

HSV color model

Instance details

Defined in Graphics.Color.Model.HSV

Associated Types

type Components HSV e Source #

Elevator e => ColorModel HSL e Source #

HSL color model

Instance details

Defined in Graphics.Color.Model.HSL

Associated Types

type Components HSL e Source #

Elevator e => ColorModel HSI e Source #

HSI color model

Instance details

Defined in Graphics.Color.Model.HSI

Associated Types

type Components HSI e Source #

Elevator e => ColorModel CMYK e Source #

CMYK color model

Instance details

Defined in Graphics.Color.Model.CMYK

Associated Types

type Components CMYK e Source #

Elevator e => ColorModel X e Source #

X color model

Instance details

Defined in Graphics.Color.Model.X

Associated Types

type Components X e Source #

Elevator e => ColorModel YCbCr e Source #

YCbCr color model

Instance details

Defined in Graphics.Color.Model.YCbCr

Associated Types

type Components YCbCr e Source #

(ColorModel cs e, cs ~ Opaque (Alpha cs)) => ColorModel (Alpha cs) e Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Associated Types

type Components (Alpha cs) e Source #

(Typeable l, Elevator e) => ColorModel (BT470_625 l) e Source #

ITU-R BT.470 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Associated Types

type Components (BT470_625 l) e Source #

(Typeable l, Elevator e) => ColorModel (BT470_525 l) e Source #

ITU-R BT.470 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Associated Types

type Components (BT470_525 l) e Source #

(Typeable l, Elevator e) => ColorModel (CIERGB l) e Source #

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Associated Types

type Components (CIERGB l) e Source #

(Typeable cs, Elevator e) => ColorModel (Y' cs) e Source #

Y` - as a color model

Instance details

Defined in Graphics.Color.Space.RGB.Luma

Associated Types

type Components (Y' cs) e Source #

(Typeable l, Elevator e) => ColorModel (BT601_625 l) e Source #

ITU-R BT.601 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Associated Types

type Components (BT601_625 l) e Source #

(Typeable l, Elevator e) => ColorModel (BT601_525 l) e Source #

ITU-R BT.601 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Associated Types

type Components (BT601_525 l) e Source #

(Typeable l, Elevator e) => ColorModel (BT709 l) e Source #

ITU-R BT.709 color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec709

Associated Types

type Components (BT709 l) e Source #

(Typeable l, Elevator e) => ColorModel (AdobeRGB l) e Source #

AdobeRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.AdobeRGB

Associated Types

type Components (AdobeRGB l) e Source #

(Typeable l, Elevator e) => ColorModel (SRGB l) e Source #

SRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.SRGB

Associated Types

type Components (SRGB l) e Source #

(Typeable cs, ColorModel (cs 'NonLinear) e, Elevator e) => ColorModel (Y'CbCr cs) e Source # 
Instance details

Defined in Graphics.Color.Space.RGB.Alternative.YCbCr

Associated Types

type Components (Y'CbCr cs) e Source #

(Illuminant i, Elevator e) => ColorModel (Y i) e Source #

Y - relative luminance of a color space

Instance details

Defined in Graphics.Color.Space.Internal

Associated Types

type Components (Y i) e Source #

(Illuminant i, Elevator e) => ColorModel (CIExyY i) e Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Associated Types

type Components (CIExyY i) e Source #

(Illuminant i, Elevator e) => ColorModel (XYZ i) e Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Associated Types

type Components (XYZ i) e Source #

(Illuminant i, Elevator e) => ColorModel (LUV i) e Source #

CIE1976 LUV color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV

Associated Types

type Components (LUV i) e Source #

(Illuminant i, Elevator e, ColorModel (LUV i) e) => ColorModel (LCHuv i) e Source #

CIE1976 LCHuv color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV.LCH

Associated Types

type Components (LCHuv i) e Source #

(Illuminant i, Elevator e) => ColorModel (LAB i) e Source #

CIE1976 LAB color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB

Associated Types

type Components (LAB i) e Source #

(Illuminant i, Elevator e, ColorModel (LAB i) e) => ColorModel (LCHab i) e Source #

CIE1976 LCHab color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB.LCH

Associated Types

type Components (LCHab i) e Source #

ColorModel cs e => ColorModel (HSV cs) e Source #

HSV representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSV

Associated Types

type Components (HSV cs) e Source #

ColorModel cs e => ColorModel (HSL cs) e Source #

HSL representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSL

Associated Types

type Components (HSL cs) e Source #

ColorModel cs e => ColorModel (HSI cs) e Source #

HSI representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSI

Associated Types

type Components (HSI cs) e Source #

ColorModel cs e => ColorModel (CMYK cs) e Source #

CMYK representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.CMYK

Associated Types

type Components (CMYK cs) e Source #

(Typeable l, Illuminant i, Elevator e) => ColorModel (CIERGB i l) e Source #

CIERGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.CIERGB

Associated Types

type Components (CIERGB i l) e Source #

(Typeable l, Illuminant i, Elevator e) => ColorModel (AdobeRGB i l) e Source #

AdobeRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.AdobeRGB

Associated Types

type Components (AdobeRGB i l) e Source #

(Typeable l, Illuminant i, Elevator e) => ColorModel (SRGB i l) e Source #

SRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.SRGB

Associated Types

type Components (SRGB i l) e Source #

Alpha

data Alpha cs Source #

Instances

Instances details
(ColorSpace cs i e, ColorSpace (BaseSpace cs) i e, cs ~ Opaque (Alpha cs), BaseModel cs ~ Opaque (Alpha (BaseModel cs))) => ColorSpace (Alpha cs) (i :: k) e Source # 
Instance details

Defined in Graphics.Color.Space.Internal

Associated Types

type BaseModel (Alpha cs) Source #

type BaseSpace (Alpha cs) Source #

Methods

toBaseModel :: Color (Alpha cs) e -> Color (BaseModel (Alpha cs)) e Source #

fromBaseModel :: Color (BaseModel (Alpha cs)) e -> Color (Alpha cs) e Source #

toBaseSpace :: Color (Alpha cs) e -> Color (BaseSpace (Alpha cs)) e Source #

fromBaseSpace :: Color (BaseSpace (Alpha cs)) e -> Color (Alpha cs) e Source #

luminance :: (Elevator a, RealFloat a) => Color (Alpha cs) e -> Color (Y i) a Source #

toColorXYZ :: (Elevator a, RealFloat a) => Color (Alpha cs) e -> Color (XYZ i) a Source #

fromColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) a -> Color (Alpha cs) e Source #

Functor (Color cs) => Functor (Color (Alpha cs)) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

fmap :: (a -> b) -> Color (Alpha cs) a -> Color (Alpha cs) b #

(<$) :: a -> Color (Alpha cs) b -> Color (Alpha cs) a #

Applicative (Color cs) => Applicative (Color (Alpha cs)) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

pure :: a -> Color (Alpha cs) a #

(<*>) :: Color (Alpha cs) (a -> b) -> Color (Alpha cs) a -> Color (Alpha cs) b #

liftA2 :: (a -> b -> c) -> Color (Alpha cs) a -> Color (Alpha cs) b -> Color (Alpha cs) c #

(*>) :: Color (Alpha cs) a -> Color (Alpha cs) b -> Color (Alpha cs) b #

(<*) :: Color (Alpha cs) a -> Color (Alpha cs) b -> Color (Alpha cs) a #

Foldable (Color cs) => Foldable (Color (Alpha cs)) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

fold :: Monoid m => Color (Alpha cs) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (Alpha cs) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (Alpha cs) a -> m #

foldr :: (a -> b -> b) -> b -> Color (Alpha cs) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (Alpha cs) a -> b #

foldl :: (b -> a -> b) -> b -> Color (Alpha cs) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (Alpha cs) a -> b #

foldr1 :: (a -> a -> a) -> Color (Alpha cs) a -> a #

foldl1 :: (a -> a -> a) -> Color (Alpha cs) a -> a #

toList :: Color (Alpha cs) a -> [a] #

null :: Color (Alpha cs) a -> Bool #

length :: Color (Alpha cs) a -> Int #

elem :: Eq a => a -> Color (Alpha cs) a -> Bool #

maximum :: Ord a => Color (Alpha cs) a -> a #

minimum :: Ord a => Color (Alpha cs) a -> a #

sum :: Num a => Color (Alpha cs) a -> a #

product :: Num a => Color (Alpha cs) a -> a #

Traversable (Color cs) => Traversable (Color (Alpha cs)) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

traverse :: Applicative f => (a -> f b) -> Color (Alpha cs) a -> f (Color (Alpha cs) b) #

sequenceA :: Applicative f => Color (Alpha cs) (f a) -> f (Color (Alpha cs) a) #

mapM :: Monad m => (a -> m b) -> Color (Alpha cs) a -> m (Color (Alpha cs) b) #

sequence :: Monad m => Color (Alpha cs) (m a) -> m (Color (Alpha cs) a) #

(ColorModel cs e, cs ~ Opaque (Alpha cs)) => ColorModel (Alpha cs) e Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Associated Types

type Components (Alpha cs) e Source #

(Eq (Color cs e), Eq e) => Eq (Color (Alpha cs) e) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

(==) :: Color (Alpha cs) e -> Color (Alpha cs) e -> Bool #

(/=) :: Color (Alpha cs) e -> Color (Alpha cs) e -> Bool #

(ColorModel cs e, cs ~ Opaque (Alpha cs)) => Show (Color (Alpha cs) e) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

showsPrec :: Int -> Color (Alpha cs) e -> ShowS #

show :: Color (Alpha cs) e -> String #

showList :: [Color (Alpha cs) e] -> ShowS #

(Storable (Color cs e), Storable e) => Storable (Color (Alpha cs) e) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

sizeOf :: Color (Alpha cs) e -> Int #

alignment :: Color (Alpha cs) e -> Int #

peekElemOff :: Ptr (Color (Alpha cs) e) -> Int -> IO (Color (Alpha cs) e) #

pokeElemOff :: Ptr (Color (Alpha cs) e) -> Int -> Color (Alpha cs) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (Alpha cs) e) #

pokeByteOff :: Ptr b -> Int -> Color (Alpha cs) e -> IO () #

peek :: Ptr (Color (Alpha cs) e) -> IO (Color (Alpha cs) e) #

poke :: Ptr (Color (Alpha cs) e) -> Color (Alpha cs) e -> IO () #

data Color (Alpha cs) e Source # 
Instance details

Defined in Graphics.Color.Model.Internal

data Color (Alpha cs) e = Alpha {}
type BaseModel (Alpha cs) Source # 
Instance details

Defined in Graphics.Color.Space.Internal

type BaseModel (Alpha cs) = Alpha (BaseModel cs)
type BaseSpace (Alpha cs) Source # 
Instance details

Defined in Graphics.Color.Space.Internal

type BaseSpace (Alpha cs) = Alpha (BaseSpace cs)
type Components (Alpha cs) e Source # 
Instance details

Defined in Graphics.Color.Model.Internal

type Components (Alpha cs) e = (Components cs e, e)

type family Opaque cs where ... Source #

Equations

Opaque (Alpha (Alpha cs)) = TypeError ('Text "Nested alpha channels are not allowed") 
Opaque (Alpha cs) = cs 
Opaque cs = cs 

addAlpha :: Color cs e -> e -> Color (Alpha cs) e Source #

Add an alpha channel value to an opaque pixel

Since: 0.1.0

getAlpha :: Color (Alpha cs) e -> e Source #

Get the alpha channel value for the pixel

Since: 0.1.0

setAlpha :: Color (Alpha cs) e -> e -> Color (Alpha cs) e Source #

Change the alpha channel value for the pixel

Since: 0.1.0

dropAlpha :: Color (Alpha cs) e -> Color cs e Source #

Get the opaque pixel value, while leaving alpha channel intact.

Since: 0.1.0

modifyAlpha :: (e -> e) -> Color (Alpha cs) e -> Color (Alpha cs) e Source #

Change the alpha channel value for the pixel

Since: 0.1.0

modifyOpaque :: (Color cs e -> Color cs' e) -> Color (Alpha cs) e -> Color (Alpha cs') e Source #

Change the opaque pixel value, while leaving alpha channel intact.

Since: 0.1.0

data family Color cs e :: Type Source #

A Color family with a color space and a precision of elements.

Instances

Instances details
ColorModel cs e => Vector Vector (Color cs e) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

basicUnsafeFreeze :: PrimMonad m => Mutable Vector (PrimState m) (Color cs e) -> m (Vector (Color cs e)) #

basicUnsafeThaw :: PrimMonad m => Vector (Color cs e) -> m (Mutable Vector (PrimState m) (Color cs e)) #

basicLength :: Vector (Color cs e) -> Int #

basicUnsafeSlice :: Int -> Int -> Vector (Color cs e) -> Vector (Color cs e) #

basicUnsafeIndexM :: Monad m => Vector (Color cs e) -> Int -> m (Color cs e) #

basicUnsafeCopy :: PrimMonad m => Mutable Vector (PrimState m) (Color cs e) -> Vector (Color cs e) -> m () #

elemseq :: Vector (Color cs e) -> Color cs e -> b -> b #

ColorModel cs e => MVector MVector (Color cs e) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

basicLength :: MVector s (Color cs e) -> Int #

basicUnsafeSlice :: Int -> Int -> MVector s (Color cs e) -> MVector s (Color cs e) #

basicOverlaps :: MVector s (Color cs e) -> MVector s (Color cs e) -> Bool #

basicUnsafeNew :: PrimMonad m => Int -> m (MVector (PrimState m) (Color cs e)) #

basicInitialize :: PrimMonad m => MVector (PrimState m) (Color cs e) -> m () #

basicUnsafeReplicate :: PrimMonad m => Int -> Color cs e -> m (MVector (PrimState m) (Color cs e)) #

basicUnsafeRead :: PrimMonad m => MVector (PrimState m) (Color cs e) -> Int -> m (Color cs e) #

basicUnsafeWrite :: PrimMonad m => MVector (PrimState m) (Color cs e) -> Int -> Color cs e -> m () #

basicClear :: PrimMonad m => MVector (PrimState m) (Color cs e) -> m () #

basicSet :: PrimMonad m => MVector (PrimState m) (Color cs e) -> Color cs e -> m () #

basicUnsafeCopy :: PrimMonad m => MVector (PrimState m) (Color cs e) -> MVector (PrimState m) (Color cs e) -> m () #

basicUnsafeMove :: PrimMonad m => MVector (PrimState m) (Color cs e) -> MVector (PrimState m) (Color cs e) -> m () #

basicUnsafeGrow :: PrimMonad m => MVector (PrimState m) (Color cs e) -> Int -> m (MVector (PrimState m) (Color cs e)) #

Functor (Color cs) => Functor (Color (Alpha cs)) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

fmap :: (a -> b) -> Color (Alpha cs) a -> Color (Alpha cs) b #

(<$) :: a -> Color (Alpha cs) b -> Color (Alpha cs) a #

Functor (Color LCH) Source #

LCH color model

Instance details

Defined in Graphics.Color.Model.LCH

Methods

fmap :: (a -> b) -> Color LCH a -> Color LCH b #

(<$) :: a -> Color LCH b -> Color LCH a #

Functor (Color RGB) Source #

RGB color model

Instance details

Defined in Graphics.Color.Model.RGB

Methods

fmap :: (a -> b) -> Color RGB a -> Color RGB b #

(<$) :: a -> Color RGB b -> Color RGB a #

Functor (Color HSV) Source #

HSV color model

Instance details

Defined in Graphics.Color.Model.HSV

Methods

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

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

Functor (Color HSL) Source #

HSL color model

Instance details

Defined in Graphics.Color.Model.HSL

Methods

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

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

Functor (Color HSI) Source #

HSI color model

Instance details

Defined in Graphics.Color.Model.HSI

Methods

fmap :: (a -> b) -> Color HSI a -> Color HSI b #

(<$) :: a -> Color HSI b -> Color HSI a #

Functor (Color CMYK) Source #

CMYK color model

Instance details

Defined in Graphics.Color.Model.CMYK

Methods

fmap :: (a -> b) -> Color CMYK a -> Color CMYK b #

(<$) :: a -> Color CMYK b -> Color CMYK a #

Functor (Color X) Source #

X color model

Instance details

Defined in Graphics.Color.Model.X

Methods

fmap :: (a -> b) -> Color X a -> Color X b #

(<$) :: a -> Color X b -> Color X a #

Functor (Color YCbCr) Source #

YCbCr color model

Instance details

Defined in Graphics.Color.Model.YCbCr

Methods

fmap :: (a -> b) -> Color YCbCr a -> Color YCbCr b #

(<$) :: a -> Color YCbCr b -> Color YCbCr a #

Functor (Color (Y i)) Source #

Y - relative luminance of a color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

fmap :: (a -> b) -> Color (Y i) a -> Color (Y i) b #

(<$) :: a -> Color (Y i) b -> Color (Y i) a #

Functor (Color (CIExyY i)) Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

fmap :: (a -> b) -> Color (CIExyY i) a -> Color (CIExyY i) b #

(<$) :: a -> Color (CIExyY i) b -> Color (CIExyY i) a #

Functor (Color (XYZ i)) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

fmap :: (a -> b) -> Color (XYZ i) a -> Color (XYZ i) b #

(<$) :: a -> Color (XYZ i) b -> Color (XYZ i) a #

Functor (Color (LUV i)) Source #

CIE1976 LUV color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV

Methods

fmap :: (a -> b) -> Color (LUV i) a -> Color (LUV i) b #

(<$) :: a -> Color (LUV i) b -> Color (LUV i) a #

Functor (Color (LCHuv i)) Source #

CIE1976 LCHuv color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV.LCH

Methods

fmap :: (a -> b) -> Color (LCHuv i) a -> Color (LCHuv i) b #

(<$) :: a -> Color (LCHuv i) b -> Color (LCHuv i) a #

Functor (Color (LAB i)) Source #

CIE1976 LAB color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB

Methods

fmap :: (a -> b) -> Color (LAB i) a -> Color (LAB i) b #

(<$) :: a -> Color (LAB i) b -> Color (LAB i) a #

Functor (Color (LCHab i)) Source #

CIE1976 LCHab color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB.LCH

Methods

fmap :: (a -> b) -> Color (LCHab i) a -> Color (LCHab i) b #

(<$) :: a -> Color (LCHab i) b -> Color (LCHab i) a #

Functor (Color (BT470_625 l)) Source #

ITU-R BT.470 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Methods

fmap :: (a -> b) -> Color (BT470_625 l) a -> Color (BT470_625 l) b #

(<$) :: a -> Color (BT470_625 l) b -> Color (BT470_625 l) a #

Functor (Color (BT470_525 l)) Source #

ITU-R BT.470 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Methods

fmap :: (a -> b) -> Color (BT470_525 l) a -> Color (BT470_525 l) b #

(<$) :: a -> Color (BT470_525 l) b -> Color (BT470_525 l) a #

Functor (Color (HSV cs)) Source #

HSV representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSV

Methods

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

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

Functor (Color (HSL cs)) Source #

HSL representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSL

Methods

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

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

Functor (Color (HSI cs)) Source #

HSI representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSI

Methods

fmap :: (a -> b) -> Color (HSI cs) a -> Color (HSI cs) b #

(<$) :: a -> Color (HSI cs) b -> Color (HSI cs) a #

Functor (Color (CIERGB l)) Source #

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Methods

fmap :: (a -> b) -> Color (CIERGB l) a -> Color (CIERGB l) b #

(<$) :: a -> Color (CIERGB l) b -> Color (CIERGB l) a #

Functor (Color (CIERGB i l)) Source #

CIERGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.CIERGB

Methods

fmap :: (a -> b) -> Color (CIERGB i l) a -> Color (CIERGB i l) b #

(<$) :: a -> Color (CIERGB i l) b -> Color (CIERGB i l) a #

Functor (Color (Y' cs)) Source #

Y` - luma of a color space

Instance details

Defined in Graphics.Color.Space.RGB.Luma

Methods

fmap :: (a -> b) -> Color (Y' cs) a -> Color (Y' cs) b #

(<$) :: a -> Color (Y' cs) b -> Color (Y' cs) a #

Functor (Color (BT601_625 l)) Source #

ITU-R BT.601 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Methods

fmap :: (a -> b) -> Color (BT601_625 l) a -> Color (BT601_625 l) b #

(<$) :: a -> Color (BT601_625 l) b -> Color (BT601_625 l) a #

Functor (Color (BT601_525 l)) Source #

ITU-R BT.601 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Methods

fmap :: (a -> b) -> Color (BT601_525 l) a -> Color (BT601_525 l) b #

(<$) :: a -> Color (BT601_525 l) b -> Color (BT601_525 l) a #

Functor (Color (BT709 l)) Source #

ITU-R BT.709 color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec709

Methods

fmap :: (a -> b) -> Color (BT709 l) a -> Color (BT709 l) b #

(<$) :: a -> Color (BT709 l) b -> Color (BT709 l) a #

Functor (Color (AdobeRGB l)) Source #

AdobeRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.AdobeRGB

Methods

fmap :: (a -> b) -> Color (AdobeRGB l) a -> Color (AdobeRGB l) b #

(<$) :: a -> Color (AdobeRGB l) b -> Color (AdobeRGB l) a #

Functor (Color (AdobeRGB i l)) Source #

AdobeRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.AdobeRGB

Methods

fmap :: (a -> b) -> Color (AdobeRGB i l) a -> Color (AdobeRGB i l) b #

(<$) :: a -> Color (AdobeRGB i l) b -> Color (AdobeRGB i l) a #

Functor (Color (SRGB l)) Source #

SRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.SRGB

Methods

fmap :: (a -> b) -> Color (SRGB l) a -> Color (SRGB l) b #

(<$) :: a -> Color (SRGB l) b -> Color (SRGB l) a #

Functor (Color (SRGB i l)) Source #

SRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.SRGB

Methods

fmap :: (a -> b) -> Color (SRGB i l) a -> Color (SRGB i l) b #

(<$) :: a -> Color (SRGB i l) b -> Color (SRGB i l) a #

Functor (Color (Y'CbCr cs)) Source # 
Instance details

Defined in Graphics.Color.Space.RGB.Alternative.YCbCr

Methods

fmap :: (a -> b) -> Color (Y'CbCr cs) a -> Color (Y'CbCr cs) b #

(<$) :: a -> Color (Y'CbCr cs) b -> Color (Y'CbCr cs) a #

Functor (Color (CMYK cs)) Source #

CMYK representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.CMYK

Methods

fmap :: (a -> b) -> Color (CMYK cs) a -> Color (CMYK cs) b #

(<$) :: a -> Color (CMYK cs) b -> Color (CMYK cs) a #

Applicative (Color cs) => Applicative (Color (Alpha cs)) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

pure :: a -> Color (Alpha cs) a #

(<*>) :: Color (Alpha cs) (a -> b) -> Color (Alpha cs) a -> Color (Alpha cs) b #

liftA2 :: (a -> b -> c) -> Color (Alpha cs) a -> Color (Alpha cs) b -> Color (Alpha cs) c #

(*>) :: Color (Alpha cs) a -> Color (Alpha cs) b -> Color (Alpha cs) b #

(<*) :: Color (Alpha cs) a -> Color (Alpha cs) b -> Color (Alpha cs) a #

Applicative (Color LCH) Source #

LCH color model

Instance details

Defined in Graphics.Color.Model.LCH

Methods

pure :: a -> Color LCH a #

(<*>) :: Color LCH (a -> b) -> Color LCH a -> Color LCH b #

liftA2 :: (a -> b -> c) -> Color LCH a -> Color LCH b -> Color LCH c #

(*>) :: Color LCH a -> Color LCH b -> Color LCH b #

(<*) :: Color LCH a -> Color LCH b -> Color LCH a #

Applicative (Color RGB) Source #

RGB color model

Instance details

Defined in Graphics.Color.Model.RGB

Methods

pure :: a -> Color RGB a #

(<*>) :: Color RGB (a -> b) -> Color RGB a -> Color RGB b #

liftA2 :: (a -> b -> c) -> Color RGB a -> Color RGB b -> Color RGB c #

(*>) :: Color RGB a -> Color RGB b -> Color RGB b #

(<*) :: Color RGB a -> Color RGB b -> Color RGB a #

Applicative (Color HSV) Source #

HSV color model

Instance details

Defined in Graphics.Color.Model.HSV

Methods

pure :: a -> Color HSV a #

(<*>) :: Color HSV (a -> b) -> Color HSV a -> Color HSV b #

liftA2 :: (a -> b -> c) -> Color HSV a -> Color HSV b -> Color HSV c #

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

(<*) :: Color HSV a -> Color HSV b -> Color HSV a #

Applicative (Color HSL) Source #

HSL color model

Instance details

Defined in Graphics.Color.Model.HSL

Methods

pure :: a -> Color HSL a #

(<*>) :: Color HSL (a -> b) -> Color HSL a -> Color HSL b #

liftA2 :: (a -> b -> c) -> Color HSL a -> Color HSL b -> Color HSL c #

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

(<*) :: Color HSL a -> Color HSL b -> Color HSL a #

Applicative (Color HSI) Source #

HSI color model

Instance details

Defined in Graphics.Color.Model.HSI

Methods

pure :: a -> Color HSI a #

(<*>) :: Color HSI (a -> b) -> Color HSI a -> Color HSI b #

liftA2 :: (a -> b -> c) -> Color HSI a -> Color HSI b -> Color HSI c #

(*>) :: Color HSI a -> Color HSI b -> Color HSI b #

(<*) :: Color HSI a -> Color HSI b -> Color HSI a #

Applicative (Color CMYK) Source #

CMYK color model

Instance details

Defined in Graphics.Color.Model.CMYK

Methods

pure :: a -> Color CMYK a #

(<*>) :: Color CMYK (a -> b) -> Color CMYK a -> Color CMYK b #

liftA2 :: (a -> b -> c) -> Color CMYK a -> Color CMYK b -> Color CMYK c #

(*>) :: Color CMYK a -> Color CMYK b -> Color CMYK b #

(<*) :: Color CMYK a -> Color CMYK b -> Color CMYK a #

Applicative (Color X) Source #

X color model

Instance details

Defined in Graphics.Color.Model.X

Methods

pure :: a -> Color X a #

(<*>) :: Color X (a -> b) -> Color X a -> Color X b #

liftA2 :: (a -> b -> c) -> Color X a -> Color X b -> Color X c #

(*>) :: Color X a -> Color X b -> Color X b #

(<*) :: Color X a -> Color X b -> Color X a #

Applicative (Color YCbCr) Source #

YCbCr color model

Instance details

Defined in Graphics.Color.Model.YCbCr

Methods

pure :: a -> Color YCbCr a #

(<*>) :: Color YCbCr (a -> b) -> Color YCbCr a -> Color YCbCr b #

liftA2 :: (a -> b -> c) -> Color YCbCr a -> Color YCbCr b -> Color YCbCr c #

(*>) :: Color YCbCr a -> Color YCbCr b -> Color YCbCr b #

(<*) :: Color YCbCr a -> Color YCbCr b -> Color YCbCr a #

Applicative (Color (Y i)) Source #

Y - relative luminance of a color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

pure :: a -> Color (Y i) a #

(<*>) :: Color (Y i) (a -> b) -> Color (Y i) a -> Color (Y i) b #

liftA2 :: (a -> b -> c) -> Color (Y i) a -> Color (Y i) b -> Color (Y i) c #

(*>) :: Color (Y i) a -> Color (Y i) b -> Color (Y i) b #

(<*) :: Color (Y i) a -> Color (Y i) b -> Color (Y i) a #

Applicative (Color (CIExyY i)) Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

pure :: a -> Color (CIExyY i) a #

(<*>) :: Color (CIExyY i) (a -> b) -> Color (CIExyY i) a -> Color (CIExyY i) b #

liftA2 :: (a -> b -> c) -> Color (CIExyY i) a -> Color (CIExyY i) b -> Color (CIExyY i) c #

(*>) :: Color (CIExyY i) a -> Color (CIExyY i) b -> Color (CIExyY i) b #

(<*) :: Color (CIExyY i) a -> Color (CIExyY i) b -> Color (CIExyY i) a #

Applicative (Color (XYZ i)) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

pure :: a -> Color (XYZ i) a #

(<*>) :: Color (XYZ i) (a -> b) -> Color (XYZ i) a -> Color (XYZ i) b #

liftA2 :: (a -> b -> c) -> Color (XYZ i) a -> Color (XYZ i) b -> Color (XYZ i) c #

(*>) :: Color (XYZ i) a -> Color (XYZ i) b -> Color (XYZ i) b #

(<*) :: Color (XYZ i) a -> Color (XYZ i) b -> Color (XYZ i) a #

Applicative (Color (LUV i)) Source #

CIE1976 LUV color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV

Methods

pure :: a -> Color (LUV i) a #

(<*>) :: Color (LUV i) (a -> b) -> Color (LUV i) a -> Color (LUV i) b #

liftA2 :: (a -> b -> c) -> Color (LUV i) a -> Color (LUV i) b -> Color (LUV i) c #

(*>) :: Color (LUV i) a -> Color (LUV i) b -> Color (LUV i) b #

(<*) :: Color (LUV i) a -> Color (LUV i) b -> Color (LUV i) a #

Applicative (Color (LCHuv i)) Source #

CIE1976 LCHuv color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV.LCH

Methods

pure :: a -> Color (LCHuv i) a #

(<*>) :: Color (LCHuv i) (a -> b) -> Color (LCHuv i) a -> Color (LCHuv i) b #

liftA2 :: (a -> b -> c) -> Color (LCHuv i) a -> Color (LCHuv i) b -> Color (LCHuv i) c #

(*>) :: Color (LCHuv i) a -> Color (LCHuv i) b -> Color (LCHuv i) b #

(<*) :: Color (LCHuv i) a -> Color (LCHuv i) b -> Color (LCHuv i) a #

Applicative (Color (LAB i)) Source #

CIE1976 LAB color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB

Methods

pure :: a -> Color (LAB i) a #

(<*>) :: Color (LAB i) (a -> b) -> Color (LAB i) a -> Color (LAB i) b #

liftA2 :: (a -> b -> c) -> Color (LAB i) a -> Color (LAB i) b -> Color (LAB i) c #

(*>) :: Color (LAB i) a -> Color (LAB i) b -> Color (LAB i) b #

(<*) :: Color (LAB i) a -> Color (LAB i) b -> Color (LAB i) a #

Applicative (Color (LCHab i)) Source #

CIE1976 LCHab color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB.LCH

Methods

pure :: a -> Color (LCHab i) a #

(<*>) :: Color (LCHab i) (a -> b) -> Color (LCHab i) a -> Color (LCHab i) b #

liftA2 :: (a -> b -> c) -> Color (LCHab i) a -> Color (LCHab i) b -> Color (LCHab i) c #

(*>) :: Color (LCHab i) a -> Color (LCHab i) b -> Color (LCHab i) b #

(<*) :: Color (LCHab i) a -> Color (LCHab i) b -> Color (LCHab i) a #

Applicative (Color (BT470_625 l)) Source #

ITU-R BT.470 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Methods

pure :: a -> Color (BT470_625 l) a #

(<*>) :: Color (BT470_625 l) (a -> b) -> Color (BT470_625 l) a -> Color (BT470_625 l) b #

liftA2 :: (a -> b -> c) -> Color (BT470_625 l) a -> Color (BT470_625 l) b -> Color (BT470_625 l) c #

(*>) :: Color (BT470_625 l) a -> Color (BT470_625 l) b -> Color (BT470_625 l) b #

(<*) :: Color (BT470_625 l) a -> Color (BT470_625 l) b -> Color (BT470_625 l) a #

Applicative (Color (BT470_525 l)) Source #

ITU-R BT.470 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Methods

pure :: a -> Color (BT470_525 l) a #

(<*>) :: Color (BT470_525 l) (a -> b) -> Color (BT470_525 l) a -> Color (BT470_525 l) b #

liftA2 :: (a -> b -> c) -> Color (BT470_525 l) a -> Color (BT470_525 l) b -> Color (BT470_525 l) c #

(*>) :: Color (BT470_525 l) a -> Color (BT470_525 l) b -> Color (BT470_525 l) b #

(<*) :: Color (BT470_525 l) a -> Color (BT470_525 l) b -> Color (BT470_525 l) a #

Applicative (Color (HSV cs)) Source #

HSV representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSV

Methods

pure :: a -> Color (HSV cs) a #

(<*>) :: Color (HSV cs) (a -> b) -> Color (HSV cs) a -> Color (HSV cs) b #

liftA2 :: (a -> b -> c) -> Color (HSV cs) a -> Color (HSV cs) b -> Color (HSV cs) c #

(*>) :: Color (HSV cs) a -> Color (HSV cs) b -> Color (HSV cs) b #

(<*) :: Color (HSV cs) a -> Color (HSV cs) b -> Color (HSV cs) a #

Applicative (Color (HSL cs)) Source #

HSL representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSL

Methods

pure :: a -> Color (HSL cs) a #

(<*>) :: Color (HSL cs) (a -> b) -> Color (HSL cs) a -> Color (HSL cs) b #

liftA2 :: (a -> b -> c) -> Color (HSL cs) a -> Color (HSL cs) b -> Color (HSL cs) c #

(*>) :: Color (HSL cs) a -> Color (HSL cs) b -> Color (HSL cs) b #

(<*) :: Color (HSL cs) a -> Color (HSL cs) b -> Color (HSL cs) a #

Applicative (Color (HSI cs)) Source #

HSI representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSI

Methods

pure :: a -> Color (HSI cs) a #

(<*>) :: Color (HSI cs) (a -> b) -> Color (HSI cs) a -> Color (HSI cs) b #

liftA2 :: (a -> b -> c) -> Color (HSI cs) a -> Color (HSI cs) b -> Color (HSI cs) c #

(*>) :: Color (HSI cs) a -> Color (HSI cs) b -> Color (HSI cs) b #

(<*) :: Color (HSI cs) a -> Color (HSI cs) b -> Color (HSI cs) a #

Applicative (Color (CIERGB l)) Source #

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Methods

pure :: a -> Color (CIERGB l) a #

(<*>) :: Color (CIERGB l) (a -> b) -> Color (CIERGB l) a -> Color (CIERGB l) b #

liftA2 :: (a -> b -> c) -> Color (CIERGB l) a -> Color (CIERGB l) b -> Color (CIERGB l) c #

(*>) :: Color (CIERGB l) a -> Color (CIERGB l) b -> Color (CIERGB l) b #

(<*) :: Color (CIERGB l) a -> Color (CIERGB l) b -> Color (CIERGB l) a #

Applicative (Color (CIERGB i l)) Source #

CIERGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.CIERGB

Methods

pure :: a -> Color (CIERGB i l) a #

(<*>) :: Color (CIERGB i l) (a -> b) -> Color (CIERGB i l) a -> Color (CIERGB i l) b #

liftA2 :: (a -> b -> c) -> Color (CIERGB i l) a -> Color (CIERGB i l) b -> Color (CIERGB i l) c #

(*>) :: Color (CIERGB i l) a -> Color (CIERGB i l) b -> Color (CIERGB i l) b #

(<*) :: Color (CIERGB i l) a -> Color (CIERGB i l) b -> Color (CIERGB i l) a #

Applicative (Color (Y' cs)) Source #

Y` - luma of a color space

Instance details

Defined in Graphics.Color.Space.RGB.Luma

Methods

pure :: a -> Color (Y' cs) a #

(<*>) :: Color (Y' cs) (a -> b) -> Color (Y' cs) a -> Color (Y' cs) b #

liftA2 :: (a -> b -> c) -> Color (Y' cs) a -> Color (Y' cs) b -> Color (Y' cs) c #

(*>) :: Color (Y' cs) a -> Color (Y' cs) b -> Color (Y' cs) b #

(<*) :: Color (Y' cs) a -> Color (Y' cs) b -> Color (Y' cs) a #

Applicative (Color (BT601_625 l)) Source #

ITU-R BT.601 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Methods

pure :: a -> Color (BT601_625 l) a #

(<*>) :: Color (BT601_625 l) (a -> b) -> Color (BT601_625 l) a -> Color (BT601_625 l) b #

liftA2 :: (a -> b -> c) -> Color (BT601_625 l) a -> Color (BT601_625 l) b -> Color (BT601_625 l) c #

(*>) :: Color (BT601_625 l) a -> Color (BT601_625 l) b -> Color (BT601_625 l) b #

(<*) :: Color (BT601_625 l) a -> Color (BT601_625 l) b -> Color (BT601_625 l) a #

Applicative (Color (BT601_525 l)) Source #

ITU-R BT.601 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Methods

pure :: a -> Color (BT601_525 l) a #

(<*>) :: Color (BT601_525 l) (a -> b) -> Color (BT601_525 l) a -> Color (BT601_525 l) b #

liftA2 :: (a -> b -> c) -> Color (BT601_525 l) a -> Color (BT601_525 l) b -> Color (BT601_525 l) c #

(*>) :: Color (BT601_525 l) a -> Color (BT601_525 l) b -> Color (BT601_525 l) b #

(<*) :: Color (BT601_525 l) a -> Color (BT601_525 l) b -> Color (BT601_525 l) a #

Applicative (Color (BT709 l)) Source #

ITU-R BT.709 color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec709

Methods

pure :: a -> Color (BT709 l) a #

(<*>) :: Color (BT709 l) (a -> b) -> Color (BT709 l) a -> Color (BT709 l) b #

liftA2 :: (a -> b -> c) -> Color (BT709 l) a -> Color (BT709 l) b -> Color (BT709 l) c #

(*>) :: Color (BT709 l) a -> Color (BT709 l) b -> Color (BT709 l) b #

(<*) :: Color (BT709 l) a -> Color (BT709 l) b -> Color (BT709 l) a #

Applicative (Color (AdobeRGB l)) Source #

AdobeRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.AdobeRGB

Methods

pure :: a -> Color (AdobeRGB l) a #

(<*>) :: Color (AdobeRGB l) (a -> b) -> Color (AdobeRGB l) a -> Color (AdobeRGB l) b #

liftA2 :: (a -> b -> c) -> Color (AdobeRGB l) a -> Color (AdobeRGB l) b -> Color (AdobeRGB l) c #

(*>) :: Color (AdobeRGB l) a -> Color (AdobeRGB l) b -> Color (AdobeRGB l) b #

(<*) :: Color (AdobeRGB l) a -> Color (AdobeRGB l) b -> Color (AdobeRGB l) a #

Applicative (Color (AdobeRGB i l)) Source #

AdobeRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.AdobeRGB

Methods

pure :: a -> Color (AdobeRGB i l) a #

(<*>) :: Color (AdobeRGB i l) (a -> b) -> Color (AdobeRGB i l) a -> Color (AdobeRGB i l) b #

liftA2 :: (a -> b -> c) -> Color (AdobeRGB i l) a -> Color (AdobeRGB i l) b -> Color (AdobeRGB i l) c #

(*>) :: Color (AdobeRGB i l) a -> Color (AdobeRGB i l) b -> Color (AdobeRGB i l) b #

(<*) :: Color (AdobeRGB i l) a -> Color (AdobeRGB i l) b -> Color (AdobeRGB i l) a #

Applicative (Color (SRGB l)) Source #

SRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.SRGB

Methods

pure :: a -> Color (SRGB l) a #

(<*>) :: Color (SRGB l) (a -> b) -> Color (SRGB l) a -> Color (SRGB l) b #

liftA2 :: (a -> b -> c) -> Color (SRGB l) a -> Color (SRGB l) b -> Color (SRGB l) c #

(*>) :: Color (SRGB l) a -> Color (SRGB l) b -> Color (SRGB l) b #

(<*) :: Color (SRGB l) a -> Color (SRGB l) b -> Color (SRGB l) a #

Applicative (Color (SRGB i l)) Source #

SRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.SRGB

Methods

pure :: a -> Color (SRGB i l) a #

(<*>) :: Color (SRGB i l) (a -> b) -> Color (SRGB i l) a -> Color (SRGB i l) b #

liftA2 :: (a -> b -> c) -> Color (SRGB i l) a -> Color (SRGB i l) b -> Color (SRGB i l) c #

(*>) :: Color (SRGB i l) a -> Color (SRGB i l) b -> Color (SRGB i l) b #

(<*) :: Color (SRGB i l) a -> Color (SRGB i l) b -> Color (SRGB i l) a #

Applicative (Color (Y'CbCr cs)) Source # 
Instance details

Defined in Graphics.Color.Space.RGB.Alternative.YCbCr

Methods

pure :: a -> Color (Y'CbCr cs) a #

(<*>) :: Color (Y'CbCr cs) (a -> b) -> Color (Y'CbCr cs) a -> Color (Y'CbCr cs) b #

liftA2 :: (a -> b -> c) -> Color (Y'CbCr cs) a -> Color (Y'CbCr cs) b -> Color (Y'CbCr cs) c #

(*>) :: Color (Y'CbCr cs) a -> Color (Y'CbCr cs) b -> Color (Y'CbCr cs) b #

(<*) :: Color (Y'CbCr cs) a -> Color (Y'CbCr cs) b -> Color (Y'CbCr cs) a #

Applicative (Color (CMYK cs)) Source #

CMYK representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.CMYK

Methods

pure :: a -> Color (CMYK cs) a #

(<*>) :: Color (CMYK cs) (a -> b) -> Color (CMYK cs) a -> Color (CMYK cs) b #

liftA2 :: (a -> b -> c) -> Color (CMYK cs) a -> Color (CMYK cs) b -> Color (CMYK cs) c #

(*>) :: Color (CMYK cs) a -> Color (CMYK cs) b -> Color (CMYK cs) b #

(<*) :: Color (CMYK cs) a -> Color (CMYK cs) b -> Color (CMYK cs) a #

Foldable (Color cs) => Foldable (Color (Alpha cs)) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

fold :: Monoid m => Color (Alpha cs) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (Alpha cs) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (Alpha cs) a -> m #

foldr :: (a -> b -> b) -> b -> Color (Alpha cs) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (Alpha cs) a -> b #

foldl :: (b -> a -> b) -> b -> Color (Alpha cs) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (Alpha cs) a -> b #

foldr1 :: (a -> a -> a) -> Color (Alpha cs) a -> a #

foldl1 :: (a -> a -> a) -> Color (Alpha cs) a -> a #

toList :: Color (Alpha cs) a -> [a] #

null :: Color (Alpha cs) a -> Bool #

length :: Color (Alpha cs) a -> Int #

elem :: Eq a => a -> Color (Alpha cs) a -> Bool #

maximum :: Ord a => Color (Alpha cs) a -> a #

minimum :: Ord a => Color (Alpha cs) a -> a #

sum :: Num a => Color (Alpha cs) a -> a #

product :: Num a => Color (Alpha cs) a -> a #

Foldable (Color LCH) Source #

LCH color model

Instance details

Defined in Graphics.Color.Model.LCH

Methods

fold :: Monoid m => Color LCH m -> m #

foldMap :: Monoid m => (a -> m) -> Color LCH a -> m #

foldMap' :: Monoid m => (a -> m) -> Color LCH a -> m #

foldr :: (a -> b -> b) -> b -> Color LCH a -> b #

foldr' :: (a -> b -> b) -> b -> Color LCH a -> b #

foldl :: (b -> a -> b) -> b -> Color LCH a -> b #

foldl' :: (b -> a -> b) -> b -> Color LCH a -> b #

foldr1 :: (a -> a -> a) -> Color LCH a -> a #

foldl1 :: (a -> a -> a) -> Color LCH a -> a #

toList :: Color LCH a -> [a] #

null :: Color LCH a -> Bool #

length :: Color LCH a -> Int #

elem :: Eq a => a -> Color LCH a -> Bool #

maximum :: Ord a => Color LCH a -> a #

minimum :: Ord a => Color LCH a -> a #

sum :: Num a => Color LCH a -> a #

product :: Num a => Color LCH a -> a #

Foldable (Color RGB) Source #

RGB color model

Instance details

Defined in Graphics.Color.Model.RGB

Methods

fold :: Monoid m => Color RGB m -> m #

foldMap :: Monoid m => (a -> m) -> Color RGB a -> m #

foldMap' :: Monoid m => (a -> m) -> Color RGB a -> m #

foldr :: (a -> b -> b) -> b -> Color RGB a -> b #

foldr' :: (a -> b -> b) -> b -> Color RGB a -> b #

foldl :: (b -> a -> b) -> b -> Color RGB a -> b #

foldl' :: (b -> a -> b) -> b -> Color RGB a -> b #

foldr1 :: (a -> a -> a) -> Color RGB a -> a #

foldl1 :: (a -> a -> a) -> Color RGB a -> a #

toList :: Color RGB a -> [a] #

null :: Color RGB a -> Bool #

length :: Color RGB a -> Int #

elem :: Eq a => a -> Color RGB a -> Bool #

maximum :: Ord a => Color RGB a -> a #

minimum :: Ord a => Color RGB a -> a #

sum :: Num a => Color RGB a -> a #

product :: Num a => Color RGB a -> a #

Foldable (Color HSV) Source #

HSV color model

Instance details

Defined in Graphics.Color.Model.HSV

Methods

fold :: Monoid m => Color HSV m -> m #

foldMap :: Monoid m => (a -> m) -> Color HSV a -> m #

foldMap' :: Monoid m => (a -> m) -> Color HSV a -> m #

foldr :: (a -> b -> b) -> b -> Color HSV a -> b #

foldr' :: (a -> b -> b) -> b -> Color HSV a -> b #

foldl :: (b -> a -> b) -> b -> Color HSV a -> b #

foldl' :: (b -> a -> b) -> b -> Color HSV a -> b #

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

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

toList :: Color HSV a -> [a] #

null :: Color HSV a -> Bool #

length :: Color HSV a -> Int #

elem :: Eq a => a -> Color HSV a -> Bool #

maximum :: Ord a => Color HSV a -> a #

minimum :: Ord a => Color HSV a -> a #

sum :: Num a => Color HSV a -> a #

product :: Num a => Color HSV a -> a #

Foldable (Color HSL) Source #

HSL color model

Instance details

Defined in Graphics.Color.Model.HSL

Methods

fold :: Monoid m => Color HSL m -> m #

foldMap :: Monoid m => (a -> m) -> Color HSL a -> m #

foldMap' :: Monoid m => (a -> m) -> Color HSL a -> m #

foldr :: (a -> b -> b) -> b -> Color HSL a -> b #

foldr' :: (a -> b -> b) -> b -> Color HSL a -> b #

foldl :: (b -> a -> b) -> b -> Color HSL a -> b #

foldl' :: (b -> a -> b) -> b -> Color HSL a -> b #

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

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

toList :: Color HSL a -> [a] #

null :: Color HSL a -> Bool #

length :: Color HSL a -> Int #

elem :: Eq a => a -> Color HSL a -> Bool #

maximum :: Ord a => Color HSL a -> a #

minimum :: Ord a => Color HSL a -> a #

sum :: Num a => Color HSL a -> a #

product :: Num a => Color HSL a -> a #

Foldable (Color HSI) Source #

HSI color model

Instance details

Defined in Graphics.Color.Model.HSI

Methods

fold :: Monoid m => Color HSI m -> m #

foldMap :: Monoid m => (a -> m) -> Color HSI a -> m #

foldMap' :: Monoid m => (a -> m) -> Color HSI a -> m #

foldr :: (a -> b -> b) -> b -> Color HSI a -> b #

foldr' :: (a -> b -> b) -> b -> Color HSI a -> b #

foldl :: (b -> a -> b) -> b -> Color HSI a -> b #

foldl' :: (b -> a -> b) -> b -> Color HSI a -> b #

foldr1 :: (a -> a -> a) -> Color HSI a -> a #

foldl1 :: (a -> a -> a) -> Color HSI a -> a #

toList :: Color HSI a -> [a] #

null :: Color HSI a -> Bool #

length :: Color HSI a -> Int #

elem :: Eq a => a -> Color HSI a -> Bool #

maximum :: Ord a => Color HSI a -> a #

minimum :: Ord a => Color HSI a -> a #

sum :: Num a => Color HSI a -> a #

product :: Num a => Color HSI a -> a #

Foldable (Color CMYK) Source #

CMYK color model

Instance details

Defined in Graphics.Color.Model.CMYK

Methods

fold :: Monoid m => Color CMYK m -> m #

foldMap :: Monoid m => (a -> m) -> Color CMYK a -> m #

foldMap' :: Monoid m => (a -> m) -> Color CMYK a -> m #

foldr :: (a -> b -> b) -> b -> Color CMYK a -> b #

foldr' :: (a -> b -> b) -> b -> Color CMYK a -> b #

foldl :: (b -> a -> b) -> b -> Color CMYK a -> b #

foldl' :: (b -> a -> b) -> b -> Color CMYK a -> b #

foldr1 :: (a -> a -> a) -> Color CMYK a -> a #

foldl1 :: (a -> a -> a) -> Color CMYK a -> a #

toList :: Color CMYK a -> [a] #

null :: Color CMYK a -> Bool #

length :: Color CMYK a -> Int #

elem :: Eq a => a -> Color CMYK a -> Bool #

maximum :: Ord a => Color CMYK a -> a #

minimum :: Ord a => Color CMYK a -> a #

sum :: Num a => Color CMYK a -> a #

product :: Num a => Color CMYK a -> a #

Foldable (Color X) Source #

X color model

Instance details

Defined in Graphics.Color.Model.X

Methods

fold :: Monoid m => Color X m -> m #

foldMap :: Monoid m => (a -> m) -> Color X a -> m #

foldMap' :: Monoid m => (a -> m) -> Color X a -> m #

foldr :: (a -> b -> b) -> b -> Color X a -> b #

foldr' :: (a -> b -> b) -> b -> Color X a -> b #

foldl :: (b -> a -> b) -> b -> Color X a -> b #

foldl' :: (b -> a -> b) -> b -> Color X a -> b #

foldr1 :: (a -> a -> a) -> Color X a -> a #

foldl1 :: (a -> a -> a) -> Color X a -> a #

toList :: Color X a -> [a] #

null :: Color X a -> Bool #

length :: Color X a -> Int #

elem :: Eq a => a -> Color X a -> Bool #

maximum :: Ord a => Color X a -> a #

minimum :: Ord a => Color X a -> a #

sum :: Num a => Color X a -> a #

product :: Num a => Color X a -> a #

Foldable (Color YCbCr) Source #

YCbCr color model

Instance details

Defined in Graphics.Color.Model.YCbCr

Methods

fold :: Monoid m => Color YCbCr m -> m #

foldMap :: Monoid m => (a -> m) -> Color YCbCr a -> m #

foldMap' :: Monoid m => (a -> m) -> Color YCbCr a -> m #

foldr :: (a -> b -> b) -> b -> Color YCbCr a -> b #

foldr' :: (a -> b -> b) -> b -> Color YCbCr a -> b #

foldl :: (b -> a -> b) -> b -> Color YCbCr a -> b #

foldl' :: (b -> a -> b) -> b -> Color YCbCr a -> b #

foldr1 :: (a -> a -> a) -> Color YCbCr a -> a #

foldl1 :: (a -> a -> a) -> Color YCbCr a -> a #

toList :: Color YCbCr a -> [a] #

null :: Color YCbCr a -> Bool #

length :: Color YCbCr a -> Int #

elem :: Eq a => a -> Color YCbCr a -> Bool #

maximum :: Ord a => Color YCbCr a -> a #

minimum :: Ord a => Color YCbCr a -> a #

sum :: Num a => Color YCbCr a -> a #

product :: Num a => Color YCbCr a -> a #

Foldable (Color (Y i)) Source #

Y - relative luminance of a color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

fold :: Monoid m => Color (Y i) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (Y i) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (Y i) a -> m #

foldr :: (a -> b -> b) -> b -> Color (Y i) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (Y i) a -> b #

foldl :: (b -> a -> b) -> b -> Color (Y i) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (Y i) a -> b #

foldr1 :: (a -> a -> a) -> Color (Y i) a -> a #

foldl1 :: (a -> a -> a) -> Color (Y i) a -> a #

toList :: Color (Y i) a -> [a] #

null :: Color (Y i) a -> Bool #

length :: Color (Y i) a -> Int #

elem :: Eq a => a -> Color (Y i) a -> Bool #

maximum :: Ord a => Color (Y i) a -> a #

minimum :: Ord a => Color (Y i) a -> a #

sum :: Num a => Color (Y i) a -> a #

product :: Num a => Color (Y i) a -> a #

Foldable (Color (CIExyY i)) Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

fold :: Monoid m => Color (CIExyY i) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (CIExyY i) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (CIExyY i) a -> m #

foldr :: (a -> b -> b) -> b -> Color (CIExyY i) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (CIExyY i) a -> b #

foldl :: (b -> a -> b) -> b -> Color (CIExyY i) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (CIExyY i) a -> b #

foldr1 :: (a -> a -> a) -> Color (CIExyY i) a -> a #

foldl1 :: (a -> a -> a) -> Color (CIExyY i) a -> a #

toList :: Color (CIExyY i) a -> [a] #

null :: Color (CIExyY i) a -> Bool #

length :: Color (CIExyY i) a -> Int #

elem :: Eq a => a -> Color (CIExyY i) a -> Bool #

maximum :: Ord a => Color (CIExyY i) a -> a #

minimum :: Ord a => Color (CIExyY i) a -> a #

sum :: Num a => Color (CIExyY i) a -> a #

product :: Num a => Color (CIExyY i) a -> a #

Foldable (Color (XYZ i)) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

fold :: Monoid m => Color (XYZ i) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (XYZ i) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (XYZ i) a -> m #

foldr :: (a -> b -> b) -> b -> Color (XYZ i) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (XYZ i) a -> b #

foldl :: (b -> a -> b) -> b -> Color (XYZ i) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (XYZ i) a -> b #

foldr1 :: (a -> a -> a) -> Color (XYZ i) a -> a #

foldl1 :: (a -> a -> a) -> Color (XYZ i) a -> a #

toList :: Color (XYZ i) a -> [a] #

null :: Color (XYZ i) a -> Bool #

length :: Color (XYZ i) a -> Int #

elem :: Eq a => a -> Color (XYZ i) a -> Bool #

maximum :: Ord a => Color (XYZ i) a -> a #

minimum :: Ord a => Color (XYZ i) a -> a #

sum :: Num a => Color (XYZ i) a -> a #

product :: Num a => Color (XYZ i) a -> a #

Foldable (Color (LUV i)) Source #

CIE1976 LUV color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV

Methods

fold :: Monoid m => Color (LUV i) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (LUV i) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (LUV i) a -> m #

foldr :: (a -> b -> b) -> b -> Color (LUV i) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (LUV i) a -> b #

foldl :: (b -> a -> b) -> b -> Color (LUV i) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (LUV i) a -> b #

foldr1 :: (a -> a -> a) -> Color (LUV i) a -> a #

foldl1 :: (a -> a -> a) -> Color (LUV i) a -> a #

toList :: Color (LUV i) a -> [a] #

null :: Color (LUV i) a -> Bool #

length :: Color (LUV i) a -> Int #

elem :: Eq a => a -> Color (LUV i) a -> Bool #

maximum :: Ord a => Color (LUV i) a -> a #

minimum :: Ord a => Color (LUV i) a -> a #

sum :: Num a => Color (LUV i) a -> a #

product :: Num a => Color (LUV i) a -> a #

Foldable (Color (LCHuv i)) Source #

CIE1976 LCHuv color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV.LCH

Methods

fold :: Monoid m => Color (LCHuv i) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (LCHuv i) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (LCHuv i) a -> m #

foldr :: (a -> b -> b) -> b -> Color (LCHuv i) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (LCHuv i) a -> b #

foldl :: (b -> a -> b) -> b -> Color (LCHuv i) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (LCHuv i) a -> b #

foldr1 :: (a -> a -> a) -> Color (LCHuv i) a -> a #

foldl1 :: (a -> a -> a) -> Color (LCHuv i) a -> a #

toList :: Color (LCHuv i) a -> [a] #

null :: Color (LCHuv i) a -> Bool #

length :: Color (LCHuv i) a -> Int #

elem :: Eq a => a -> Color (LCHuv i) a -> Bool #

maximum :: Ord a => Color (LCHuv i) a -> a #

minimum :: Ord a => Color (LCHuv i) a -> a #

sum :: Num a => Color (LCHuv i) a -> a #

product :: Num a => Color (LCHuv i) a -> a #

Foldable (Color (LAB i)) Source #

CIE1976 LAB color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB

Methods

fold :: Monoid m => Color (LAB i) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (LAB i) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (LAB i) a -> m #

foldr :: (a -> b -> b) -> b -> Color (LAB i) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (LAB i) a -> b #

foldl :: (b -> a -> b) -> b -> Color (LAB i) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (LAB i) a -> b #

foldr1 :: (a -> a -> a) -> Color (LAB i) a -> a #

foldl1 :: (a -> a -> a) -> Color (LAB i) a -> a #

toList :: Color (LAB i) a -> [a] #

null :: Color (LAB i) a -> Bool #

length :: Color (LAB i) a -> Int #

elem :: Eq a => a -> Color (LAB i) a -> Bool #

maximum :: Ord a => Color (LAB i) a -> a #

minimum :: Ord a => Color (LAB i) a -> a #

sum :: Num a => Color (LAB i) a -> a #

product :: Num a => Color (LAB i) a -> a #

Foldable (Color (LCHab i)) Source #

CIE1976 LCHab color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB.LCH

Methods

fold :: Monoid m => Color (LCHab i) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (LCHab i) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (LCHab i) a -> m #

foldr :: (a -> b -> b) -> b -> Color (LCHab i) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (LCHab i) a -> b #

foldl :: (b -> a -> b) -> b -> Color (LCHab i) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (LCHab i) a -> b #

foldr1 :: (a -> a -> a) -> Color (LCHab i) a -> a #

foldl1 :: (a -> a -> a) -> Color (LCHab i) a -> a #

toList :: Color (LCHab i) a -> [a] #

null :: Color (LCHab i) a -> Bool #

length :: Color (LCHab i) a -> Int #

elem :: Eq a => a -> Color (LCHab i) a -> Bool #

maximum :: Ord a => Color (LCHab i) a -> a #

minimum :: Ord a => Color (LCHab i) a -> a #

sum :: Num a => Color (LCHab i) a -> a #

product :: Num a => Color (LCHab i) a -> a #

Foldable (Color (BT470_625 l)) Source #

ITU-R BT.470 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Methods

fold :: Monoid m => Color (BT470_625 l) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (BT470_625 l) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (BT470_625 l) a -> m #

foldr :: (a -> b -> b) -> b -> Color (BT470_625 l) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (BT470_625 l) a -> b #

foldl :: (b -> a -> b) -> b -> Color (BT470_625 l) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (BT470_625 l) a -> b #

foldr1 :: (a -> a -> a) -> Color (BT470_625 l) a -> a #

foldl1 :: (a -> a -> a) -> Color (BT470_625 l) a -> a #

toList :: Color (BT470_625 l) a -> [a] #

null :: Color (BT470_625 l) a -> Bool #

length :: Color (BT470_625 l) a -> Int #

elem :: Eq a => a -> Color (BT470_625 l) a -> Bool #

maximum :: Ord a => Color (BT470_625 l) a -> a #

minimum :: Ord a => Color (BT470_625 l) a -> a #

sum :: Num a => Color (BT470_625 l) a -> a #

product :: Num a => Color (BT470_625 l) a -> a #

Foldable (Color (BT470_525 l)) Source #

ITU-R BT.470 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Methods

fold :: Monoid m => Color (BT470_525 l) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (BT470_525 l) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (BT470_525 l) a -> m #

foldr :: (a -> b -> b) -> b -> Color (BT470_525 l) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (BT470_525 l) a -> b #

foldl :: (b -> a -> b) -> b -> Color (BT470_525 l) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (BT470_525 l) a -> b #

foldr1 :: (a -> a -> a) -> Color (BT470_525 l) a -> a #

foldl1 :: (a -> a -> a) -> Color (BT470_525 l) a -> a #

toList :: Color (BT470_525 l) a -> [a] #

null :: Color (BT470_525 l) a -> Bool #

length :: Color (BT470_525 l) a -> Int #

elem :: Eq a => a -> Color (BT470_525 l) a -> Bool #

maximum :: Ord a => Color (BT470_525 l) a -> a #

minimum :: Ord a => Color (BT470_525 l) a -> a #

sum :: Num a => Color (BT470_525 l) a -> a #

product :: Num a => Color (BT470_525 l) a -> a #

Foldable (Color (HSV cs)) Source #

HSV representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSV

Methods

fold :: Monoid m => Color (HSV cs) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (HSV cs) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (HSV cs) a -> m #

foldr :: (a -> b -> b) -> b -> Color (HSV cs) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (HSV cs) a -> b #

foldl :: (b -> a -> b) -> b -> Color (HSV cs) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (HSV cs) a -> b #

foldr1 :: (a -> a -> a) -> Color (HSV cs) a -> a #

foldl1 :: (a -> a -> a) -> Color (HSV cs) a -> a #

toList :: Color (HSV cs) a -> [a] #

null :: Color (HSV cs) a -> Bool #

length :: Color (HSV cs) a -> Int #

elem :: Eq a => a -> Color (HSV cs) a -> Bool #

maximum :: Ord a => Color (HSV cs) a -> a #

minimum :: Ord a => Color (HSV cs) a -> a #

sum :: Num a => Color (HSV cs) a -> a #

product :: Num a => Color (HSV cs) a -> a #

Foldable (Color (HSL cs)) Source #

HSL representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSL

Methods

fold :: Monoid m => Color (HSL cs) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (HSL cs) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (HSL cs) a -> m #

foldr :: (a -> b -> b) -> b -> Color (HSL cs) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (HSL cs) a -> b #

foldl :: (b -> a -> b) -> b -> Color (HSL cs) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (HSL cs) a -> b #

foldr1 :: (a -> a -> a) -> Color (HSL cs) a -> a #

foldl1 :: (a -> a -> a) -> Color (HSL cs) a -> a #

toList :: Color (HSL cs) a -> [a] #

null :: Color (HSL cs) a -> Bool #

length :: Color (HSL cs) a -> Int #

elem :: Eq a => a -> Color (HSL cs) a -> Bool #

maximum :: Ord a => Color (HSL cs) a -> a #

minimum :: Ord a => Color (HSL cs) a -> a #

sum :: Num a => Color (HSL cs) a -> a #

product :: Num a => Color (HSL cs) a -> a #

Foldable (Color (HSI cs)) Source #

HSI representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSI

Methods

fold :: Monoid m => Color (HSI cs) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (HSI cs) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (HSI cs) a -> m #

foldr :: (a -> b -> b) -> b -> Color (HSI cs) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (HSI cs) a -> b #

foldl :: (b -> a -> b) -> b -> Color (HSI cs) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (HSI cs) a -> b #

foldr1 :: (a -> a -> a) -> Color (HSI cs) a -> a #

foldl1 :: (a -> a -> a) -> Color (HSI cs) a -> a #

toList :: Color (HSI cs) a -> [a] #

null :: Color (HSI cs) a -> Bool #

length :: Color (HSI cs) a -> Int #

elem :: Eq a => a -> Color (HSI cs) a -> Bool #

maximum :: Ord a => Color (HSI cs) a -> a #

minimum :: Ord a => Color (HSI cs) a -> a #

sum :: Num a => Color (HSI cs) a -> a #

product :: Num a => Color (HSI cs) a -> a #

Foldable (Color (CIERGB l)) Source #

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Methods

fold :: Monoid m => Color (CIERGB l) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (CIERGB l) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (CIERGB l) a -> m #

foldr :: (a -> b -> b) -> b -> Color (CIERGB l) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (CIERGB l) a -> b #

foldl :: (b -> a -> b) -> b -> Color (CIERGB l) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (CIERGB l) a -> b #

foldr1 :: (a -> a -> a) -> Color (CIERGB l) a -> a #

foldl1 :: (a -> a -> a) -> Color (CIERGB l) a -> a #

toList :: Color (CIERGB l) a -> [a] #

null :: Color (CIERGB l) a -> Bool #

length :: Color (CIERGB l) a -> Int #

elem :: Eq a => a -> Color (CIERGB l) a -> Bool #

maximum :: Ord a => Color (CIERGB l) a -> a #

minimum :: Ord a => Color (CIERGB l) a -> a #

sum :: Num a => Color (CIERGB l) a -> a #

product :: Num a => Color (CIERGB l) a -> a #

Foldable (Color (CIERGB i l)) Source #

CIERGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.CIERGB

Methods

fold :: Monoid m => Color (CIERGB i l) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (CIERGB i l) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (CIERGB i l) a -> m #

foldr :: (a -> b -> b) -> b -> Color (CIERGB i l) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (CIERGB i l) a -> b #

foldl :: (b -> a -> b) -> b -> Color (CIERGB i l) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (CIERGB i l) a -> b #

foldr1 :: (a -> a -> a) -> Color (CIERGB i l) a -> a #

foldl1 :: (a -> a -> a) -> Color (CIERGB i l) a -> a #

toList :: Color (CIERGB i l) a -> [a] #

null :: Color (CIERGB i l) a -> Bool #

length :: Color (CIERGB i l) a -> Int #

elem :: Eq a => a -> Color (CIERGB i l) a -> Bool #

maximum :: Ord a => Color (CIERGB i l) a -> a #

minimum :: Ord a => Color (CIERGB i l) a -> a #

sum :: Num a => Color (CIERGB i l) a -> a #

product :: Num a => Color (CIERGB i l) a -> a #

Foldable (Color (Y' cs)) Source #

Y` - luma of a color space

Instance details

Defined in Graphics.Color.Space.RGB.Luma

Methods

fold :: Monoid m => Color (Y' cs) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (Y' cs) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (Y' cs) a -> m #

foldr :: (a -> b -> b) -> b -> Color (Y' cs) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (Y' cs) a -> b #

foldl :: (b -> a -> b) -> b -> Color (Y' cs) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (Y' cs) a -> b #

foldr1 :: (a -> a -> a) -> Color (Y' cs) a -> a #

foldl1 :: (a -> a -> a) -> Color (Y' cs) a -> a #

toList :: Color (Y' cs) a -> [a] #

null :: Color (Y' cs) a -> Bool #

length :: Color (Y' cs) a -> Int #

elem :: Eq a => a -> Color (Y' cs) a -> Bool #

maximum :: Ord a => Color (Y' cs) a -> a #

minimum :: Ord a => Color (Y' cs) a -> a #

sum :: Num a => Color (Y' cs) a -> a #

product :: Num a => Color (Y' cs) a -> a #

Foldable (Color (BT601_625 l)) Source #

ITU-R BT.601 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Methods

fold :: Monoid m => Color (BT601_625 l) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (BT601_625 l) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (BT601_625 l) a -> m #

foldr :: (a -> b -> b) -> b -> Color (BT601_625 l) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (BT601_625 l) a -> b #

foldl :: (b -> a -> b) -> b -> Color (BT601_625 l) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (BT601_625 l) a -> b #

foldr1 :: (a -> a -> a) -> Color (BT601_625 l) a -> a #

foldl1 :: (a -> a -> a) -> Color (BT601_625 l) a -> a #

toList :: Color (BT601_625 l) a -> [a] #

null :: Color (BT601_625 l) a -> Bool #

length :: Color (BT601_625 l) a -> Int #

elem :: Eq a => a -> Color (BT601_625 l) a -> Bool #

maximum :: Ord a => Color (BT601_625 l) a -> a #

minimum :: Ord a => Color (BT601_625 l) a -> a #

sum :: Num a => Color (BT601_625 l) a -> a #

product :: Num a => Color (BT601_625 l) a -> a #

Foldable (Color (BT601_525 l)) Source #

ITU-R BT.601 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Methods

fold :: Monoid m => Color (BT601_525 l) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (BT601_525 l) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (BT601_525 l) a -> m #

foldr :: (a -> b -> b) -> b -> Color (BT601_525 l) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (BT601_525 l) a -> b #

foldl :: (b -> a -> b) -> b -> Color (BT601_525 l) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (BT601_525 l) a -> b #

foldr1 :: (a -> a -> a) -> Color (BT601_525 l) a -> a #

foldl1 :: (a -> a -> a) -> Color (BT601_525 l) a -> a #

toList :: Color (BT601_525 l) a -> [a] #

null :: Color (BT601_525 l) a -> Bool #

length :: Color (BT601_525 l) a -> Int #

elem :: Eq a => a -> Color (BT601_525 l) a -> Bool #

maximum :: Ord a => Color (BT601_525 l) a -> a #

minimum :: Ord a => Color (BT601_525 l) a -> a #

sum :: Num a => Color (BT601_525 l) a -> a #

product :: Num a => Color (BT601_525 l) a -> a #

Foldable (Color (BT709 l)) Source #

ITU-R BT.709 color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec709

Methods

fold :: Monoid m => Color (BT709 l) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (BT709 l) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (BT709 l) a -> m #

foldr :: (a -> b -> b) -> b -> Color (BT709 l) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (BT709 l) a -> b #

foldl :: (b -> a -> b) -> b -> Color (BT709 l) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (BT709 l) a -> b #

foldr1 :: (a -> a -> a) -> Color (BT709 l) a -> a #

foldl1 :: (a -> a -> a) -> Color (BT709 l) a -> a #

toList :: Color (BT709 l) a -> [a] #

null :: Color (BT709 l) a -> Bool #

length :: Color (BT709 l) a -> Int #

elem :: Eq a => a -> Color (BT709 l) a -> Bool #

maximum :: Ord a => Color (BT709 l) a -> a #

minimum :: Ord a => Color (BT709 l) a -> a #

sum :: Num a => Color (BT709 l) a -> a #

product :: Num a => Color (BT709 l) a -> a #

Foldable (Color (AdobeRGB l)) Source #

AdobeRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.AdobeRGB

Methods

fold :: Monoid m => Color (AdobeRGB l) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (AdobeRGB l) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (AdobeRGB l) a -> m #

foldr :: (a -> b -> b) -> b -> Color (AdobeRGB l) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (AdobeRGB l) a -> b #

foldl :: (b -> a -> b) -> b -> Color (AdobeRGB l) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (AdobeRGB l) a -> b #

foldr1 :: (a -> a -> a) -> Color (AdobeRGB l) a -> a #

foldl1 :: (a -> a -> a) -> Color (AdobeRGB l) a -> a #

toList :: Color (AdobeRGB l) a -> [a] #

null :: Color (AdobeRGB l) a -> Bool #

length :: Color (AdobeRGB l) a -> Int #

elem :: Eq a => a -> Color (AdobeRGB l) a -> Bool #

maximum :: Ord a => Color (AdobeRGB l) a -> a #

minimum :: Ord a => Color (AdobeRGB l) a -> a #

sum :: Num a => Color (AdobeRGB l) a -> a #

product :: Num a => Color (AdobeRGB l) a -> a #

Foldable (Color (AdobeRGB i l)) Source #

AdobeRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.AdobeRGB

Methods

fold :: Monoid m => Color (AdobeRGB i l) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (AdobeRGB i l) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (AdobeRGB i l) a -> m #

foldr :: (a -> b -> b) -> b -> Color (AdobeRGB i l) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (AdobeRGB i l) a -> b #

foldl :: (b -> a -> b) -> b -> Color (AdobeRGB i l) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (AdobeRGB i l) a -> b #

foldr1 :: (a -> a -> a) -> Color (AdobeRGB i l) a -> a #

foldl1 :: (a -> a -> a) -> Color (AdobeRGB i l) a -> a #

toList :: Color (AdobeRGB i l) a -> [a] #

null :: Color (AdobeRGB i l) a -> Bool #

length :: Color (AdobeRGB i l) a -> Int #

elem :: Eq a => a -> Color (AdobeRGB i l) a -> Bool #

maximum :: Ord a => Color (AdobeRGB i l) a -> a #

minimum :: Ord a => Color (AdobeRGB i l) a -> a #

sum :: Num a => Color (AdobeRGB i l) a -> a #

product :: Num a => Color (AdobeRGB i l) a -> a #

Foldable (Color (SRGB l)) Source #

SRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.SRGB

Methods

fold :: Monoid m => Color (SRGB l) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (SRGB l) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (SRGB l) a -> m #

foldr :: (a -> b -> b) -> b -> Color (SRGB l) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (SRGB l) a -> b #

foldl :: (b -> a -> b) -> b -> Color (SRGB l) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (SRGB l) a -> b #

foldr1 :: (a -> a -> a) -> Color (SRGB l) a -> a #

foldl1 :: (a -> a -> a) -> Color (SRGB l) a -> a #

toList :: Color (SRGB l) a -> [a] #

null :: Color (SRGB l) a -> Bool #

length :: Color (SRGB l) a -> Int #

elem :: Eq a => a -> Color (SRGB l) a -> Bool #

maximum :: Ord a => Color (SRGB l) a -> a #

minimum :: Ord a => Color (SRGB l) a -> a #

sum :: Num a => Color (SRGB l) a -> a #

product :: Num a => Color (SRGB l) a -> a #

Foldable (Color (SRGB i l)) Source #

SRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.SRGB

Methods

fold :: Monoid m => Color (SRGB i l) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (SRGB i l) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (SRGB i l) a -> m #

foldr :: (a -> b -> b) -> b -> Color (SRGB i l) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (SRGB i l) a -> b #

foldl :: (b -> a -> b) -> b -> Color (SRGB i l) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (SRGB i l) a -> b #

foldr1 :: (a -> a -> a) -> Color (SRGB i l) a -> a #

foldl1 :: (a -> a -> a) -> Color (SRGB i l) a -> a #

toList :: Color (SRGB i l) a -> [a] #

null :: Color (SRGB i l) a -> Bool #

length :: Color (SRGB i l) a -> Int #

elem :: Eq a => a -> Color (SRGB i l) a -> Bool #

maximum :: Ord a => Color (SRGB i l) a -> a #

minimum :: Ord a => Color (SRGB i l) a -> a #

sum :: Num a => Color (SRGB i l) a -> a #

product :: Num a => Color (SRGB i l) a -> a #

Foldable (Color (Y'CbCr cs)) Source # 
Instance details

Defined in Graphics.Color.Space.RGB.Alternative.YCbCr

Methods

fold :: Monoid m => Color (Y'CbCr cs) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (Y'CbCr cs) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (Y'CbCr cs) a -> m #

foldr :: (a -> b -> b) -> b -> Color (Y'CbCr cs) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (Y'CbCr cs) a -> b #

foldl :: (b -> a -> b) -> b -> Color (Y'CbCr cs) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (Y'CbCr cs) a -> b #

foldr1 :: (a -> a -> a) -> Color (Y'CbCr cs) a -> a #

foldl1 :: (a -> a -> a) -> Color (Y'CbCr cs) a -> a #

toList :: Color (Y'CbCr cs) a -> [a] #

null :: Color (Y'CbCr cs) a -> Bool #

length :: Color (Y'CbCr cs) a -> Int #

elem :: Eq a => a -> Color (Y'CbCr cs) a -> Bool #

maximum :: Ord a => Color (Y'CbCr cs) a -> a #

minimum :: Ord a => Color (Y'CbCr cs) a -> a #

sum :: Num a => Color (Y'CbCr cs) a -> a #

product :: Num a => Color (Y'CbCr cs) a -> a #

Foldable (Color (CMYK cs)) Source #

CMYK representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.CMYK

Methods

fold :: Monoid m => Color (CMYK cs) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (CMYK cs) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (CMYK cs) a -> m #

foldr :: (a -> b -> b) -> b -> Color (CMYK cs) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (CMYK cs) a -> b #

foldl :: (b -> a -> b) -> b -> Color (CMYK cs) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (CMYK cs) a -> b #

foldr1 :: (a -> a -> a) -> Color (CMYK cs) a -> a #

foldl1 :: (a -> a -> a) -> Color (CMYK cs) a -> a #

toList :: Color (CMYK cs) a -> [a] #

null :: Color (CMYK cs) a -> Bool #

length :: Color (CMYK cs) a -> Int #

elem :: Eq a => a -> Color (CMYK cs) a -> Bool #

maximum :: Ord a => Color (CMYK cs) a -> a #

minimum :: Ord a => Color (CMYK cs) a -> a #

sum :: Num a => Color (CMYK cs) a -> a #

product :: Num a => Color (CMYK cs) a -> a #

Traversable (Color cs) => Traversable (Color (Alpha cs)) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

traverse :: Applicative f => (a -> f b) -> Color (Alpha cs) a -> f (Color (Alpha cs) b) #

sequenceA :: Applicative f => Color (Alpha cs) (f a) -> f (Color (Alpha cs) a) #

mapM :: Monad m => (a -> m b) -> Color (Alpha cs) a -> m (Color (Alpha cs) b) #

sequence :: Monad m => Color (Alpha cs) (m a) -> m (Color (Alpha cs) a) #

Traversable (Color LCH) Source #

LCH color model

Instance details

Defined in Graphics.Color.Model.LCH

Methods

traverse :: Applicative f => (a -> f b) -> Color LCH a -> f (Color LCH b) #

sequenceA :: Applicative f => Color LCH (f a) -> f (Color LCH a) #

mapM :: Monad m => (a -> m b) -> Color LCH a -> m (Color LCH b) #

sequence :: Monad m => Color LCH (m a) -> m (Color LCH a) #

Traversable (Color RGB) Source #

RGB color model

Instance details

Defined in Graphics.Color.Model.RGB

Methods

traverse :: Applicative f => (a -> f b) -> Color RGB a -> f (Color RGB b) #

sequenceA :: Applicative f => Color RGB (f a) -> f (Color RGB a) #

mapM :: Monad m => (a -> m b) -> Color RGB a -> m (Color RGB b) #

sequence :: Monad m => Color RGB (m a) -> m (Color RGB a) #

Traversable (Color HSV) Source #

HSV color model

Instance details

Defined in Graphics.Color.Model.HSV

Methods

traverse :: Applicative f => (a -> f b) -> Color HSV a -> f (Color HSV b) #

sequenceA :: Applicative f => Color HSV (f a) -> f (Color HSV a) #

mapM :: Monad m => (a -> m b) -> Color HSV a -> m (Color HSV b) #

sequence :: Monad m => Color HSV (m a) -> m (Color HSV a) #

Traversable (Color HSL) Source #

HSL color model

Instance details

Defined in Graphics.Color.Model.HSL

Methods

traverse :: Applicative f => (a -> f b) -> Color HSL a -> f (Color HSL b) #

sequenceA :: Applicative f => Color HSL (f a) -> f (Color HSL a) #

mapM :: Monad m => (a -> m b) -> Color HSL a -> m (Color HSL b) #

sequence :: Monad m => Color HSL (m a) -> m (Color HSL a) #

Traversable (Color HSI) Source #

HSI color model

Instance details

Defined in Graphics.Color.Model.HSI

Methods

traverse :: Applicative f => (a -> f b) -> Color HSI a -> f (Color HSI b) #

sequenceA :: Applicative f => Color HSI (f a) -> f (Color HSI a) #

mapM :: Monad m => (a -> m b) -> Color HSI a -> m (Color HSI b) #

sequence :: Monad m => Color HSI (m a) -> m (Color HSI a) #

Traversable (Color CMYK) Source #

CMYK color model

Instance details

Defined in Graphics.Color.Model.CMYK

Methods

traverse :: Applicative f => (a -> f b) -> Color CMYK a -> f (Color CMYK b) #

sequenceA :: Applicative f => Color CMYK (f a) -> f (Color CMYK a) #

mapM :: Monad m => (a -> m b) -> Color CMYK a -> m (Color CMYK b) #

sequence :: Monad m => Color CMYK (m a) -> m (Color CMYK a) #

Traversable (Color X) Source #

X color model

Instance details

Defined in Graphics.Color.Model.X

Methods

traverse :: Applicative f => (a -> f b) -> Color X a -> f (Color X b) #

sequenceA :: Applicative f => Color X (f a) -> f (Color X a) #

mapM :: Monad m => (a -> m b) -> Color X a -> m (Color X b) #

sequence :: Monad m => Color X (m a) -> m (Color X a) #

Traversable (Color YCbCr) Source #

YCbCr color model

Instance details

Defined in Graphics.Color.Model.YCbCr

Methods

traverse :: Applicative f => (a -> f b) -> Color YCbCr a -> f (Color YCbCr b) #

sequenceA :: Applicative f => Color YCbCr (f a) -> f (Color YCbCr a) #

mapM :: Monad m => (a -> m b) -> Color YCbCr a -> m (Color YCbCr b) #

sequence :: Monad m => Color YCbCr (m a) -> m (Color YCbCr a) #

Traversable (Color (Y i)) Source #

Y - relative luminance of a color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

traverse :: Applicative f => (a -> f b) -> Color (Y i) a -> f (Color (Y i) b) #

sequenceA :: Applicative f => Color (Y i) (f a) -> f (Color (Y i) a) #

mapM :: Monad m => (a -> m b) -> Color (Y i) a -> m (Color (Y i) b) #

sequence :: Monad m => Color (Y i) (m a) -> m (Color (Y i) a) #

Traversable (Color (CIExyY i)) Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

traverse :: Applicative f => (a -> f b) -> Color (CIExyY i) a -> f (Color (CIExyY i) b) #

sequenceA :: Applicative f => Color (CIExyY i) (f a) -> f (Color (CIExyY i) a) #

mapM :: Monad m => (a -> m b) -> Color (CIExyY i) a -> m (Color (CIExyY i) b) #

sequence :: Monad m => Color (CIExyY i) (m a) -> m (Color (CIExyY i) a) #

Traversable (Color (XYZ i)) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

traverse :: Applicative f => (a -> f b) -> Color (XYZ i) a -> f (Color (XYZ i) b) #

sequenceA :: Applicative f => Color (XYZ i) (f a) -> f (Color (XYZ i) a) #

mapM :: Monad m => (a -> m b) -> Color (XYZ i) a -> m (Color (XYZ i) b) #

sequence :: Monad m => Color (XYZ i) (m a) -> m (Color (XYZ i) a) #

Traversable (Color (LUV i)) Source #

CIE1976 LUV color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV

Methods

traverse :: Applicative f => (a -> f b) -> Color (LUV i) a -> f (Color (LUV i) b) #

sequenceA :: Applicative f => Color (LUV i) (f a) -> f (Color (LUV i) a) #

mapM :: Monad m => (a -> m b) -> Color (LUV i) a -> m (Color (LUV i) b) #

sequence :: Monad m => Color (LUV i) (m a) -> m (Color (LUV i) a) #

Traversable (Color (LCHuv i)) Source #

CIE1976 LCHuv color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV.LCH

Methods

traverse :: Applicative f => (a -> f b) -> Color (LCHuv i) a -> f (Color (LCHuv i) b) #

sequenceA :: Applicative f => Color (LCHuv i) (f a) -> f (Color (LCHuv i) a) #

mapM :: Monad m => (a -> m b) -> Color (LCHuv i) a -> m (Color (LCHuv i) b) #

sequence :: Monad m => Color (LCHuv i) (m a) -> m (Color (LCHuv i) a) #

Traversable (Color (LAB i)) Source #

CIE1976 LAB color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB

Methods

traverse :: Applicative f => (a -> f b) -> Color (LAB i) a -> f (Color (LAB i) b) #

sequenceA :: Applicative f => Color (LAB i) (f a) -> f (Color (LAB i) a) #

mapM :: Monad m => (a -> m b) -> Color (LAB i) a -> m (Color (LAB i) b) #

sequence :: Monad m => Color (LAB i) (m a) -> m (Color (LAB i) a) #

Traversable (Color (LCHab i)) Source #

CIE1976 LCHab color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB.LCH

Methods

traverse :: Applicative f => (a -> f b) -> Color (LCHab i) a -> f (Color (LCHab i) b) #

sequenceA :: Applicative f => Color (LCHab i) (f a) -> f (Color (LCHab i) a) #

mapM :: Monad m => (a -> m b) -> Color (LCHab i) a -> m (Color (LCHab i) b) #

sequence :: Monad m => Color (LCHab i) (m a) -> m (Color (LCHab i) a) #

Traversable (Color (BT470_625 l)) Source #

ITU-R BT.470 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Methods

traverse :: Applicative f => (a -> f b) -> Color (BT470_625 l) a -> f (Color (BT470_625 l) b) #

sequenceA :: Applicative f => Color (BT470_625 l) (f a) -> f (Color (BT470_625 l) a) #

mapM :: Monad m => (a -> m b) -> Color (BT470_625 l) a -> m (Color (BT470_625 l) b) #

sequence :: Monad m => Color (BT470_625 l) (m a) -> m (Color (BT470_625 l) a) #

Traversable (Color (BT470_525 l)) Source #

ITU-R BT.470 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Methods

traverse :: Applicative f => (a -> f b) -> Color (BT470_525 l) a -> f (Color (BT470_525 l) b) #

sequenceA :: Applicative f => Color (BT470_525 l) (f a) -> f (Color (BT470_525 l) a) #

mapM :: Monad m => (a -> m b) -> Color (BT470_525 l) a -> m (Color (BT470_525 l) b) #

sequence :: Monad m => Color (BT470_525 l) (m a) -> m (Color (BT470_525 l) a) #

Traversable (Color (HSV cs)) Source #

HSV representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSV

Methods

traverse :: Applicative f => (a -> f b) -> Color (HSV cs) a -> f (Color (HSV cs) b) #

sequenceA :: Applicative f => Color (HSV cs) (f a) -> f (Color (HSV cs) a) #

mapM :: Monad m => (a -> m b) -> Color (HSV cs) a -> m (Color (HSV cs) b) #

sequence :: Monad m => Color (HSV cs) (m a) -> m (Color (HSV cs) a) #

Traversable (Color (HSL cs)) Source #

HSL representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSL

Methods

traverse :: Applicative f => (a -> f b) -> Color (HSL cs) a -> f (Color (HSL cs) b) #

sequenceA :: Applicative f => Color (HSL cs) (f a) -> f (Color (HSL cs) a) #

mapM :: Monad m => (a -> m b) -> Color (HSL cs) a -> m (Color (HSL cs) b) #

sequence :: Monad m => Color (HSL cs) (m a) -> m (Color (HSL cs) a) #

Traversable (Color (HSI cs)) Source #

HSI representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSI

Methods

traverse :: Applicative f => (a -> f b) -> Color (HSI cs) a -> f (Color (HSI cs) b) #

sequenceA :: Applicative f => Color (HSI cs) (f a) -> f (Color (HSI cs) a) #

mapM :: Monad m => (a -> m b) -> Color (HSI cs) a -> m (Color (HSI cs) b) #

sequence :: Monad m => Color (HSI cs) (m a) -> m (Color (HSI cs) a) #

Traversable (Color (CIERGB l)) Source #

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Methods

traverse :: Applicative f => (a -> f b) -> Color (CIERGB l) a -> f (Color (CIERGB l) b) #

sequenceA :: Applicative f => Color (CIERGB l) (f a) -> f (Color (CIERGB l) a) #

mapM :: Monad m => (a -> m b) -> Color (CIERGB l) a -> m (Color (CIERGB l) b) #

sequence :: Monad m => Color (CIERGB l) (m a) -> m (Color (CIERGB l) a) #

Traversable (Color (CIERGB i l)) Source #

CIERGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.CIERGB

Methods

traverse :: Applicative f => (a -> f b) -> Color (CIERGB i l) a -> f (Color (CIERGB i l) b) #

sequenceA :: Applicative f => Color (CIERGB i l) (f a) -> f (Color (CIERGB i l) a) #

mapM :: Monad m => (a -> m b) -> Color (CIERGB i l) a -> m (Color (CIERGB i l) b) #

sequence :: Monad m => Color (CIERGB i l) (m a) -> m (Color (CIERGB i l) a) #

Traversable (Color (Y' cs)) Source #

Y` - luma of a color space

Instance details

Defined in Graphics.Color.Space.RGB.Luma

Methods

traverse :: Applicative f => (a -> f b) -> Color (Y' cs) a -> f (Color (Y' cs) b) #

sequenceA :: Applicative f => Color (Y' cs) (f a) -> f (Color (Y' cs) a) #

mapM :: Monad m => (a -> m b) -> Color (Y' cs) a -> m (Color (Y' cs) b) #

sequence :: Monad m => Color (Y' cs) (m a) -> m (Color (Y' cs) a) #

Traversable (Color (BT601_625 l)) Source #

ITU-R BT.601 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Methods

traverse :: Applicative f => (a -> f b) -> Color (BT601_625 l) a -> f (Color (BT601_625 l) b) #

sequenceA :: Applicative f => Color (BT601_625 l) (f a) -> f (Color (BT601_625 l) a) #

mapM :: Monad m => (a -> m b) -> Color (BT601_625 l) a -> m (Color (BT601_625 l) b) #

sequence :: Monad m => Color (BT601_625 l) (m a) -> m (Color (BT601_625 l) a) #

Traversable (Color (BT601_525 l)) Source #

ITU-R BT.601 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Methods

traverse :: Applicative f => (a -> f b) -> Color (BT601_525 l) a -> f (Color (BT601_525 l) b) #

sequenceA :: Applicative f => Color (BT601_525 l) (f a) -> f (Color (BT601_525 l) a) #

mapM :: Monad m => (a -> m b) -> Color (BT601_525 l) a -> m (Color (BT601_525 l) b) #

sequence :: Monad m => Color (BT601_525 l) (m a) -> m (Color (BT601_525 l) a) #

Traversable (Color (BT709 l)) Source #

ITU-R BT.709 color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec709

Methods

traverse :: Applicative f => (a -> f b) -> Color (BT709 l) a -> f (Color (BT709 l) b) #

sequenceA :: Applicative f => Color (BT709 l) (f a) -> f (Color (BT709 l) a) #

mapM :: Monad m => (a -> m b) -> Color (BT709 l) a -> m (Color (BT709 l) b) #

sequence :: Monad m => Color (BT709 l) (m a) -> m (Color (BT709 l) a) #

Traversable (Color (AdobeRGB l)) Source #

AdobeRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.AdobeRGB

Methods

traverse :: Applicative f => (a -> f b) -> Color (AdobeRGB l) a -> f (Color (AdobeRGB l) b) #

sequenceA :: Applicative f => Color (AdobeRGB l) (f a) -> f (Color (AdobeRGB l) a) #

mapM :: Monad m => (a -> m b) -> Color (AdobeRGB l) a -> m (Color (AdobeRGB l) b) #

sequence :: Monad m => Color (AdobeRGB l) (m a) -> m (Color (AdobeRGB l) a) #

Traversable (Color (AdobeRGB i l)) Source #

AdobeRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.AdobeRGB

Methods

traverse :: Applicative f => (a -> f b) -> Color (AdobeRGB i l) a -> f (Color (AdobeRGB i l) b) #

sequenceA :: Applicative f => Color (AdobeRGB i l) (f a) -> f (Color (AdobeRGB i l) a) #

mapM :: Monad m => (a -> m b) -> Color (AdobeRGB i l) a -> m (Color (AdobeRGB i l) b) #

sequence :: Monad m => Color (AdobeRGB i l) (m a) -> m (Color (AdobeRGB i l) a) #

Traversable (Color (SRGB l)) Source #

SRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.SRGB

Methods

traverse :: Applicative f => (a -> f b) -> Color (SRGB l) a -> f (Color (SRGB l) b) #

sequenceA :: Applicative f => Color (SRGB l) (f a) -> f (Color (SRGB l) a) #

mapM :: Monad m => (a -> m b) -> Color (SRGB l) a -> m (Color (SRGB l) b) #

sequence :: Monad m => Color (SRGB l) (m a) -> m (Color (SRGB l) a) #

Traversable (Color (SRGB i l)) Source #

SRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.SRGB

Methods

traverse :: Applicative f => (a -> f b) -> Color (SRGB i l) a -> f (Color (SRGB i l) b) #

sequenceA :: Applicative f => Color (SRGB i l) (f a) -> f (Color (SRGB i l) a) #

mapM :: Monad m => (a -> m b) -> Color (SRGB i l) a -> m (Color (SRGB i l) b) #

sequence :: Monad m => Color (SRGB i l) (m a) -> m (Color (SRGB i l) a) #

Traversable (Color (Y'CbCr cs)) Source # 
Instance details

Defined in Graphics.Color.Space.RGB.Alternative.YCbCr

Methods

traverse :: Applicative f => (a -> f b) -> Color (Y'CbCr cs) a -> f (Color (Y'CbCr cs) b) #

sequenceA :: Applicative f => Color (Y'CbCr cs) (f a) -> f (Color (Y'CbCr cs) a) #

mapM :: Monad m => (a -> m b) -> Color (Y'CbCr cs) a -> m (Color (Y'CbCr cs) b) #

sequence :: Monad m => Color (Y'CbCr cs) (m a) -> m (Color (Y'CbCr cs) a) #

Traversable (Color (CMYK cs)) Source #

CMYK representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.CMYK

Methods

traverse :: Applicative f => (a -> f b) -> Color (CMYK cs) a -> f (Color (CMYK cs) b) #

sequenceA :: Applicative f => Color (CMYK cs) (f a) -> f (Color (CMYK cs) a) #

mapM :: Monad m => (a -> m b) -> Color (CMYK cs) a -> m (Color (CMYK cs) b) #

sequence :: Monad m => Color (CMYK cs) (m a) -> m (Color (CMYK cs) a) #

ColorModel cs e => Bounded (Color cs e) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

minBound :: Color cs e #

maxBound :: Color cs e #

(Eq (Color cs e), Eq e) => Eq (Color (Alpha cs) e) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

(==) :: Color (Alpha cs) e -> Color (Alpha cs) e -> Bool #

(/=) :: Color (Alpha cs) e -> Color (Alpha cs) e -> Bool #

Eq e => Eq (Color LCH e) Source #

LCH color model

Instance details

Defined in Graphics.Color.Model.LCH

Methods

(==) :: Color LCH e -> Color LCH e -> Bool #

(/=) :: Color LCH e -> Color LCH e -> Bool #

Eq e => Eq (Color RGB e) Source #

RGB color model

Instance details

Defined in Graphics.Color.Model.RGB

Methods

(==) :: Color RGB e -> Color RGB e -> Bool #

(/=) :: Color RGB e -> Color RGB e -> Bool #

Eq e => Eq (Color HSV e) Source #

HSV color model

Instance details

Defined in Graphics.Color.Model.HSV

Methods

(==) :: Color HSV e -> Color HSV e -> Bool #

(/=) :: Color HSV e -> Color HSV e -> Bool #

Eq e => Eq (Color HSL e) Source #

HSL color model

Instance details

Defined in Graphics.Color.Model.HSL

Methods

(==) :: Color HSL e -> Color HSL e -> Bool #

(/=) :: Color HSL e -> Color HSL e -> Bool #

Eq e => Eq (Color HSI e) Source #

HSI color model

Instance details

Defined in Graphics.Color.Model.HSI

Methods

(==) :: Color HSI e -> Color HSI e -> Bool #

(/=) :: Color HSI e -> Color HSI e -> Bool #

Eq e => Eq (Color CMYK e) Source #

CMYK color model

Instance details

Defined in Graphics.Color.Model.CMYK

Methods

(==) :: Color CMYK e -> Color CMYK e -> Bool #

(/=) :: Color CMYK e -> Color CMYK e -> Bool #

Eq e => Eq (Color X e) Source #

X color model

Instance details

Defined in Graphics.Color.Model.X

Methods

(==) :: Color X e -> Color X e -> Bool #

(/=) :: Color X e -> Color X e -> Bool #

Eq e => Eq (Color YCbCr e) Source #

YCbCr color model

Instance details

Defined in Graphics.Color.Model.YCbCr

Methods

(==) :: Color YCbCr e -> Color YCbCr e -> Bool #

(/=) :: Color YCbCr e -> Color YCbCr e -> Bool #

Eq e => Eq (Color (Y i) e) Source #

Y - relative luminance of a color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

(==) :: Color (Y i) e -> Color (Y i) e -> Bool #

(/=) :: Color (Y i) e -> Color (Y i) e -> Bool #

Eq e => Eq (Color (CIExyY i) e) Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

(==) :: Color (CIExyY i) e -> Color (CIExyY i) e -> Bool #

(/=) :: Color (CIExyY i) e -> Color (CIExyY i) e -> Bool #

Eq e => Eq (Color (XYZ i) e) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

(==) :: Color (XYZ i) e -> Color (XYZ i) e -> Bool #

(/=) :: Color (XYZ i) e -> Color (XYZ i) e -> Bool #

Eq e => Eq (Color (LUV i) e) Source #

CIE1976 LUV color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV

Methods

(==) :: Color (LUV i) e -> Color (LUV i) e -> Bool #

(/=) :: Color (LUV i) e -> Color (LUV i) e -> Bool #

Eq e => Eq (Color (LCHuv i) e) Source #

CIE1976 LCHuv color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV.LCH

Methods

(==) :: Color (LCHuv i) e -> Color (LCHuv i) e -> Bool #

(/=) :: Color (LCHuv i) e -> Color (LCHuv i) e -> Bool #

Eq e => Eq (Color (LAB i) e) Source #

CIE1976 LAB color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB

Methods

(==) :: Color (LAB i) e -> Color (LAB i) e -> Bool #

(/=) :: Color (LAB i) e -> Color (LAB i) e -> Bool #

Eq e => Eq (Color (LCHab i) e) Source #

CIE1976 LCHab color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB.LCH

Methods

(==) :: Color (LCHab i) e -> Color (LCHab i) e -> Bool #

(/=) :: Color (LCHab i) e -> Color (LCHab i) e -> Bool #

Eq e => Eq (Color (BT470_625 l) e) Source #

ITU-R BT.470 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Methods

(==) :: Color (BT470_625 l) e -> Color (BT470_625 l) e -> Bool #

(/=) :: Color (BT470_625 l) e -> Color (BT470_625 l) e -> Bool #

Eq e => Eq (Color (BT470_525 l) e) Source #

ITU-R BT.470 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Methods

(==) :: Color (BT470_525 l) e -> Color (BT470_525 l) e -> Bool #

(/=) :: Color (BT470_525 l) e -> Color (BT470_525 l) e -> Bool #

Eq e => Eq (Color (HSV cs) e) Source #

HSV representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSV

Methods

(==) :: Color (HSV cs) e -> Color (HSV cs) e -> Bool #

(/=) :: Color (HSV cs) e -> Color (HSV cs) e -> Bool #

Eq e => Eq (Color (HSL cs) e) Source #

HSL representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSL

Methods

(==) :: Color (HSL cs) e -> Color (HSL cs) e -> Bool #

(/=) :: Color (HSL cs) e -> Color (HSL cs) e -> Bool #

Eq e => Eq (Color (HSI cs) e) Source #

HSI representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSI

Methods

(==) :: Color (HSI cs) e -> Color (HSI cs) e -> Bool #

(/=) :: Color (HSI cs) e -> Color (HSI cs) e -> Bool #

Eq e => Eq (Color (CIERGB l) e) Source #

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Methods

(==) :: Color (CIERGB l) e -> Color (CIERGB l) e -> Bool #

(/=) :: Color (CIERGB l) e -> Color (CIERGB l) e -> Bool #

Eq e => Eq (Color (CIERGB i l) e) Source #

CIERGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.CIERGB

Methods

(==) :: Color (CIERGB i l) e -> Color (CIERGB i l) e -> Bool #

(/=) :: Color (CIERGB i l) e -> Color (CIERGB i l) e -> Bool #

Eq e => Eq (Color (Y' cs) e) Source #

Y` - luma of a color space

Instance details

Defined in Graphics.Color.Space.RGB.Luma

Methods

(==) :: Color (Y' cs) e -> Color (Y' cs) e -> Bool #

(/=) :: Color (Y' cs) e -> Color (Y' cs) e -> Bool #

Eq e => Eq (Color (BT601_625 l) e) Source #

ITU-R BT.601 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Methods

(==) :: Color (BT601_625 l) e -> Color (BT601_625 l) e -> Bool #

(/=) :: Color (BT601_625 l) e -> Color (BT601_625 l) e -> Bool #

Eq e => Eq (Color (BT601_525 l) e) Source #

ITU-R BT.601 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Methods

(==) :: Color (BT601_525 l) e -> Color (BT601_525 l) e -> Bool #

(/=) :: Color (BT601_525 l) e -> Color (BT601_525 l) e -> Bool #

Eq e => Eq (Color (BT709 l) e) Source #

ITU-R BT.709 color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec709

Methods

(==) :: Color (BT709 l) e -> Color (BT709 l) e -> Bool #

(/=) :: Color (BT709 l) e -> Color (BT709 l) e -> Bool #

Eq e => Eq (Color (AdobeRGB l) e) Source #

AdobeRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.AdobeRGB

Methods

(==) :: Color (AdobeRGB l) e -> Color (AdobeRGB l) e -> Bool #

(/=) :: Color (AdobeRGB l) e -> Color (AdobeRGB l) e -> Bool #

Eq e => Eq (Color (AdobeRGB i l) e) Source #

AdobeRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.AdobeRGB

Methods

(==) :: Color (AdobeRGB i l) e -> Color (AdobeRGB i l) e -> Bool #

(/=) :: Color (AdobeRGB i l) e -> Color (AdobeRGB i l) e -> Bool #

Eq e => Eq (Color (SRGB l) e) Source #

SRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.SRGB

Methods

(==) :: Color (SRGB l) e -> Color (SRGB l) e -> Bool #

(/=) :: Color (SRGB l) e -> Color (SRGB l) e -> Bool #

Eq e => Eq (Color (SRGB i l) e) Source #

SRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.SRGB

Methods

(==) :: Color (SRGB i l) e -> Color (SRGB i l) e -> Bool #

(/=) :: Color (SRGB i l) e -> Color (SRGB i l) e -> Bool #

Eq e => Eq (Color (Y'CbCr cs) e) Source # 
Instance details

Defined in Graphics.Color.Space.RGB.Alternative.YCbCr

Methods

(==) :: Color (Y'CbCr cs) e -> Color (Y'CbCr cs) e -> Bool #

(/=) :: Color (Y'CbCr cs) e -> Color (Y'CbCr cs) e -> Bool #

Eq e => Eq (Color (CMYK cs) e) Source #

CMYK representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.CMYK

Methods

(==) :: Color (CMYK cs) e -> Color (CMYK cs) e -> Bool #

(/=) :: Color (CMYK cs) e -> Color (CMYK cs) e -> Bool #

(ColorModel cs e, Floating e) => Floating (Color cs e) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

pi :: Color cs e #

exp :: Color cs e -> Color cs e #

log :: Color cs e -> Color cs e #

sqrt :: Color cs e -> Color cs e #

(**) :: Color cs e -> Color cs e -> Color cs e #

logBase :: Color cs e -> Color cs e -> Color cs e #

sin :: Color cs e -> Color cs e #

cos :: Color cs e -> Color cs e #

tan :: Color cs e -> Color cs e #

asin :: Color cs e -> Color cs e #

acos :: Color cs e -> Color cs e #

atan :: Color cs e -> Color cs e #

sinh :: Color cs e -> Color cs e #

cosh :: Color cs e -> Color cs e #

tanh :: Color cs e -> Color cs e #

asinh :: Color cs e -> Color cs e #

acosh :: Color cs e -> Color cs e #

atanh :: Color cs e -> Color cs e #

log1p :: Color cs e -> Color cs e #

expm1 :: Color cs e -> Color cs e #

log1pexp :: Color cs e -> Color cs e #

log1mexp :: Color cs e -> Color cs e #

(ColorModel cs e, Fractional e) => Fractional (Color cs e) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

(/) :: Color cs e -> Color cs e -> Color cs e #

recip :: Color cs e -> Color cs e #

fromRational :: Rational -> Color cs e #

ColorModel cs e => Num (Color cs e) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

(+) :: Color cs e -> Color cs e -> Color cs e #

(-) :: Color cs e -> Color cs e -> Color cs e #

(*) :: Color cs e -> Color cs e -> Color cs e #

negate :: Color cs e -> Color cs e #

abs :: Color cs e -> Color cs e #

signum :: Color cs e -> Color cs e #

fromInteger :: Integer -> Color cs e #

Ord e => Ord (Color LCH e) Source #

LCH color model

Instance details

Defined in Graphics.Color.Model.LCH

Methods

compare :: Color LCH e -> Color LCH e -> Ordering #

(<) :: Color LCH e -> Color LCH e -> Bool #

(<=) :: Color LCH e -> Color LCH e -> Bool #

(>) :: Color LCH e -> Color LCH e -> Bool #

(>=) :: Color LCH e -> Color LCH e -> Bool #

max :: Color LCH e -> Color LCH e -> Color LCH e #

min :: Color LCH e -> Color LCH e -> Color LCH e #

Ord e => Ord (Color RGB e) Source #

RGB color model

Instance details

Defined in Graphics.Color.Model.RGB

Methods

compare :: Color RGB e -> Color RGB e -> Ordering #

(<) :: Color RGB e -> Color RGB e -> Bool #

(<=) :: Color RGB e -> Color RGB e -> Bool #

(>) :: Color RGB e -> Color RGB e -> Bool #

(>=) :: Color RGB e -> Color RGB e -> Bool #

max :: Color RGB e -> Color RGB e -> Color RGB e #

min :: Color RGB e -> Color RGB e -> Color RGB e #

Ord e => Ord (Color HSV e) Source #

HSV color model

Instance details

Defined in Graphics.Color.Model.HSV

Methods

compare :: Color HSV e -> Color HSV e -> Ordering #

(<) :: Color HSV e -> Color HSV e -> Bool #

(<=) :: Color HSV e -> Color HSV e -> Bool #

(>) :: Color HSV e -> Color HSV e -> Bool #

(>=) :: Color HSV e -> Color HSV e -> Bool #

max :: Color HSV e -> Color HSV e -> Color HSV e #

min :: Color HSV e -> Color HSV e -> Color HSV e #

Ord e => Ord (Color HSL e) Source #

HSL color model

Instance details

Defined in Graphics.Color.Model.HSL

Methods

compare :: Color HSL e -> Color HSL e -> Ordering #

(<) :: Color HSL e -> Color HSL e -> Bool #

(<=) :: Color HSL e -> Color HSL e -> Bool #

(>) :: Color HSL e -> Color HSL e -> Bool #

(>=) :: Color HSL e -> Color HSL e -> Bool #

max :: Color HSL e -> Color HSL e -> Color HSL e #

min :: Color HSL e -> Color HSL e -> Color HSL e #

Ord e => Ord (Color HSI e) Source #

HSI color model

Instance details

Defined in Graphics.Color.Model.HSI

Methods

compare :: Color HSI e -> Color HSI e -> Ordering #

(<) :: Color HSI e -> Color HSI e -> Bool #

(<=) :: Color HSI e -> Color HSI e -> Bool #

(>) :: Color HSI e -> Color HSI e -> Bool #

(>=) :: Color HSI e -> Color HSI e -> Bool #

max :: Color HSI e -> Color HSI e -> Color HSI e #

min :: Color HSI e -> Color HSI e -> Color HSI e #

Ord e => Ord (Color CMYK e) Source #

CMYK color model

Instance details

Defined in Graphics.Color.Model.CMYK

Methods

compare :: Color CMYK e -> Color CMYK e -> Ordering #

(<) :: Color CMYK e -> Color CMYK e -> Bool #

(<=) :: Color CMYK e -> Color CMYK e -> Bool #

(>) :: Color CMYK e -> Color CMYK e -> Bool #

(>=) :: Color CMYK e -> Color CMYK e -> Bool #

max :: Color CMYK e -> Color CMYK e -> Color CMYK e #

min :: Color CMYK e -> Color CMYK e -> Color CMYK e #

Ord e => Ord (Color X e) Source #

X color model

Instance details

Defined in Graphics.Color.Model.X

Methods

compare :: Color X e -> Color X e -> Ordering #

(<) :: Color X e -> Color X e -> Bool #

(<=) :: Color X e -> Color X e -> Bool #

(>) :: Color X e -> Color X e -> Bool #

(>=) :: Color X e -> Color X e -> Bool #

max :: Color X e -> Color X e -> Color X e #

min :: Color X e -> Color X e -> Color X e #

Ord e => Ord (Color YCbCr e) Source #

YCbCr color model

Instance details

Defined in Graphics.Color.Model.YCbCr

Methods

compare :: Color YCbCr e -> Color YCbCr e -> Ordering #

(<) :: Color YCbCr e -> Color YCbCr e -> Bool #

(<=) :: Color YCbCr e -> Color YCbCr e -> Bool #

(>) :: Color YCbCr e -> Color YCbCr e -> Bool #

(>=) :: Color YCbCr e -> Color YCbCr e -> Bool #

max :: Color YCbCr e -> Color YCbCr e -> Color YCbCr e #

min :: Color YCbCr e -> Color YCbCr e -> Color YCbCr e #

Ord e => Ord (Color (Y i) e) Source #

Y - relative luminance of a color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

compare :: Color (Y i) e -> Color (Y i) e -> Ordering #

(<) :: Color (Y i) e -> Color (Y i) e -> Bool #

(<=) :: Color (Y i) e -> Color (Y i) e -> Bool #

(>) :: Color (Y i) e -> Color (Y i) e -> Bool #

(>=) :: Color (Y i) e -> Color (Y i) e -> Bool #

max :: Color (Y i) e -> Color (Y i) e -> Color (Y i) e #

min :: Color (Y i) e -> Color (Y i) e -> Color (Y i) e #

Ord e => Ord (Color (CIExyY i) e) Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

compare :: Color (CIExyY i) e -> Color (CIExyY i) e -> Ordering #

(<) :: Color (CIExyY i) e -> Color (CIExyY i) e -> Bool #

(<=) :: Color (CIExyY i) e -> Color (CIExyY i) e -> Bool #

(>) :: Color (CIExyY i) e -> Color (CIExyY i) e -> Bool #

(>=) :: Color (CIExyY i) e -> Color (CIExyY i) e -> Bool #

max :: Color (CIExyY i) e -> Color (CIExyY i) e -> Color (CIExyY i) e #

min :: Color (CIExyY i) e -> Color (CIExyY i) e -> Color (CIExyY i) e #

Ord e => Ord (Color (XYZ i) e) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

compare :: Color (XYZ i) e -> Color (XYZ i) e -> Ordering #

(<) :: Color (XYZ i) e -> Color (XYZ i) e -> Bool #

(<=) :: Color (XYZ i) e -> Color (XYZ i) e -> Bool #

(>) :: Color (XYZ i) e -> Color (XYZ i) e -> Bool #

(>=) :: Color (XYZ i) e -> Color (XYZ i) e -> Bool #

max :: Color (XYZ i) e -> Color (XYZ i) e -> Color (XYZ i) e #

min :: Color (XYZ i) e -> Color (XYZ i) e -> Color (XYZ i) e #

Ord e => Ord (Color (LUV i) e) Source #

CIE1976 LUV color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV

Methods

compare :: Color (LUV i) e -> Color (LUV i) e -> Ordering #

(<) :: Color (LUV i) e -> Color (LUV i) e -> Bool #

(<=) :: Color (LUV i) e -> Color (LUV i) e -> Bool #

(>) :: Color (LUV i) e -> Color (LUV i) e -> Bool #

(>=) :: Color (LUV i) e -> Color (LUV i) e -> Bool #

max :: Color (LUV i) e -> Color (LUV i) e -> Color (LUV i) e #

min :: Color (LUV i) e -> Color (LUV i) e -> Color (LUV i) e #

Ord e => Ord (Color (LCHuv i) e) Source #

CIE1976 LCHuv color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV.LCH

Methods

compare :: Color (LCHuv i) e -> Color (LCHuv i) e -> Ordering #

(<) :: Color (LCHuv i) e -> Color (LCHuv i) e -> Bool #

(<=) :: Color (LCHuv i) e -> Color (LCHuv i) e -> Bool #

(>) :: Color (LCHuv i) e -> Color (LCHuv i) e -> Bool #

(>=) :: Color (LCHuv i) e -> Color (LCHuv i) e -> Bool #

max :: Color (LCHuv i) e -> Color (LCHuv i) e -> Color (LCHuv i) e #

min :: Color (LCHuv i) e -> Color (LCHuv i) e -> Color (LCHuv i) e #

Ord e => Ord (Color (LAB i) e) Source #

CIE1976 LAB color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB

Methods

compare :: Color (LAB i) e -> Color (LAB i) e -> Ordering #

(<) :: Color (LAB i) e -> Color (LAB i) e -> Bool #

(<=) :: Color (LAB i) e -> Color (LAB i) e -> Bool #

(>) :: Color (LAB i) e -> Color (LAB i) e -> Bool #

(>=) :: Color (LAB i) e -> Color (LAB i) e -> Bool #

max :: Color (LAB i) e -> Color (LAB i) e -> Color (LAB i) e #

min :: Color (LAB i) e -> Color (LAB i) e -> Color (LAB i) e #

Ord e => Ord (Color (LCHab i) e) Source #

CIE1976 LCHab color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB.LCH

Methods

compare :: Color (LCHab i) e -> Color (LCHab i) e -> Ordering #

(<) :: Color (LCHab i) e -> Color (LCHab i) e -> Bool #

(<=) :: Color (LCHab i) e -> Color (LCHab i) e -> Bool #

(>) :: Color (LCHab i) e -> Color (LCHab i) e -> Bool #

(>=) :: Color (LCHab i) e -> Color (LCHab i) e -> Bool #

max :: Color (LCHab i) e -> Color (LCHab i) e -> Color (LCHab i) e #

min :: Color (LCHab i) e -> Color (LCHab i) e -> Color (LCHab i) e #

Ord e => Ord (Color (BT470_625 l) e) Source #

ITU-R BT.470 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Methods

compare :: Color (BT470_625 l) e -> Color (BT470_625 l) e -> Ordering #

(<) :: Color (BT470_625 l) e -> Color (BT470_625 l) e -> Bool #

(<=) :: Color (BT470_625 l) e -> Color (BT470_625 l) e -> Bool #

(>) :: Color (BT470_625 l) e -> Color (BT470_625 l) e -> Bool #

(>=) :: Color (BT470_625 l) e -> Color (BT470_625 l) e -> Bool #

max :: Color (BT470_625 l) e -> Color (BT470_625 l) e -> Color (BT470_625 l) e #

min :: Color (BT470_625 l) e -> Color (BT470_625 l) e -> Color (BT470_625 l) e #

Ord e => Ord (Color (BT470_525 l) e) Source #

ITU-R BT.470 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Methods

compare :: Color (BT470_525 l) e -> Color (BT470_525 l) e -> Ordering #

(<) :: Color (BT470_525 l) e -> Color (BT470_525 l) e -> Bool #

(<=) :: Color (BT470_525 l) e -> Color (BT470_525 l) e -> Bool #

(>) :: Color (BT470_525 l) e -> Color (BT470_525 l) e -> Bool #

(>=) :: Color (BT470_525 l) e -> Color (BT470_525 l) e -> Bool #

max :: Color (BT470_525 l) e -> Color (BT470_525 l) e -> Color (BT470_525 l) e #

min :: Color (BT470_525 l) e -> Color (BT470_525 l) e -> Color (BT470_525 l) e #

Ord e => Ord (Color (HSV cs) e) Source #

HSV representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSV

Methods

compare :: Color (HSV cs) e -> Color (HSV cs) e -> Ordering #

(<) :: Color (HSV cs) e -> Color (HSV cs) e -> Bool #

(<=) :: Color (HSV cs) e -> Color (HSV cs) e -> Bool #

(>) :: Color (HSV cs) e -> Color (HSV cs) e -> Bool #

(>=) :: Color (HSV cs) e -> Color (HSV cs) e -> Bool #

max :: Color (HSV cs) e -> Color (HSV cs) e -> Color (HSV cs) e #

min :: Color (HSV cs) e -> Color (HSV cs) e -> Color (HSV cs) e #

Ord e => Ord (Color (HSL cs) e) Source #

HSL representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSL

Methods

compare :: Color (HSL cs) e -> Color (HSL cs) e -> Ordering #

(<) :: Color (HSL cs) e -> Color (HSL cs) e -> Bool #

(<=) :: Color (HSL cs) e -> Color (HSL cs) e -> Bool #

(>) :: Color (HSL cs) e -> Color (HSL cs) e -> Bool #

(>=) :: Color (HSL cs) e -> Color (HSL cs) e -> Bool #

max :: Color (HSL cs) e -> Color (HSL cs) e -> Color (HSL cs) e #

min :: Color (HSL cs) e -> Color (HSL cs) e -> Color (HSL cs) e #

Ord e => Ord (Color (HSI cs) e) Source #

HSI representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSI

Methods

compare :: Color (HSI cs) e -> Color (HSI cs) e -> Ordering #

(<) :: Color (HSI cs) e -> Color (HSI cs) e -> Bool #

(<=) :: Color (HSI cs) e -> Color (HSI cs) e -> Bool #

(>) :: Color (HSI cs) e -> Color (HSI cs) e -> Bool #

(>=) :: Color (HSI cs) e -> Color (HSI cs) e -> Bool #

max :: Color (HSI cs) e -> Color (HSI cs) e -> Color (HSI cs) e #

min :: Color (HSI cs) e -> Color (HSI cs) e -> Color (HSI cs) e #

Ord e => Ord (Color (CIERGB l) e) Source #

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Methods

compare :: Color (CIERGB l) e -> Color (CIERGB l) e -> Ordering #

(<) :: Color (CIERGB l) e -> Color (CIERGB l) e -> Bool #

(<=) :: Color (CIERGB l) e -> Color (CIERGB l) e -> Bool #

(>) :: Color (CIERGB l) e -> Color (CIERGB l) e -> Bool #

(>=) :: Color (CIERGB l) e -> Color (CIERGB l) e -> Bool #

max :: Color (CIERGB l) e -> Color (CIERGB l) e -> Color (CIERGB l) e #

min :: Color (CIERGB l) e -> Color (CIERGB l) e -> Color (CIERGB l) e #

Ord e => Ord (Color (CIERGB i l) e) Source #

CIERGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.CIERGB

Methods

compare :: Color (CIERGB i l) e -> Color (CIERGB i l) e -> Ordering #

(<) :: Color (CIERGB i l) e -> Color (CIERGB i l) e -> Bool #

(<=) :: Color (CIERGB i l) e -> Color (CIERGB i l) e -> Bool #

(>) :: Color (CIERGB i l) e -> Color (CIERGB i l) e -> Bool #

(>=) :: Color (CIERGB i l) e -> Color (CIERGB i l) e -> Bool #

max :: Color (CIERGB i l) e -> Color (CIERGB i l) e -> Color (CIERGB i l) e #

min :: Color (CIERGB i l) e -> Color (CIERGB i l) e -> Color (CIERGB i l) e #

Ord e => Ord (Color (Y' cs) e) Source #

Y` - luma of a color space

Instance details

Defined in Graphics.Color.Space.RGB.Luma

Methods

compare :: Color (Y' cs) e -> Color (Y' cs) e -> Ordering #

(<) :: Color (Y' cs) e -> Color (Y' cs) e -> Bool #

(<=) :: Color (Y' cs) e -> Color (Y' cs) e -> Bool #

(>) :: Color (Y' cs) e -> Color (Y' cs) e -> Bool #

(>=) :: Color (Y' cs) e -> Color (Y' cs) e -> Bool #

max :: Color (Y' cs) e -> Color (Y' cs) e -> Color (Y' cs) e #

min :: Color (Y' cs) e -> Color (Y' cs) e -> Color (Y' cs) e #

Ord e => Ord (Color (BT601_625 l) e) Source #

ITU-R BT.601 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Methods

compare :: Color (BT601_625 l) e -> Color (BT601_625 l) e -> Ordering #

(<) :: Color (BT601_625 l) e -> Color (BT601_625 l) e -> Bool #

(<=) :: Color (BT601_625 l) e -> Color (BT601_625 l) e -> Bool #

(>) :: Color (BT601_625 l) e -> Color (BT601_625 l) e -> Bool #

(>=) :: Color (BT601_625 l) e -> Color (BT601_625 l) e -> Bool #

max :: Color (BT601_625 l) e -> Color (BT601_625 l) e -> Color (BT601_625 l) e #

min :: Color (BT601_625 l) e -> Color (BT601_625 l) e -> Color (BT601_625 l) e #

Ord e => Ord (Color (BT601_525 l) e) Source #

ITU-R BT.601 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Methods

compare :: Color (BT601_525 l) e -> Color (BT601_525 l) e -> Ordering #

(<) :: Color (BT601_525 l) e -> Color (BT601_525 l) e -> Bool #

(<=) :: Color (BT601_525 l) e -> Color (BT601_525 l) e -> Bool #

(>) :: Color (BT601_525 l) e -> Color (BT601_525 l) e -> Bool #

(>=) :: Color (BT601_525 l) e -> Color (BT601_525 l) e -> Bool #

max :: Color (BT601_525 l) e -> Color (BT601_525 l) e -> Color (BT601_525 l) e #

min :: Color (BT601_525 l) e -> Color (BT601_525 l) e -> Color (BT601_525 l) e #

Ord e => Ord (Color (BT709 l) e) Source #

ITU-R BT.709 color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec709

Methods

compare :: Color (BT709 l) e -> Color (BT709 l) e -> Ordering #

(<) :: Color (BT709 l) e -> Color (BT709 l) e -> Bool #

(<=) :: Color (BT709 l) e -> Color (BT709 l) e -> Bool #

(>) :: Color (BT709 l) e -> Color (BT709 l) e -> Bool #

(>=) :: Color (BT709 l) e -> Color (BT709 l) e -> Bool #

max :: Color (BT709 l) e -> Color (BT709 l) e -> Color (BT709 l) e #

min :: Color (BT709 l) e -> Color (BT709 l) e -> Color (BT709 l) e #

Ord e => Ord (Color (AdobeRGB l) e) Source #

AdobeRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.AdobeRGB

Methods

compare :: Color (AdobeRGB l) e -> Color (AdobeRGB l) e -> Ordering #

(<) :: Color (AdobeRGB l) e -> Color (AdobeRGB l) e -> Bool #

(<=) :: Color (AdobeRGB l) e -> Color (AdobeRGB l) e -> Bool #

(>) :: Color (AdobeRGB l) e -> Color (AdobeRGB l) e -> Bool #

(>=) :: Color (AdobeRGB l) e -> Color (AdobeRGB l) e -> Bool #

max :: Color (AdobeRGB l) e -> Color (AdobeRGB l) e -> Color (AdobeRGB l) e #

min :: Color (AdobeRGB l) e -> Color (AdobeRGB l) e -> Color (AdobeRGB l) e #

Ord e => Ord (Color (AdobeRGB i l) e) Source #

AdobeRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.AdobeRGB

Methods

compare :: Color (AdobeRGB i l) e -> Color (AdobeRGB i l) e -> Ordering #

(<) :: Color (AdobeRGB i l) e -> Color (AdobeRGB i l) e -> Bool #

(<=) :: Color (AdobeRGB i l) e -> Color (AdobeRGB i l) e -> Bool #

(>) :: Color (AdobeRGB i l) e -> Color (AdobeRGB i l) e -> Bool #

(>=) :: Color (AdobeRGB i l) e -> Color (AdobeRGB i l) e -> Bool #

max :: Color (AdobeRGB i l) e -> Color (AdobeRGB i l) e -> Color (AdobeRGB i l) e #

min :: Color (AdobeRGB i l) e -> Color (AdobeRGB i l) e -> Color (AdobeRGB i l) e #

Ord e => Ord (Color (SRGB l) e) Source #

SRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.SRGB

Methods

compare :: Color (SRGB l) e -> Color (SRGB l) e -> Ordering #

(<) :: Color (SRGB l) e -> Color (SRGB l) e -> Bool #

(<=) :: Color (SRGB l) e -> Color (SRGB l) e -> Bool #

(>) :: Color (SRGB l) e -> Color (SRGB l) e -> Bool #

(>=) :: Color (SRGB l) e -> Color (SRGB l) e -> Bool #

max :: Color (SRGB l) e -> Color (SRGB l) e -> Color (SRGB l) e #

min :: Color (SRGB l) e -> Color (SRGB l) e -> Color (SRGB l) e #

Ord e => Ord (Color (SRGB i l) e) Source #

SRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.SRGB

Methods

compare :: Color (SRGB i l) e -> Color (SRGB i l) e -> Ordering #

(<) :: Color (SRGB i l) e -> Color (SRGB i l) e -> Bool #

(<=) :: Color (SRGB i l) e -> Color (SRGB i l) e -> Bool #

(>) :: Color (SRGB i l) e -> Color (SRGB i l) e -> Bool #

(>=) :: Color (SRGB i l) e -> Color (SRGB i l) e -> Bool #

max :: Color (SRGB i l) e -> Color (SRGB i l) e -> Color (SRGB i l) e #

min :: Color (SRGB i l) e -> Color (SRGB i l) e -> Color (SRGB i l) e #

Ord e => Ord (Color (Y'CbCr cs) e) Source # 
Instance details

Defined in Graphics.Color.Space.RGB.Alternative.YCbCr

Methods

compare :: Color (Y'CbCr cs) e -> Color (Y'CbCr cs) e -> Ordering #

(<) :: Color (Y'CbCr cs) e -> Color (Y'CbCr cs) e -> Bool #

(<=) :: Color (Y'CbCr cs) e -> Color (Y'CbCr cs) e -> Bool #

(>) :: Color (Y'CbCr cs) e -> Color (Y'CbCr cs) e -> Bool #

(>=) :: Color (Y'CbCr cs) e -> Color (Y'CbCr cs) e -> Bool #

max :: Color (Y'CbCr cs) e -> Color (Y'CbCr cs) e -> Color (Y'CbCr cs) e #

min :: Color (Y'CbCr cs) e -> Color (Y'CbCr cs) e -> Color (Y'CbCr cs) e #

Ord e => Ord (Color (CMYK cs) e) Source #

CMYK representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.CMYK

Methods

compare :: Color (CMYK cs) e -> Color (CMYK cs) e -> Ordering #

(<) :: Color (CMYK cs) e -> Color (CMYK cs) e -> Bool #

(<=) :: Color (CMYK cs) e -> Color (CMYK cs) e -> Bool #

(>) :: Color (CMYK cs) e -> Color (CMYK cs) e -> Bool #

(>=) :: Color (CMYK cs) e -> Color (CMYK cs) e -> Bool #

max :: Color (CMYK cs) e -> Color (CMYK cs) e -> Color (CMYK cs) e #

min :: Color (CMYK cs) e -> Color (CMYK cs) e -> Color (CMYK cs) e #

(ColorModel cs e, cs ~ Opaque (Alpha cs)) => Show (Color (Alpha cs) e) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

showsPrec :: Int -> Color (Alpha cs) e -> ShowS #

show :: Color (Alpha cs) e -> String #

showList :: [Color (Alpha cs) e] -> ShowS #

Elevator e => Show (Color LCH e) Source #

LCH color model

Instance details

Defined in Graphics.Color.Model.LCH

Methods

showsPrec :: Int -> Color LCH e -> ShowS #

show :: Color LCH e -> String #

showList :: [Color LCH e] -> ShowS #

Elevator e => Show (Color RGB e) Source #

RGB color model

Instance details

Defined in Graphics.Color.Model.RGB

Methods

showsPrec :: Int -> Color RGB e -> ShowS #

show :: Color RGB e -> String #

showList :: [Color RGB e] -> ShowS #

Elevator e => Show (Color HSV e) Source #

HSV color model

Instance details

Defined in Graphics.Color.Model.HSV

Methods

showsPrec :: Int -> Color HSV e -> ShowS #

show :: Color HSV e -> String #

showList :: [Color HSV e] -> ShowS #

Elevator e => Show (Color HSL e) Source #

HSL color model

Instance details

Defined in Graphics.Color.Model.HSL

Methods

showsPrec :: Int -> Color HSL e -> ShowS #

show :: Color HSL e -> String #

showList :: [Color HSL e] -> ShowS #

Elevator e => Show (Color HSI e) Source #

HSI color model

Instance details

Defined in Graphics.Color.Model.HSI

Methods

showsPrec :: Int -> Color HSI e -> ShowS #

show :: Color HSI e -> String #

showList :: [Color HSI e] -> ShowS #

Elevator e => Show (Color CMYK e) Source #

CMYK color model

Instance details

Defined in Graphics.Color.Model.CMYK

Methods

showsPrec :: Int -> Color CMYK e -> ShowS #

show :: Color CMYK e -> String #

showList :: [Color CMYK e] -> ShowS #

Elevator e => Show (Color X e) Source #

X color model

Instance details

Defined in Graphics.Color.Model.X

Methods

showsPrec :: Int -> Color X e -> ShowS #

show :: Color X e -> String #

showList :: [Color X e] -> ShowS #

Elevator e => Show (Color YCbCr e) Source #

YCbCr color model

Instance details

Defined in Graphics.Color.Model.YCbCr

Methods

showsPrec :: Int -> Color YCbCr e -> ShowS #

show :: Color YCbCr e -> String #

showList :: [Color YCbCr e] -> ShowS #

(Illuminant i, Elevator e) => Show (Color (Y i) e) Source #

Y - relative luminance of a color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

showsPrec :: Int -> Color (Y i) e -> ShowS #

show :: Color (Y i) e -> String #

showList :: [Color (Y i) e] -> ShowS #

(Illuminant i, Elevator e) => Show (Color (CIExyY i) e) Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

showsPrec :: Int -> Color (CIExyY i) e -> ShowS #

show :: Color (CIExyY i) e -> String #

showList :: [Color (CIExyY i) e] -> ShowS #

(Illuminant i, Elevator e) => Show (Color (XYZ i) e) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

showsPrec :: Int -> Color (XYZ i) e -> ShowS #

show :: Color (XYZ i) e -> String #

showList :: [Color (XYZ i) e] -> ShowS #

(Illuminant i, Elevator e) => Show (Color (LUV i) e) Source #

CIE1976 LUV color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV

Methods

showsPrec :: Int -> Color (LUV i) e -> ShowS #

show :: Color (LUV i) e -> String #

showList :: [Color (LUV i) e] -> ShowS #

(Illuminant i, Elevator e) => Show (Color (LCHuv i) e) Source #

CIE1976 LCHuv color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV.LCH

Methods

showsPrec :: Int -> Color (LCHuv i) e -> ShowS #

show :: Color (LCHuv i) e -> String #

showList :: [Color (LCHuv i) e] -> ShowS #

(Illuminant i, Elevator e) => Show (Color (LAB i) e) Source #

CIE1976 LAB color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB

Methods

showsPrec :: Int -> Color (LAB i) e -> ShowS #

show :: Color (LAB i) e -> String #

showList :: [Color (LAB i) e] -> ShowS #

(Illuminant i, Elevator e) => Show (Color (LCHab i) e) Source #

CIE1976 LCHab color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB.LCH

Methods

showsPrec :: Int -> Color (LCHab i) e -> ShowS #

show :: Color (LCHab i) e -> String #

showList :: [Color (LCHab i) e] -> ShowS #

(Typeable l, Elevator e) => Show (Color (BT470_625 l) e) Source #

ITU-R BT.470 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Methods

showsPrec :: Int -> Color (BT470_625 l) e -> ShowS #

show :: Color (BT470_625 l) e -> String #

showList :: [Color (BT470_625 l) e] -> ShowS #

(Typeable l, Elevator e) => Show (Color (BT470_525 l) e) Source #

ITU-R BT.470 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Methods

showsPrec :: Int -> Color (BT470_525 l) e -> ShowS #

show :: Color (BT470_525 l) e -> String #

showList :: [Color (BT470_525 l) e] -> ShowS #

ColorModel cs e => Show (Color (HSV cs) e) Source #

HSV representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSV

Methods

showsPrec :: Int -> Color (HSV cs) e -> ShowS #

show :: Color (HSV cs) e -> String #

showList :: [Color (HSV cs) e] -> ShowS #

ColorModel cs e => Show (Color (HSL cs) e) Source #

HSL representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSL

Methods

showsPrec :: Int -> Color (HSL cs) e -> ShowS #

show :: Color (HSL cs) e -> String #

showList :: [Color (HSL cs) e] -> ShowS #

ColorModel cs e => Show (Color (HSI cs) e) Source #

HSI representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSI

Methods

showsPrec :: Int -> Color (HSI cs) e -> ShowS #

show :: Color (HSI cs) e -> String #

showList :: [Color (HSI cs) e] -> ShowS #

(Typeable l, Elevator e) => Show (Color (CIERGB l) e) Source #

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Methods

showsPrec :: Int -> Color (CIERGB l) e -> ShowS #

show :: Color (CIERGB l) e -> String #

showList :: [Color (CIERGB l) e] -> ShowS #

(Typeable l, Illuminant i, Elevator e) => Show (Color (CIERGB i l) e) Source #

CIERGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.CIERGB

Methods

showsPrec :: Int -> Color (CIERGB i l) e -> ShowS #

show :: Color (CIERGB i l) e -> String #

showList :: [Color (CIERGB i l) e] -> ShowS #

(Typeable cs, Elevator e) => Show (Color (Y' cs) e) Source #

Y` - as a color model

Instance details

Defined in Graphics.Color.Space.RGB.Luma

Methods

showsPrec :: Int -> Color (Y' cs) e -> ShowS #

show :: Color (Y' cs) e -> String #

showList :: [Color (Y' cs) e] -> ShowS #

(Typeable l, Elevator e) => Show (Color (BT601_625 l) e) Source #

ITU-R BT.601 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Methods

showsPrec :: Int -> Color (BT601_625 l) e -> ShowS #

show :: Color (BT601_625 l) e -> String #

showList :: [Color (BT601_625 l) e] -> ShowS #

(Typeable l, Elevator e) => Show (Color (BT601_525 l) e) Source #

ITU-R BT.601 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Methods

showsPrec :: Int -> Color (BT601_525 l) e -> ShowS #

show :: Color (BT601_525 l) e -> String #

showList :: [Color (BT601_525 l) e] -> ShowS #

(Typeable l, Elevator e) => Show (Color (BT709 l) e) Source #

ITU-R BT.709 color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec709

Methods

showsPrec :: Int -> Color (BT709 l) e -> ShowS #

show :: Color (BT709 l) e -> String #

showList :: [Color (BT709 l) e] -> ShowS #

(Typeable l, Elevator e) => Show (Color (AdobeRGB l) e) Source #

AdobeRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.AdobeRGB

Methods

showsPrec :: Int -> Color (AdobeRGB l) e -> ShowS #

show :: Color (AdobeRGB l) e -> String #

showList :: [Color (AdobeRGB l) e] -> ShowS #

(Typeable l, Illuminant i, Elevator e) => Show (Color (AdobeRGB i l) e) Source #

AdobeRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.AdobeRGB

Methods

showsPrec :: Int -> Color (AdobeRGB i l) e -> ShowS #

show :: Color (AdobeRGB i l) e -> String #

showList :: [Color (AdobeRGB i l) e] -> ShowS #

(Typeable l, Elevator e) => Show (Color (SRGB l) e) Source #

SRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.SRGB

Methods

showsPrec :: Int -> Color (SRGB l) e -> ShowS #

show :: Color (SRGB l) e -> String #

showList :: [Color (SRGB l) e] -> ShowS #

(Typeable l, Illuminant i, Elevator e) => Show (Color (SRGB i l) e) Source #

SRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.SRGB

Methods

showsPrec :: Int -> Color (SRGB i l) e -> ShowS #

show :: Color (SRGB i l) e -> String #

showList :: [Color (SRGB i l) e] -> ShowS #

(Typeable cs, ColorModel (cs 'NonLinear) e, Elevator e) => Show (Color (Y'CbCr cs) e) Source # 
Instance details

Defined in Graphics.Color.Space.RGB.Alternative.YCbCr

Methods

showsPrec :: Int -> Color (Y'CbCr cs) e -> ShowS #

show :: Color (Y'CbCr cs) e -> String #

showList :: [Color (Y'CbCr cs) e] -> ShowS #

ColorModel cs e => Show (Color (CMYK cs) e) Source #

CMYK representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.CMYK

Methods

showsPrec :: Int -> Color (CMYK cs) e -> ShowS #

show :: Color (CMYK cs) e -> String #

showList :: [Color (CMYK cs) e] -> ShowS #

(Storable (Color cs e), Storable e) => Storable (Color (Alpha cs) e) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

sizeOf :: Color (Alpha cs) e -> Int #

alignment :: Color (Alpha cs) e -> Int #

peekElemOff :: Ptr (Color (Alpha cs) e) -> Int -> IO (Color (Alpha cs) e) #

pokeElemOff :: Ptr (Color (Alpha cs) e) -> Int -> Color (Alpha cs) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (Alpha cs) e) #

pokeByteOff :: Ptr b -> Int -> Color (Alpha cs) e -> IO () #

peek :: Ptr (Color (Alpha cs) e) -> IO (Color (Alpha cs) e) #

poke :: Ptr (Color (Alpha cs) e) -> Color (Alpha cs) e -> IO () #

Storable e => Storable (Color LCH e) Source #

LCH color model

Instance details

Defined in Graphics.Color.Model.LCH

Methods

sizeOf :: Color LCH e -> Int #

alignment :: Color LCH e -> Int #

peekElemOff :: Ptr (Color LCH e) -> Int -> IO (Color LCH e) #

pokeElemOff :: Ptr (Color LCH e) -> Int -> Color LCH e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color LCH e) #

pokeByteOff :: Ptr b -> Int -> Color LCH e -> IO () #

peek :: Ptr (Color LCH e) -> IO (Color LCH e) #

poke :: Ptr (Color LCH e) -> Color LCH e -> IO () #

Storable e => Storable (Color RGB e) Source #

RGB color model

Instance details

Defined in Graphics.Color.Model.RGB

Methods

sizeOf :: Color RGB e -> Int #

alignment :: Color RGB e -> Int #

peekElemOff :: Ptr (Color RGB e) -> Int -> IO (Color RGB e) #

pokeElemOff :: Ptr (Color RGB e) -> Int -> Color RGB e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color RGB e) #

pokeByteOff :: Ptr b -> Int -> Color RGB e -> IO () #

peek :: Ptr (Color RGB e) -> IO (Color RGB e) #

poke :: Ptr (Color RGB e) -> Color RGB e -> IO () #

Storable e => Storable (Color HSV e) Source #

HSV color model

Instance details

Defined in Graphics.Color.Model.HSV

Methods

sizeOf :: Color HSV e -> Int #

alignment :: Color HSV e -> Int #

peekElemOff :: Ptr (Color HSV e) -> Int -> IO (Color HSV e) #

pokeElemOff :: Ptr (Color HSV e) -> Int -> Color HSV e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color HSV e) #

pokeByteOff :: Ptr b -> Int -> Color HSV e -> IO () #

peek :: Ptr (Color HSV e) -> IO (Color HSV e) #

poke :: Ptr (Color HSV e) -> Color HSV e -> IO () #

Storable e => Storable (Color HSL e) Source #

HSL color model

Instance details

Defined in Graphics.Color.Model.HSL

Methods

sizeOf :: Color HSL e -> Int #

alignment :: Color HSL e -> Int #

peekElemOff :: Ptr (Color HSL e) -> Int -> IO (Color HSL e) #

pokeElemOff :: Ptr (Color HSL e) -> Int -> Color HSL e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color HSL e) #

pokeByteOff :: Ptr b -> Int -> Color HSL e -> IO () #

peek :: Ptr (Color HSL e) -> IO (Color HSL e) #

poke :: Ptr (Color HSL e) -> Color HSL e -> IO () #

Storable e => Storable (Color HSI e) Source #

HSI color model

Instance details

Defined in Graphics.Color.Model.HSI

Methods

sizeOf :: Color HSI e -> Int #

alignment :: Color HSI e -> Int #

peekElemOff :: Ptr (Color HSI e) -> Int -> IO (Color HSI e) #

pokeElemOff :: Ptr (Color HSI e) -> Int -> Color HSI e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color HSI e) #

pokeByteOff :: Ptr b -> Int -> Color HSI e -> IO () #

peek :: Ptr (Color HSI e) -> IO (Color HSI e) #

poke :: Ptr (Color HSI e) -> Color HSI e -> IO () #

Storable e => Storable (Color CMYK e) Source #

CMYK color model

Instance details

Defined in Graphics.Color.Model.CMYK

Methods

sizeOf :: Color CMYK e -> Int #

alignment :: Color CMYK e -> Int #

peekElemOff :: Ptr (Color CMYK e) -> Int -> IO (Color CMYK e) #

pokeElemOff :: Ptr (Color CMYK e) -> Int -> Color CMYK e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color CMYK e) #

pokeByteOff :: Ptr b -> Int -> Color CMYK e -> IO () #

peek :: Ptr (Color CMYK e) -> IO (Color CMYK e) #

poke :: Ptr (Color CMYK e) -> Color CMYK e -> IO () #

Storable e => Storable (Color X e) Source #

X color model

Instance details

Defined in Graphics.Color.Model.X

Methods

sizeOf :: Color X e -> Int #

alignment :: Color X e -> Int #

peekElemOff :: Ptr (Color X e) -> Int -> IO (Color X e) #

pokeElemOff :: Ptr (Color X e) -> Int -> Color X e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color X e) #

pokeByteOff :: Ptr b -> Int -> Color X e -> IO () #

peek :: Ptr (Color X e) -> IO (Color X e) #

poke :: Ptr (Color X e) -> Color X e -> IO () #

Storable e => Storable (Color YCbCr e) Source #

YCbCr color model

Instance details

Defined in Graphics.Color.Model.YCbCr

Methods

sizeOf :: Color YCbCr e -> Int #

alignment :: Color YCbCr e -> Int #

peekElemOff :: Ptr (Color YCbCr e) -> Int -> IO (Color YCbCr e) #

pokeElemOff :: Ptr (Color YCbCr e) -> Int -> Color YCbCr e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color YCbCr e) #

pokeByteOff :: Ptr b -> Int -> Color YCbCr e -> IO () #

peek :: Ptr (Color YCbCr e) -> IO (Color YCbCr e) #

poke :: Ptr (Color YCbCr e) -> Color YCbCr e -> IO () #

Storable e => Storable (Color (Y i) e) Source #

Y - relative luminance of a color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

sizeOf :: Color (Y i) e -> Int #

alignment :: Color (Y i) e -> Int #

peekElemOff :: Ptr (Color (Y i) e) -> Int -> IO (Color (Y i) e) #

pokeElemOff :: Ptr (Color (Y i) e) -> Int -> Color (Y i) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (Y i) e) #

pokeByteOff :: Ptr b -> Int -> Color (Y i) e -> IO () #

peek :: Ptr (Color (Y i) e) -> IO (Color (Y i) e) #

poke :: Ptr (Color (Y i) e) -> Color (Y i) e -> IO () #

Storable e => Storable (Color (CIExyY i) e) Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

sizeOf :: Color (CIExyY i) e -> Int #

alignment :: Color (CIExyY i) e -> Int #

peekElemOff :: Ptr (Color (CIExyY i) e) -> Int -> IO (Color (CIExyY i) e) #

pokeElemOff :: Ptr (Color (CIExyY i) e) -> Int -> Color (CIExyY i) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (CIExyY i) e) #

pokeByteOff :: Ptr b -> Int -> Color (CIExyY i) e -> IO () #

peek :: Ptr (Color (CIExyY i) e) -> IO (Color (CIExyY i) e) #

poke :: Ptr (Color (CIExyY i) e) -> Color (CIExyY i) e -> IO () #

Storable e => Storable (Color (XYZ i) e) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

sizeOf :: Color (XYZ i) e -> Int #

alignment :: Color (XYZ i) e -> Int #

peekElemOff :: Ptr (Color (XYZ i) e) -> Int -> IO (Color (XYZ i) e) #

pokeElemOff :: Ptr (Color (XYZ i) e) -> Int -> Color (XYZ i) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (XYZ i) e) #

pokeByteOff :: Ptr b -> Int -> Color (XYZ i) e -> IO () #

peek :: Ptr (Color (XYZ i) e) -> IO (Color (XYZ i) e) #

poke :: Ptr (Color (XYZ i) e) -> Color (XYZ i) e -> IO () #

Storable e => Storable (Color (LUV i) e) Source #

CIE1976 LUV color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV

Methods

sizeOf :: Color (LUV i) e -> Int #

alignment :: Color (LUV i) e -> Int #

peekElemOff :: Ptr (Color (LUV i) e) -> Int -> IO (Color (LUV i) e) #

pokeElemOff :: Ptr (Color (LUV i) e) -> Int -> Color (LUV i) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (LUV i) e) #

pokeByteOff :: Ptr b -> Int -> Color (LUV i) e -> IO () #

peek :: Ptr (Color (LUV i) e) -> IO (Color (LUV i) e) #

poke :: Ptr (Color (LUV i) e) -> Color (LUV i) e -> IO () #

Storable e => Storable (Color (LCHuv i) e) Source #

CIE1976 LCHuv color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV.LCH

Methods

sizeOf :: Color (LCHuv i) e -> Int #

alignment :: Color (LCHuv i) e -> Int #

peekElemOff :: Ptr (Color (LCHuv i) e) -> Int -> IO (Color (LCHuv i) e) #

pokeElemOff :: Ptr (Color (LCHuv i) e) -> Int -> Color (LCHuv i) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (LCHuv i) e) #

pokeByteOff :: Ptr b -> Int -> Color (LCHuv i) e -> IO () #

peek :: Ptr (Color (LCHuv i) e) -> IO (Color (LCHuv i) e) #

poke :: Ptr (Color (LCHuv i) e) -> Color (LCHuv i) e -> IO () #

Storable e => Storable (Color (LAB i) e) Source #

CIE1976 LAB color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB

Methods

sizeOf :: Color (LAB i) e -> Int #

alignment :: Color (LAB i) e -> Int #

peekElemOff :: Ptr (Color (LAB i) e) -> Int -> IO (Color (LAB i) e) #

pokeElemOff :: Ptr (Color (LAB i) e) -> Int -> Color (LAB i) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (LAB i) e) #

pokeByteOff :: Ptr b -> Int -> Color (LAB i) e -> IO () #

peek :: Ptr (Color (LAB i) e) -> IO (Color (LAB i) e) #

poke :: Ptr (Color (LAB i) e) -> Color (LAB i) e -> IO () #

Storable e => Storable (Color (LCHab i) e) Source #

CIE1976 LCHab color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB.LCH

Methods

sizeOf :: Color (LCHab i) e -> Int #

alignment :: Color (LCHab i) e -> Int #

peekElemOff :: Ptr (Color (LCHab i) e) -> Int -> IO (Color (LCHab i) e) #

pokeElemOff :: Ptr (Color (LCHab i) e) -> Int -> Color (LCHab i) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (LCHab i) e) #

pokeByteOff :: Ptr b -> Int -> Color (LCHab i) e -> IO () #

peek :: Ptr (Color (LCHab i) e) -> IO (Color (LCHab i) e) #

poke :: Ptr (Color (LCHab i) e) -> Color (LCHab i) e -> IO () #

Storable e => Storable (Color (BT470_625 l) e) Source #

ITU-R BT.470 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Methods

sizeOf :: Color (BT470_625 l) e -> Int #

alignment :: Color (BT470_625 l) e -> Int #

peekElemOff :: Ptr (Color (BT470_625 l) e) -> Int -> IO (Color (BT470_625 l) e) #

pokeElemOff :: Ptr (Color (BT470_625 l) e) -> Int -> Color (BT470_625 l) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (BT470_625 l) e) #

pokeByteOff :: Ptr b -> Int -> Color (BT470_625 l) e -> IO () #

peek :: Ptr (Color (BT470_625 l) e) -> IO (Color (BT470_625 l) e) #

poke :: Ptr (Color (BT470_625 l) e) -> Color (BT470_625 l) e -> IO () #

Storable e => Storable (Color (BT470_525 l) e) Source #

ITU-R BT.470 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Methods

sizeOf :: Color (BT470_525 l) e -> Int #

alignment :: Color (BT470_525 l) e -> Int #

peekElemOff :: Ptr (Color (BT470_525 l) e) -> Int -> IO (Color (BT470_525 l) e) #

pokeElemOff :: Ptr (Color (BT470_525 l) e) -> Int -> Color (BT470_525 l) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (BT470_525 l) e) #

pokeByteOff :: Ptr b -> Int -> Color (BT470_525 l) e -> IO () #

peek :: Ptr (Color (BT470_525 l) e) -> IO (Color (BT470_525 l) e) #

poke :: Ptr (Color (BT470_525 l) e) -> Color (BT470_525 l) e -> IO () #

Storable e => Storable (Color (HSV cs) e) Source #

HSV representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSV

Methods

sizeOf :: Color (HSV cs) e -> Int #

alignment :: Color (HSV cs) e -> Int #

peekElemOff :: Ptr (Color (HSV cs) e) -> Int -> IO (Color (HSV cs) e) #

pokeElemOff :: Ptr (Color (HSV cs) e) -> Int -> Color (HSV cs) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (HSV cs) e) #

pokeByteOff :: Ptr b -> Int -> Color (HSV cs) e -> IO () #

peek :: Ptr (Color (HSV cs) e) -> IO (Color (HSV cs) e) #

poke :: Ptr (Color (HSV cs) e) -> Color (HSV cs) e -> IO () #

Storable e => Storable (Color (HSL cs) e) Source #

HSL representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSL

Methods

sizeOf :: Color (HSL cs) e -> Int #

alignment :: Color (HSL cs) e -> Int #

peekElemOff :: Ptr (Color (HSL cs) e) -> Int -> IO (Color (HSL cs) e) #

pokeElemOff :: Ptr (Color (HSL cs) e) -> Int -> Color (HSL cs) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (HSL cs) e) #

pokeByteOff :: Ptr b -> Int -> Color (HSL cs) e -> IO () #

peek :: Ptr (Color (HSL cs) e) -> IO (Color (HSL cs) e) #

poke :: Ptr (Color (HSL cs) e) -> Color (HSL cs) e -> IO () #

Storable e => Storable (Color (HSI cs) e) Source #

HSI representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSI

Methods

sizeOf :: Color (HSI cs) e -> Int #

alignment :: Color (HSI cs) e -> Int #

peekElemOff :: Ptr (Color (HSI cs) e) -> Int -> IO (Color (HSI cs) e) #

pokeElemOff :: Ptr (Color (HSI cs) e) -> Int -> Color (HSI cs) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (HSI cs) e) #

pokeByteOff :: Ptr b -> Int -> Color (HSI cs) e -> IO () #

peek :: Ptr (Color (HSI cs) e) -> IO (Color (HSI cs) e) #

poke :: Ptr (Color (HSI cs) e) -> Color (HSI cs) e -> IO () #

Storable e => Storable (Color (CIERGB l) e) Source #

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Methods

sizeOf :: Color (CIERGB l) e -> Int #

alignment :: Color (CIERGB l) e -> Int #

peekElemOff :: Ptr (Color (CIERGB l) e) -> Int -> IO (Color (CIERGB l) e) #

pokeElemOff :: Ptr (Color (CIERGB l) e) -> Int -> Color (CIERGB l) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (CIERGB l) e) #

pokeByteOff :: Ptr b -> Int -> Color (CIERGB l) e -> IO () #

peek :: Ptr (Color (CIERGB l) e) -> IO (Color (CIERGB l) e) #

poke :: Ptr (Color (CIERGB l) e) -> Color (CIERGB l) e -> IO () #

Storable e => Storable (Color (CIERGB i l) e) Source #

CIERGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.CIERGB

Methods

sizeOf :: Color (CIERGB i l) e -> Int #

alignment :: Color (CIERGB i l) e -> Int #

peekElemOff :: Ptr (Color (CIERGB i l) e) -> Int -> IO (Color (CIERGB i l) e) #

pokeElemOff :: Ptr (Color (CIERGB i l) e) -> Int -> Color (CIERGB i l) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (CIERGB i l) e) #

pokeByteOff :: Ptr b -> Int -> Color (CIERGB i l) e -> IO () #

peek :: Ptr (Color (CIERGB i l) e) -> IO (Color (CIERGB i l) e) #

poke :: Ptr (Color (CIERGB i l) e) -> Color (CIERGB i l) e -> IO () #

Storable e => Storable (Color (Y' cs) e) Source #

Y` - luma of a color space

Instance details

Defined in Graphics.Color.Space.RGB.Luma

Methods

sizeOf :: Color (Y' cs) e -> Int #

alignment :: Color (Y' cs) e -> Int #

peekElemOff :: Ptr (Color (Y' cs) e) -> Int -> IO (Color (Y' cs) e) #

pokeElemOff :: Ptr (Color (Y' cs) e) -> Int -> Color (Y' cs) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (Y' cs) e) #

pokeByteOff :: Ptr b -> Int -> Color (Y' cs) e -> IO () #

peek :: Ptr (Color (Y' cs) e) -> IO (Color (Y' cs) e) #

poke :: Ptr (Color (Y' cs) e) -> Color (Y' cs) e -> IO () #

Storable e => Storable (Color (BT601_625 l) e) Source #

ITU-R BT.601 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Methods

sizeOf :: Color (BT601_625 l) e -> Int #

alignment :: Color (BT601_625 l) e -> Int #

peekElemOff :: Ptr (Color (BT601_625 l) e) -> Int -> IO (Color (BT601_625 l) e) #

pokeElemOff :: Ptr (Color (BT601_625 l) e) -> Int -> Color (BT601_625 l) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (BT601_625 l) e) #

pokeByteOff :: Ptr b -> Int -> Color (BT601_625 l) e -> IO () #

peek :: Ptr (Color (BT601_625 l) e) -> IO (Color (BT601_625 l) e) #

poke :: Ptr (Color (BT601_625 l) e) -> Color (BT601_625 l) e -> IO () #

Storable e => Storable (Color (BT601_525 l) e) Source #

ITU-R BT.601 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Methods

sizeOf :: Color (BT601_525 l) e -> Int #

alignment :: Color (BT601_525 l) e -> Int #

peekElemOff :: Ptr (Color (BT601_525 l) e) -> Int -> IO (Color (BT601_525 l) e) #

pokeElemOff :: Ptr (Color (BT601_525 l) e) -> Int -> Color (BT601_525 l) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (BT601_525 l) e) #

pokeByteOff :: Ptr b -> Int -> Color (BT601_525 l) e -> IO () #

peek :: Ptr (Color (BT601_525 l) e) -> IO (Color (BT601_525 l) e) #

poke :: Ptr (Color (BT601_525 l) e) -> Color (BT601_525 l) e -> IO () #

Storable e => Storable (Color (BT709 l) e) Source #

ITU-R BT.709 color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec709

Methods

sizeOf :: Color (BT709 l) e -> Int #

alignment :: Color (BT709 l) e -> Int #

peekElemOff :: Ptr (Color (BT709 l) e) -> Int -> IO (Color (BT709 l) e) #

pokeElemOff :: Ptr (Color (BT709 l) e) -> Int -> Color (BT709 l) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (BT709 l) e) #

pokeByteOff :: Ptr b -> Int -> Color (BT709 l) e -> IO () #

peek :: Ptr (Color (BT709 l) e) -> IO (Color (BT709 l) e) #

poke :: Ptr (Color (BT709 l) e) -> Color (BT709 l) e -> IO () #

Storable e => Storable (Color (AdobeRGB l) e) Source #

AdobeRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.AdobeRGB

Methods

sizeOf :: Color (AdobeRGB l) e -> Int #

alignment :: Color (AdobeRGB l) e -> Int #

peekElemOff :: Ptr (Color (AdobeRGB l) e) -> Int -> IO (Color (AdobeRGB l) e) #

pokeElemOff :: Ptr (Color (AdobeRGB l) e) -> Int -> Color (AdobeRGB l) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (AdobeRGB l) e) #

pokeByteOff :: Ptr b -> Int -> Color (AdobeRGB l) e -> IO () #

peek :: Ptr (Color (AdobeRGB l) e) -> IO (Color (AdobeRGB l) e) #

poke :: Ptr (Color (AdobeRGB l) e) -> Color (AdobeRGB l) e -> IO () #

Storable e => Storable (Color (AdobeRGB i l) e) Source #

AdobeRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.AdobeRGB

Methods

sizeOf :: Color (AdobeRGB i l) e -> Int #

alignment :: Color (AdobeRGB i l) e -> Int #

peekElemOff :: Ptr (Color (AdobeRGB i l) e) -> Int -> IO (Color (AdobeRGB i l) e) #

pokeElemOff :: Ptr (Color (AdobeRGB i l) e) -> Int -> Color (AdobeRGB i l) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (AdobeRGB i l) e) #

pokeByteOff :: Ptr b -> Int -> Color (AdobeRGB i l) e -> IO () #

peek :: Ptr (Color (AdobeRGB i l) e) -> IO (Color (AdobeRGB i l) e) #

poke :: Ptr (Color (AdobeRGB i l) e) -> Color (AdobeRGB i l) e -> IO () #

Storable e => Storable (Color (SRGB l) e) Source #

SRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.SRGB

Methods

sizeOf :: Color (SRGB l) e -> Int #

alignment :: Color (SRGB l) e -> Int #

peekElemOff :: Ptr (Color (SRGB l) e) -> Int -> IO (Color (SRGB l) e) #

pokeElemOff :: Ptr (Color (SRGB l) e) -> Int -> Color (SRGB l) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (SRGB l) e) #

pokeByteOff :: Ptr b -> Int -> Color (SRGB l) e -> IO () #

peek :: Ptr (Color (SRGB l) e) -> IO (Color (SRGB l) e) #

poke :: Ptr (Color (SRGB l) e) -> Color (SRGB l) e -> IO () #

Storable e => Storable (Color (SRGB i l) e) Source #

SRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.SRGB

Methods

sizeOf :: Color (SRGB i l) e -> Int #

alignment :: Color (SRGB i l) e -> Int #

peekElemOff :: Ptr (Color (SRGB i l) e) -> Int -> IO (Color (SRGB i l) e) #

pokeElemOff :: Ptr (Color (SRGB i l) e) -> Int -> Color (SRGB i l) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (SRGB i l) e) #

pokeByteOff :: Ptr b -> Int -> Color (SRGB i l) e -> IO () #

peek :: Ptr (Color (SRGB i l) e) -> IO (Color (SRGB i l) e) #

poke :: Ptr (Color (SRGB i l) e) -> Color (SRGB i l) e -> IO () #

Storable e => Storable (Color (Y'CbCr cs) e) Source # 
Instance details

Defined in Graphics.Color.Space.RGB.Alternative.YCbCr

Methods

sizeOf :: Color (Y'CbCr cs) e -> Int #

alignment :: Color (Y'CbCr cs) e -> Int #

peekElemOff :: Ptr (Color (Y'CbCr cs) e) -> Int -> IO (Color (Y'CbCr cs) e) #

pokeElemOff :: Ptr (Color (Y'CbCr cs) e) -> Int -> Color (Y'CbCr cs) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (Y'CbCr cs) e) #

pokeByteOff :: Ptr b -> Int -> Color (Y'CbCr cs) e -> IO () #

peek :: Ptr (Color (Y'CbCr cs) e) -> IO (Color (Y'CbCr cs) e) #

poke :: Ptr (Color (Y'CbCr cs) e) -> Color (Y'CbCr cs) e -> IO () #

Storable e => Storable (Color (CMYK cs) e) Source #

CMYK representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.CMYK

Methods

sizeOf :: Color (CMYK cs) e -> Int #

alignment :: Color (CMYK cs) e -> Int #

peekElemOff :: Ptr (Color (CMYK cs) e) -> Int -> IO (Color (CMYK cs) e) #

pokeElemOff :: Ptr (Color (CMYK cs) e) -> Int -> Color (CMYK cs) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (CMYK cs) e) #

pokeByteOff :: Ptr b -> Int -> Color (CMYK cs) e -> IO () #

peek :: Ptr (Color (CMYK cs) e) -> IO (Color (CMYK cs) e) #

poke :: Ptr (Color (CMYK cs) e) -> Color (CMYK cs) e -> IO () #

ColorModel cs e => Default (Color cs e) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

def :: Color cs e #

(ColorModel cs e, NFData e) => NFData (Color cs e) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

Methods

rnf :: Color cs e -> () #

ColorModel cs e => Unbox (Color cs e) Source #

Unboxing of a Color.

Instance details

Defined in Graphics.Color.Model.Internal

newtype Color LCH e Source #

LCH color model

Instance details

Defined in Graphics.Color.Model.LCH

newtype Color LCH e = LCH (V3 e)
newtype Color RGB e Source #

RGB color model

Instance details

Defined in Graphics.Color.Model.RGB

newtype Color RGB e = RGB (V3 e)
newtype Color HSV e Source #

HSV color model

Instance details

Defined in Graphics.Color.Model.HSV

newtype Color HSV e = HSV (V3 e)
newtype Color HSL e Source #

HSL color model

Instance details

Defined in Graphics.Color.Model.HSL

newtype Color HSL e = HSL (V3 e)
newtype Color HSI e Source #

HSI color model

Instance details

Defined in Graphics.Color.Model.HSI

newtype Color HSI e = HSI (V3 e)
data Color CMYK e Source #

CMYK color model

Instance details

Defined in Graphics.Color.Model.CMYK

data Color CMYK e = ColorCMYK !e !e !e !e
newtype Color X e Source #

A single channel color X

Instance details

Defined in Graphics.Color.Model.X

newtype Color X e = X e
newtype Color YCbCr e Source #

YCbCr color model

Instance details

Defined in Graphics.Color.Model.YCbCr

newtype Color YCbCr e = YCbCr (V3 e)
newtype MVector s (Color cs e) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

newtype MVector s (Color cs e) = MV_Color (MVector s (Components cs e))
data Color (Alpha cs) e Source # 
Instance details

Defined in Graphics.Color.Model.Internal

data Color (Alpha cs) e = Alpha {}
newtype Color (BT470_625 l) e Source # 
Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

newtype Color (BT470_625 l) e = BT470_625 (Color RGB e)
newtype Color (BT470_525 l) e Source # 
Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

newtype Color (BT470_525 l) e = BT470_525 (Color RGB e)
newtype Color (CIERGB l) e Source #

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

newtype Color (CIERGB l) e = CIERGB (Color RGB e)
newtype Color (Y' cs) e Source #

Constructor for Luma.

Instance details

Defined in Graphics.Color.Space.RGB.Luma

newtype Color (Y' cs) e = Luma (Color X e)
newtype Color (BT601_625 l) e Source # 
Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

newtype Color (BT601_625 l) e = BT601_625 (Color RGB e)
newtype Color (BT601_525 l) e Source # 
Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

newtype Color (BT601_525 l) e = BT601_525 (Color RGB e)
newtype Color (BT709 l) e Source # 
Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec709

newtype Color (BT709 l) e = BT709 (Color RGB e)
newtype Color (AdobeRGB l) e Source # 
Instance details

Defined in Graphics.Color.Space.RGB.AdobeRGB

newtype Color (AdobeRGB l) e = AdobeRGB (Color RGB e)
newtype Color (SRGB l) e Source # 
Instance details

Defined in Graphics.Color.Space.RGB.SRGB

newtype Color (SRGB l) e = SRGB (Color RGB e)
newtype Color (Y'CbCr cs) e Source #

Constructor for Y'CbCr color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.YCbCr

newtype Color (Y'CbCr cs) e = Y'CbCr (Color YCbCr e)
newtype Vector (Color cs e) Source # 
Instance details

Defined in Graphics.Color.Model.Internal

newtype Vector (Color cs e) = V_Color (Vector (Components cs e))
newtype Color (Y i) e Source #

Luminance Y

Instance details

Defined in Graphics.Color.Space.Internal

newtype Color (Y i) e = Luminance (Color X e)
newtype Color (CIExyY i) e Source #

CIE1931 CIExyY color space

Instance details

Defined in Graphics.Color.Space.Internal

newtype Color (CIExyY i) e = CIExyY (V2 e)
newtype Color (XYZ i) e Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

newtype Color (XYZ i) e = XYZ (V3 e)
newtype Color (LUV i) e Source #

Color in CIE L*u*v* color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV

newtype Color (LUV i) e = LUV (V3 e)
newtype Color (LCHuv i) e Source #

Color in CIE L*C*Huv color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LUV.LCH

newtype Color (LCHuv i) e = LCHuv (Color LCH e)
newtype Color (LAB i) e Source #

Color in CIE L*a*b* color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB

newtype Color (LAB i) e = LAB (V3 e)
newtype Color (LCHab i) e Source #

Color in CIE L*C*Hab color space

Instance details

Defined in Graphics.Color.Space.CIE1976.LAB.LCH

newtype Color (LCHab i) e = LCHab (Color LCH e)
newtype Color (HSV cs) e Source #

HSV representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSV

newtype Color (HSV cs) e = HSV (Color HSV e)
newtype Color (HSL cs) e Source #

HSL representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSL

newtype Color (HSL cs) e = HSL (Color HSL e)
newtype Color (HSI cs) e Source #

HSI representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSI

newtype Color (HSI cs) e = HSI (Color HSI e)
newtype Color (CMYK cs) e Source #

CMYK representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.CMYK

newtype Color (CMYK cs) e = CMYK (Color CMYK e)
newtype Color (CIERGB i l) e Source #

CIERGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.CIERGB

newtype Color (CIERGB i l) e = CIERGB (Color RGB e)
newtype Color (AdobeRGB i l) e Source #

AdobeRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.AdobeRGB

newtype Color (AdobeRGB i l) e = AdobeRGB (Color RGB e)
newtype Color (SRGB i l) e Source #

SRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.SRGB

newtype Color (SRGB i l) e = SRGB (Color RGB e)

class (Illuminant i, ColorModel (BaseModel cs) e, ColorModel cs e) => ColorSpace cs (i :: k) e | cs -> i where Source #

Minimal complete definition

toBaseSpace, fromBaseSpace, luminance

Associated Types

type BaseModel cs :: Type Source #

type BaseSpace cs :: Type Source #

type BaseSpace cs = cs

Methods

toBaseModel :: Color cs e -> Color (BaseModel cs) e Source #

Drop color space down to the base color model

default toBaseModel :: Coercible (Color cs e) (Color (BaseModel cs) e) => Color cs e -> Color (BaseModel cs) e Source #

fromBaseModel :: Color (BaseModel cs) e -> Color cs e Source #

Promote color model to a color space

default fromBaseModel :: Coercible (Color (BaseModel cs) e) (Color cs e) => Color (BaseModel cs) e -> Color cs e Source #

toBaseSpace :: ColorSpace (BaseSpace cs) i e => Color cs e -> Color (BaseSpace cs) e Source #

fromBaseSpace :: ColorSpace (BaseSpace cs) i e => Color (BaseSpace cs) e -> Color cs e Source #

luminance :: (Elevator a, RealFloat a) => Color cs e -> Color (Y i) a Source #

Get the relative luminance of a color

Since: 0.1.0

toColorXYZ :: (Elevator a, RealFloat a) => Color cs e -> Color (XYZ i) a Source #

default toColorXYZ :: (ColorSpace (BaseSpace cs) i e, Elevator a, RealFloat a) => Color cs e -> Color (XYZ i) a Source #

fromColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) a -> Color cs e Source #

default fromColorXYZ :: (ColorSpace (BaseSpace cs) i e, Elevator a, RealFloat a) => Color (XYZ i) a -> Color cs e Source #

Instances

Instances details
(ColorSpace cs i e, ColorSpace (BaseSpace cs) i e, cs ~ Opaque (Alpha cs), BaseModel cs ~ Opaque (Alpha (BaseModel cs))) => ColorSpace (Alpha cs) (i :: k) e Source # 
Instance details

Defined in Graphics.Color.Space.Internal

Associated Types

type BaseModel (Alpha cs) Source #

type BaseSpace (Alpha cs) Source #

Methods

toBaseModel :: Color (Alpha cs) e -> Color (BaseModel (Alpha cs)) e Source #

fromBaseModel :: Color (BaseModel (Alpha cs)) e -> Color (Alpha cs) e Source #

toBaseSpace :: Color (Alpha cs) e -> Color (BaseSpace (Alpha cs)) e Source #

fromBaseSpace :: Color (BaseSpace (Alpha cs)) e -> Color (Alpha cs) e Source #

luminance :: (Elevator a, RealFloat a) => Color (Alpha cs) e -> Color (Y i) a Source #

toColorXYZ :: (Elevator a, RealFloat a) => Color (Alpha cs) e -> Color (XYZ i) a Source #

fromColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) a -> Color (Alpha cs) e Source #

(Typeable cs, Illuminant i, ColorSpace (cs 'Linear) i e, ColorSpace (cs 'NonLinear) i e, Luma cs, RedGreenBlue cs i) => ColorSpace (Y' cs) (i :: k) e Source # 
Instance details

Defined in Graphics.Color.Space.RGB.Luma

Associated Types

type BaseModel (Y' cs) Source #

type BaseSpace (Y' cs) Source #

Methods

toBaseModel :: Color (Y' cs) e -> Color (BaseModel (Y' cs)) e Source #

fromBaseModel :: Color (BaseModel (Y' cs)) e -> Color (Y' cs) e Source #

toBaseSpace :: Color (Y' cs) e -> Color (BaseSpace (Y' cs)) e Source #

fromBaseSpace :: Color (BaseSpace (Y' cs)) e -> Color (Y' cs) e Source #

luminance :: (Elevator a, RealFloat a) => Color (Y' cs) e -> Color (Y i) a Source #

toColorXYZ :: (Elevator a, RealFloat a) => Color (Y' cs) e -> Color (XYZ i) a Source #

fromColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) a -> Color (Y' cs) e Source #

(Typeable cs, Luma (cs i), ColorSpace (cs i 'NonLinear) i e, RedGreenBlue (cs i) i) => ColorSpace (Y'CbCr (cs i)) (i :: k) e Source # 
Instance details

Defined in Graphics.Color.Space.RGB.Alternative.YCbCr

Associated Types

type BaseModel (Y'CbCr (cs i)) Source #

type BaseSpace (Y'CbCr (cs i)) Source #

Methods

toBaseModel :: Color (Y'CbCr (cs i)) e -> Color (BaseModel (Y'CbCr (cs i))) e Source #

fromBaseModel :: Color (BaseModel (Y'CbCr (cs i))) e -> Color (Y'CbCr (cs i)) e Source #

toBaseSpace :: Color (Y'CbCr (cs i)) e -> Color (BaseSpace (Y'CbCr (cs i))) e Source #

fromBaseSpace :: Color (BaseSpace (Y'CbCr (cs i))) e -> Color (Y'CbCr (cs i)) e Source #

luminance :: (Elevator a, RealFloat a) => Color (Y'CbCr (cs i)) e -> Color (Y i) a Source #

toColorXYZ :: (Elevator a, RealFloat a) => Color (Y'CbCr (cs i)) e -> Color (XYZ i) a Source #

fromColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) a -> Color (Y'CbCr (cs i)) e Source #

(Typeable l, Elevator e) => ColorSpace (CIERGB l) 'E e Source #

CIERGB linear color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Associated Types

type BaseModel (CIERGB l) Source #

type BaseSpace (CIERGB l) Source #

(Illuminant i, Elevator e) => ColorSpace (CIExyY i) (i :: k) e Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Associated Types

type BaseModel (CIExyY i) Source #

type BaseSpace (CIExyY i) Source #

(Illuminant i, Elevator e) => ColorSpace (Y i) (i :: k) e Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Associated Types

type BaseModel (Y i) Source #

type BaseSpace (Y i) Source #

Methods

toBaseModel :: Color (Y i) e -> Color (BaseModel (Y i)) e Source #

fromBaseModel :: Color (BaseModel (Y i)) e -> Color (Y i) e Source #

toBaseSpace :: Color (Y i) e -> Color (BaseSpace (Y i)) e Source #

fromBaseSpace :: Color (BaseSpace (Y i)) e -> Color (Y i) e Source #

luminance :: (Elevator a, RealFloat a) => Color (Y i) e -> Color (Y i) a Source #

toColorXYZ :: (Elevator a, RealFloat a) => Color (Y i) e -> Color (XYZ i) a Source #

fromColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) a -> Color (Y i) e Source #

(Illuminant i, Elevator e) => ColorSpace (XYZ i) (i :: k) e Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Associated Types

type BaseModel (XYZ i) Source #

type BaseSpace (XYZ i) Source #

Methods

toBaseModel :: Color (XYZ i) e -> Color (BaseModel (XYZ i)) e Source #

fromBaseModel :: Color (BaseModel (XYZ i)) e -> Color (XYZ i) e Source #

toBaseSpace :: Color (XYZ i) e -> Color (BaseSpace (XYZ i)) e Source #

fromBaseSpace :: Color (BaseSpace (XYZ i)) e -> Color (XYZ i) e Source #

luminance :: (Elevator a, RealFloat a) => Color (XYZ i) e -> Color (Y i) a Source #

toColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) e -> Color (XYZ i) a Source #

fromColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) a -> Color (XYZ i) e Source #

(Illuminant i, Elevator e, RealFloat e) => ColorSpace (LUV i) (i :: k) e Source # 
Instance details

Defined in Graphics.Color.Space.CIE1976.LUV

Associated Types

type BaseModel (LUV i) Source #

type BaseSpace (LUV i) Source #

Methods

toBaseModel :: Color (LUV i) e -> Color (BaseModel (LUV i)) e Source #

fromBaseModel :: Color (BaseModel (LUV i)) e -> Color (LUV i) e Source #

toBaseSpace :: Color (LUV i) e -> Color (BaseSpace (LUV i)) e Source #

fromBaseSpace :: Color (BaseSpace (LUV i)) e -> Color (LUV i) e Source #

luminance :: (Elevator a, RealFloat a) => Color (LUV i) e -> Color (Y i) a Source #

toColorXYZ :: (Elevator a, RealFloat a) => Color (LUV i) e -> Color (XYZ i) a Source #

fromColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) a -> Color (LUV i) e Source #

(Illuminant i, Elevator e, ColorSpace (LUV i) i e) => ColorSpace (LCHuv i) (i :: k) e Source # 
Instance details

Defined in Graphics.Color.Space.CIE1976.LUV.LCH

Associated Types

type BaseModel (LCHuv i) Source #

type BaseSpace (LCHuv i) Source #

(Illuminant i, Elevator e, RealFloat e) => ColorSpace (LAB i) (i :: k) e Source # 
Instance details

Defined in Graphics.Color.Space.CIE1976.LAB

Associated Types

type BaseModel (LAB i) Source #

type BaseSpace (LAB i) Source #

Methods

toBaseModel :: Color (LAB i) e -> Color (BaseModel (LAB i)) e Source #

fromBaseModel :: Color (BaseModel (LAB i)) e -> Color (LAB i) e Source #

toBaseSpace :: Color (LAB i) e -> Color (BaseSpace (LAB i)) e Source #

fromBaseSpace :: Color (BaseSpace (LAB i)) e -> Color (LAB i) e Source #

luminance :: (Elevator a, RealFloat a) => Color (LAB i) e -> Color (Y i) a Source #

toColorXYZ :: (Elevator a, RealFloat a) => Color (LAB i) e -> Color (XYZ i) a Source #

fromColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) a -> Color (LAB i) e Source #

(Illuminant i, Elevator e, ColorSpace (LAB i) i e) => ColorSpace (LCHab i) (i :: k) e Source # 
Instance details

Defined in Graphics.Color.Space.CIE1976.LAB.LCH

Associated Types

type BaseModel (LCHab i) Source #

type BaseSpace (LCHab i) Source #

(ColorSpace (cs l) i e, RedGreenBlue cs i) => ColorSpace (HSV (cs l)) (i :: k) e Source #

HSV representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSV

Associated Types

type BaseModel (HSV (cs l)) Source #

type BaseSpace (HSV (cs l)) Source #

Methods

toBaseModel :: Color (HSV (cs l)) e -> Color (BaseModel (HSV (cs l))) e Source #

fromBaseModel :: Color (BaseModel (HSV (cs l))) e -> Color (HSV (cs l)) e Source #

toBaseSpace :: Color (HSV (cs l)) e -> Color (BaseSpace (HSV (cs l))) e Source #

fromBaseSpace :: Color (BaseSpace (HSV (cs l))) e -> Color (HSV (cs l)) e Source #

luminance :: (Elevator a, RealFloat a) => Color (HSV (cs l)) e -> Color (Y i) a Source #

toColorXYZ :: (Elevator a, RealFloat a) => Color (HSV (cs l)) e -> Color (XYZ i) a Source #

fromColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) a -> Color (HSV (cs l)) e Source #

(ColorSpace (cs l) i e, RedGreenBlue cs i) => ColorSpace (HSL (cs l)) (i :: k) e Source #

HSL representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSL

Associated Types

type BaseModel (HSL (cs l)) Source #

type BaseSpace (HSL (cs l)) Source #

Methods

toBaseModel :: Color (HSL (cs l)) e -> Color (BaseModel (HSL (cs l))) e Source #

fromBaseModel :: Color (BaseModel (HSL (cs l))) e -> Color (HSL (cs l)) e Source #

toBaseSpace :: Color (HSL (cs l)) e -> Color (BaseSpace (HSL (cs l))) e Source #

fromBaseSpace :: Color (BaseSpace (HSL (cs l))) e -> Color (HSL (cs l)) e Source #

luminance :: (Elevator a, RealFloat a) => Color (HSL (cs l)) e -> Color (Y i) a Source #

toColorXYZ :: (Elevator a, RealFloat a) => Color (HSL (cs l)) e -> Color (XYZ i) a Source #

fromColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) a -> Color (HSL (cs l)) e Source #

(ColorSpace (cs l) i e, RedGreenBlue cs i) => ColorSpace (HSI (cs l)) (i :: k) e Source #

HSI representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.HSI

Associated Types

type BaseModel (HSI (cs l)) Source #

type BaseSpace (HSI (cs l)) Source #

Methods

toBaseModel :: Color (HSI (cs l)) e -> Color (BaseModel (HSI (cs l))) e Source #

fromBaseModel :: Color (BaseModel (HSI (cs l))) e -> Color (HSI (cs l)) e Source #

toBaseSpace :: Color (HSI (cs l)) e -> Color (BaseSpace (HSI (cs l))) e Source #

fromBaseSpace :: Color (BaseSpace (HSI (cs l))) e -> Color (HSI (cs l)) e Source #

luminance :: (Elevator a, RealFloat a) => Color (HSI (cs l)) e -> Color (Y i) a Source #

toColorXYZ :: (Elevator a, RealFloat a) => Color (HSI (cs l)) e -> Color (XYZ i) a Source #

fromColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) a -> Color (HSI (cs l)) e Source #

(Typeable cs, ColorSpace (cs i l) i e, RedGreenBlue (cs i) i) => ColorSpace (CMYK (cs i l)) (i :: k) e Source #

CMYK representation for some (RedGreenBlue cs i) color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.CMYK

Associated Types

type BaseModel (CMYK (cs i l)) Source #

type BaseSpace (CMYK (cs i l)) Source #

Methods

toBaseModel :: Color (CMYK (cs i l)) e -> Color (BaseModel (CMYK (cs i l))) e Source #

fromBaseModel :: Color (BaseModel (CMYK (cs i l))) e -> Color (CMYK (cs i l)) e Source #

toBaseSpace :: Color (CMYK (cs i l)) e -> Color (BaseSpace (CMYK (cs i l))) e Source #

fromBaseSpace :: Color (BaseSpace (CMYK (cs i l))) e -> Color (CMYK (cs i l)) e Source #

luminance :: (Elevator a, RealFloat a) => Color (CMYK (cs i l)) e -> Color (Y i) a Source #

toColorXYZ :: (Elevator a, RealFloat a) => Color (CMYK (cs i l)) e -> Color (XYZ i) a Source #

fromColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) a -> Color (CMYK (cs i l)) e Source #

(Illuminant i, Typeable l, Elevator e) => ColorSpace (CIERGB i l) (i :: k) e Source #

CIERGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.CIERGB

Associated Types

type BaseModel (CIERGB i l) Source #

type BaseSpace (CIERGB i l) Source #

Methods

toBaseModel :: Color (CIERGB i l) e -> Color (BaseModel (CIERGB i l)) e Source #

fromBaseModel :: Color (BaseModel (CIERGB i l)) e -> Color (CIERGB i l) e Source #

toBaseSpace :: Color (CIERGB i l) e -> Color (BaseSpace (CIERGB i l)) e Source #

fromBaseSpace :: Color (BaseSpace (CIERGB i l)) e -> Color (CIERGB i l) e Source #

luminance :: (Elevator a, RealFloat a) => Color (CIERGB i l) e -> Color (Y i) a Source #

toColorXYZ :: (Elevator a, RealFloat a) => Color (CIERGB i l) e -> Color (XYZ i) a Source #

fromColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) a -> Color (CIERGB i l) e Source #

(Illuminant i, Elevator e) => ColorSpace (AdobeRGB i 'NonLinear) (i :: k) e Source #

AdobeRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.AdobeRGB

Associated Types

type BaseModel (AdobeRGB i 'NonLinear) Source #

type BaseSpace (AdobeRGB i 'NonLinear) Source #

(Illuminant i, Elevator e) => ColorSpace (AdobeRGB i 'Linear) (i :: k) e Source #

AdobeRGB linear color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.AdobeRGB

Associated Types

type BaseModel (AdobeRGB i 'Linear) Source #

type BaseSpace (AdobeRGB i 'Linear) Source #

(Illuminant i, Elevator e) => ColorSpace (SRGB i 'NonLinear) (i :: k) e Source #

SRGB color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.SRGB

Associated Types

type BaseModel (SRGB i 'NonLinear) Source #

type BaseSpace (SRGB i 'NonLinear) Source #

(Illuminant i, Elevator e) => ColorSpace (SRGB i 'Linear) (i :: k) e Source #

SRGB linear color space (derived)

Instance details

Defined in Graphics.Color.Space.RGB.Derived.SRGB

Associated Types

type BaseModel (SRGB i 'Linear) Source #

type BaseSpace (SRGB i 'Linear) Source #

Elevator e => ColorSpace (BT470_625 'Linear) D65 e Source #

ITU-R BT.470 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Elevator e => ColorSpace (BT470_625 'NonLinear) D65 e Source #

ITU-R BT.470 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Elevator e => ColorSpace (BT470_525 'Linear) C e Source #

ITU-R BT.470 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Elevator e => ColorSpace (BT470_525 'NonLinear) C e Source #

ITU-R BT.470 (525) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec470

Elevator e => ColorSpace (BT601_625 'Linear) D65 e Source #

ITU-R BT.601 (625) linear color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Elevator e => ColorSpace (BT601_625 'NonLinear) D65 e Source #

ITU-R BT.601 (625) color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Elevator e => ColorSpace (BT601_525 'Linear) D65 e Source #

ITU-R BT.601 (525) linear color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Elevator e => ColorSpace (BT601_525 'NonLinear) D65 e Source #

ITU-R BT.601 (525) linear color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec601

Elevator e => ColorSpace (BT709 'Linear) D65 e Source #

ITU-R BT.709 linear color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec709

Associated Types

type BaseModel (BT709 'Linear) Source #

type BaseSpace (BT709 'Linear) Source #

Elevator e => ColorSpace (BT709 'NonLinear) D65 e Source #

ITU-R BT.709 color space

Instance details

Defined in Graphics.Color.Space.RGB.ITU.Rec709

Associated Types

type BaseModel (BT709 'NonLinear) Source #

type BaseSpace (BT709 'NonLinear) Source #

Elevator e => ColorSpace (AdobeRGB 'Linear) D65 e Source #

AdobeRGB linear color space

Instance details

Defined in Graphics.Color.Space.RGB.AdobeRGB

Associated Types

type BaseModel (AdobeRGB 'Linear) Source #

type BaseSpace (AdobeRGB 'Linear) Source #

Elevator e => ColorSpace (AdobeRGB 'NonLinear) D65 e Source #

AdobeRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.AdobeRGB

Elevator e => ColorSpace (SRGB 'Linear) D65 e Source #

SRGB linear color space

Instance details

Defined in Graphics.Color.Space.RGB.SRGB

Associated Types

type BaseModel (SRGB 'Linear) Source #

type BaseSpace (SRGB 'Linear) Source #

Elevator e => ColorSpace (SRGB 'NonLinear) D65 e Source #

SRGB linear color space

Instance details

Defined in Graphics.Color.Space.RGB.SRGB

Associated Types

type BaseModel (SRGB 'NonLinear) Source #

type BaseSpace (SRGB 'NonLinear) Source #

Elevator e => ColorSpace (Y'CbCr BT601_625) D65 e Source # 
Instance details

Defined in Graphics.Color.Space.RGB.Alternative.YCbCr

Elevator e => ColorSpace (Y'CbCr BT601_525) D65 e Source # 
Instance details

Defined in Graphics.Color.Space.RGB.Alternative.YCbCr

Elevator e => ColorSpace (Y'CbCr BT709) D65 e Source # 
Instance details

Defined in Graphics.Color.Space.RGB.Alternative.YCbCr

Associated Types

type BaseModel (Y'CbCr BT709) Source #

type BaseSpace (Y'CbCr BT709) Source #

Elevator e => ColorSpace (Y'CbCr SRGB) D65 e Source # 
Instance details

Defined in Graphics.Color.Space.RGB.Alternative.YCbCr

Associated Types

type BaseModel (Y'CbCr SRGB) Source #

type BaseSpace (Y'CbCr SRGB) Source #

ColorSpace (BT470_625 l) D65 e => ColorSpace (CMYK (BT470_625 l)) D65 e Source #

CMYK representation for BT470_625 color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.CMYK

Associated Types

type BaseModel (CMYK (BT470_625 l)) Source #

type BaseSpace (CMYK (BT470_625 l)) Source #

ColorSpace (BT470_525 l) D65 e => ColorSpace (CMYK (BT470_525 l)) D65 e Source #

CMYK representation for BT470_525 color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.CMYK

Associated Types

type BaseModel (CMYK (BT470_525 l)) Source #

type BaseSpace (CMYK (BT470_525 l)) Source #

ColorSpace (BT601_625 l) D65 e => ColorSpace (CMYK (BT601_625 l)) D65 e Source #

CMYK representation for BT601_625 color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.CMYK

Associated Types

type BaseModel (CMYK (BT601_625 l)) Source #

type BaseSpace (CMYK (BT601_625 l)) Source #

ColorSpace (BT601_525 l) D65 e => ColorSpace (CMYK (BT601_525 l)) D65 e Source #

CMYK representation for BT601_525 color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.CMYK

Associated Types

type BaseModel (CMYK (BT601_525 l)) Source #

type BaseSpace (CMYK (BT601_525 l)) Source #

ColorSpace (BT709 l) D65 e => ColorSpace (CMYK (BT709 l)) D65 e Source #

CMYK representation for BT709 color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.CMYK

Associated Types

type BaseModel (CMYK (BT709 l)) Source #

type BaseSpace (CMYK (BT709 l)) Source #

ColorSpace (AdobeRGB l) D65 e => ColorSpace (CMYK (AdobeRGB l)) D65 e Source #

CMYK representation for AdobeRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.CMYK

Associated Types

type BaseModel (CMYK (AdobeRGB l)) Source #

type BaseSpace (CMYK (AdobeRGB l)) Source #

ColorSpace (SRGB l) D65 e => ColorSpace (CMYK (SRGB l)) D65 e Source #

CMYK representation for SRGB color space

Instance details

Defined in Graphics.Color.Space.RGB.Alternative.CMYK

Associated Types

type BaseModel (CMYK (SRGB l)) Source #

type BaseSpace (CMYK (SRGB l)) Source #

newtype Chromaticity i e Source #

This is a data type that encodes a data point on the chromaticity diagram

Constructors

Chromaticity 

Instances

Instances details
Eq e => Eq (Chromaticity i e) Source # 
Instance details

Defined in Graphics.Color.Space.Internal

Methods

(==) :: Chromaticity i e -> Chromaticity i e -> Bool #

(/=) :: Chromaticity i e -> Chromaticity i e -> Bool #

(Illuminant i, Elevator e) => Show (Chromaticity i e) Source # 
Instance details

Defined in Graphics.Color.Space.Internal

newtype Primary (i :: k) e Source #

Bundled Patterns

pattern Primary :: e -> e -> Primary i e

Constructor for the most common XYZ color space

Instances

Instances details
Eq e => Eq (Primary i e) Source # 
Instance details

Defined in Graphics.Color.Space.Internal

Methods

(==) :: Primary i e -> Primary i e -> Bool #

(/=) :: Primary i e -> Primary i e -> Bool #

(Illuminant i, Elevator e) => Show (Primary i e) Source # 
Instance details

Defined in Graphics.Color.Space.Internal

Methods

showsPrec :: Int -> Primary i e -> ShowS #

show :: Primary i e -> String #

showList :: [Primary i e] -> ShowS #

xPrimary :: Primary i e -> e Source #

yPrimary :: Primary i e -> e Source #

zPrimary :: Num e => Primary i e -> e Source #

Compute z = 1 - x - y of a Primary.

primaryXZ Source #

Arguments

:: Fractional e 
=> e

Y value, which is usually set to 1

-> Primary i e

Primary that specifies x and y

-> Color (XYZ i) e 

Compute XYZ tristimulus of a Primary.

Since: 0.1.0

primaryTristimulus Source #

Arguments

:: forall i e. (Illuminant i, RealFloat e, Elevator e) 
=> Primary i e

Primary that specifies x and y

-> Color (XYZ i) e 

Compute normalized XYZ tristimulus of a Primary, where Y = 1

Since: 0.1.0

class (Typeable i, Typeable k, KnownNat (Temperature i)) => Illuminant (i :: k) where Source #

Minimal complete definition

whitePoint

Associated Types

type Temperature i :: n Source #

Instances

Instances details
Illuminant 'A Source #

[x=0.44757, y=0.40745] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'A :: n Source #

Illuminant 'B Source #

[x=0.34842, y=0.35161] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'B :: n Source #

Illuminant 'C Source #

[x=0.31006, y=0.31616] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'C :: n Source #

Illuminant 'D50 Source #

[x=0.34567, y=0.35850] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'D50 :: n Source #

Illuminant 'D55 Source #

[x=0.33242, y=0.34743] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'D55 :: n Source #

Illuminant 'D65 Source #

[x=0.31271, y=0.32901] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'D65 :: n Source #

Illuminant 'D75 Source #

[x=0.29902, y=0.31485] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'D75 :: n Source #

Illuminant 'E Source #

[x=1/3, y=1/3] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'E :: n Source #

Illuminant 'F1 Source #

[x=0.31310, y=0.33727] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'F1 :: n Source #

Illuminant 'F2 Source #

[x=0.37208, y=0.375129 - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'F2 :: n Source #

Illuminant 'F3 Source #

[x=0.40910, y=0.39430] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'F3 :: n Source #

Illuminant 'F4 Source #

[x=0.44018, y=0.40329] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'F4 :: n Source #

Illuminant 'F5 Source #

[x=0.31379, y=0.34531] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'F5 :: n Source #

Illuminant 'F6 Source #

[x=0.37790, y=0.38835] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'F6 :: n Source #

Illuminant 'F7 Source #

[x=0.31292, y=0.32933] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'F7 :: n Source #

Illuminant 'F8 Source #

[x=0.34588, y=0.35875] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'F8 :: n Source #

Illuminant 'F9 Source #

[x=0.37417, y=0.37281] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'F9 :: n Source #

Illuminant 'F10 Source #

[x=0.34609, y=0.35986] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'F10 :: n Source #

Illuminant 'F11 Source #

[x=0.38052, y=0.37713] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'F11 :: n Source #

Illuminant 'F12 Source #

[x=0.43695, y=0.40441] - 2° Observer - Wikipedia

Instance details

Defined in Graphics.Color.Illuminant.Wikipedia

Associated Types

type Temperature 'F12 :: n Source #

Illuminant 'A Source #

[x=0.44758, y=0.40745] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'A :: n Source #

Illuminant 'B Source #

[x=0.34842, y=0.35161] - CIE 1931 2° Observer - https:www.colour-science.org

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'B :: n Source #

Illuminant 'C Source #

[x=0.31006, y=0.31616] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'C :: n Source #

Illuminant 'D50 Source #

[x=0.34567, y=0.35851] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'D50 :: n Source #

Illuminant 'D55 Source #

[x=0.33243, y=0.34744] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'D55 :: n Source #

Illuminant 'D60 Source #

[x=0.32163, y=0.33774] - CIE 1931 2° Observer - https:www.colour-science.org (rounded to 5 decimal points)

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'D60 :: n Source #

Illuminant 'D65 Source #

[x=0.31272, y=0.32903] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'D65 :: n Source #

Illuminant 'D75 Source #

[x=0.29903, y=0.31488] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'D75 :: n Source #

Illuminant 'E Source #

[x=1/3, y=1/3] - CIE 1931 2° Observer - https:www.colour-science.org

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'E :: n Source #

Illuminant 'FL1 Source #

[x=0.31310, y=0.33710] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL1 :: n Source #

Illuminant 'FL2 Source #

[x=0.37210, y=0.37510] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL2 :: n Source #

Illuminant 'FL3 Source #

[x=0.40910, y=0.39410] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL3 :: n Source #

Illuminant 'FL4 Source #

[x=0.44020, y=0.40310] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL4 :: n Source #

Illuminant 'FL5 Source #

[x=0.31380, y=0.34520] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL5 :: n Source #

Illuminant 'FL6 Source #

[x=0.37790, y=0.38820] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL6 :: n Source #

Illuminant 'FL7 Source #

[x=0.31290, y=0.32920] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL7 :: n Source #

Illuminant 'FL8 Source #

[x=0.34580, y=0.35860] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL8 :: n Source #

Illuminant 'FL9 Source #

[x=0.37410, y=0.37270] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL9 :: n Source #

Illuminant 'FL10 Source #

[x=0.34580, y=0.35880] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL10 :: n Source #

Illuminant 'FL11 Source #

[x=0.38050, y=0.37690] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL11 :: n Source #

Illuminant 'FL12 Source #

[x=0.43700, y=0.40420] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL12 :: n Source #

Illuminant 'FL3_1 Source #

[x=0.44070, y=0.40330] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL3_1 :: n Source #

Illuminant 'FL3_2 Source #

[x=0.38080, y=0.37340] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL3_2 :: n Source #

Illuminant 'FL3_3 Source #

[x=0.31530, y=0.34390] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL3_3 :: n Source #

Illuminant 'FL3_4 Source #

[x=0.44290, y=0.40430] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL3_4 :: n Source #

Illuminant 'FL3_5 Source #

[x=0.37490, y=0.36720] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL3_5 :: n Source #

Illuminant 'FL3_6 Source #

[x=0.34880, y=0.36000] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL3_6 :: n Source #

Illuminant 'FL3_7 Source #

[x=0.43840, y=0.40450] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL3_7 :: n Source #

Illuminant 'FL3_8 Source #

[x=0.38200, y=0.38320] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL3_8 :: n Source #

Illuminant 'FL3_9 Source #

[x=0.34990, y=0.35910] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL3_9 :: n Source #

Illuminant 'FL3_10 Source #

[x=0.34550, y=0.35600] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL3_10 :: n Source #

Illuminant 'FL3_11 Source #

[x=0.32450, y=0.34340] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL3_11 :: n Source #

Illuminant 'FL3_12 Source #

[x=0.43770, y=0.40370] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL3_12 :: n Source #

Illuminant 'FL3_13 Source #

[x=0.38300, y=0.37240] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL3_13 :: n Source #

Illuminant 'FL3_14 Source #

[x=0.34470, y=0.36090] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL3_14 :: n Source #

Illuminant 'FL3_15 Source #

[x=0.31270, y=0.32880] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'FL3_15 :: n Source #

Illuminant 'HP1 Source #

[x=0.53300, y=0.41500] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'HP1 :: n Source #

Illuminant 'HP2 Source #

[x=0.47780, y=0.41580] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'HP2 :: n Source #

Illuminant 'HP3 Source #

[x=0.43020, y=0.40750] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'HP3 :: n Source #

Illuminant 'HP4 Source #

[x=0.38120, y=0.37970] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'HP4 :: n Source #

Illuminant 'HP5 Source #

[x=0.37760, y=0.37130] - CIE 1931 2° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1931

Associated Types

type Temperature 'HP5 :: n Source #

Illuminant 'A Source #

[x=0.45117, y=0.40594] - CIE 1964 10° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'A :: n Source #

Illuminant 'B Source #

[x=0.34980, y=0.35270] - CIE 1964 10° Observer - https:www.colour-science.org

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'B :: n Source #

Illuminant 'C Source #

[x=0.31039, y=0.31905] - CIE 1964 10° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'C :: n Source #

Illuminant 'D50 Source #

[x=0.34773, y=0.35952] - CIE 1964 10° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'D50 :: n Source #

Illuminant 'D55 Source #

[x=0.33412, y=0.34877] - CIE 1964 10° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'D55 :: n Source #

Illuminant 'D60 Source #

[x=0.32299, y=0.33928] - CIE 1964 10° Observer - https:www.colour-science.org (rounded to 5 decimal points)

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'D60 :: n Source #

Illuminant 'D65 Source #

[x=0.31381, y=0.33098] - CIE 1964 10° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'D65 :: n Source #

Illuminant 'D75 Source #

[x=0.29968, y=0.31740] - CIE 1964 10° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'D75 :: n Source #

Illuminant 'E Source #

[x=1/3, y=1/3] - CIE 1964 10° Observer - https:www.colour-science.org

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'E :: n Source #

Illuminant 'FL1 Source #

[x=0.31811, y=0.33559] - CIE 1964 10° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'FL1 :: n Source #

Illuminant 'FL2 Source #

[x=0.37925, y=0.36733] - CIE 1964 10° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'FL2 :: n Source #

Illuminant 'FL3 Source #

[x=0.41761, y=0.38324] - CIE 1964 10° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'FL3 :: n Source #

Illuminant 'FL4 Source #

[x=0.44920, y=0.39074] - CIE 1964 10° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'FL4 :: n Source #

Illuminant 'FL5 Source #

[x=0.31975, y=0.34246] - CIE 1964 10° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'FL5 :: n Source #

Illuminant 'FL6 Source #

[x=0.38660, y=0.37847] - CIE 1964 10° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'FL6 :: n Source #

Illuminant 'FL7 Source #

[x=0.31569, y=0.32960] - CIE 1964 10° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'FL7 :: n Source #

Illuminant 'FL8 Source #

[x=0.34902, y=0.35939] - CIE 1964 10° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'FL8 :: n Source #

Illuminant 'FL9 Source #

[x=0.37829, y=0.37045] - CIE 1964 10° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'FL9 :: n Source #

Illuminant 'FL10 Source #

[x=0.35090, y=0.35444] - CIE 1964 10° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'FL10 :: n Source #

Illuminant 'FL11 Source #

[x=0.38541, y=0.37123] - CIE 1964 10° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'FL11 :: n Source #

Illuminant 'FL12 Source #

[x=0.44256, y=0.39717] - CIE 1964 10° Observer - CIE15: Technical Report: Colorimetry, 3rd edition

Instance details

Defined in Graphics.Color.Illuminant.CIE1964

Associated Types

type Temperature 'FL12 :: n Source #

Illuminant D65 Source #

[x=0.3127, y=0.3290] - Rec. ITU-R BT.601-7, Rec. ITU-R BT.709-6, IEC 61966-2-1:1999

Instance details

Defined in Graphics.Color.Illuminant.ITU.Rec601

Associated Types

type Temperature D65 :: n Source #

Illuminant D65 Source #

[x=0.313, y=0.329] - Rec. ITU-R BT.470-7

Instance details

Defined in Graphics.Color.Illuminant.ITU.Rec470

Associated Types

type Temperature D65 :: n Source #

Illuminant C Source #

[x=0.310, y=0.316] - Rec. ITU-R BT.470-7

Instance details

Defined in Graphics.Color.Illuminant.ITU.Rec470

Associated Types

type Temperature C :: n Source #

Illuminant D50 Source #

Tristimulus [X=0.9642, Y=1.0000, Z=0.8249] - IEC 61966-2-1:1999, ICC PCS

Instance details

Defined in Graphics.Color.Illuminant.ICC.PCS

Associated Types

type Temperature D50 :: n Source #

newtype WhitePoint (i :: k) e Source #

Bundled Patterns

pattern WhitePoint :: e -> e -> WhitePoint i e

Constructor for the most common XYZ color space

Instances

Instances details
Eq e => Eq (WhitePoint i e) Source # 
Instance details

Defined in Graphics.Color.Space.Internal

Methods

(==) :: WhitePoint i e -> WhitePoint i e -> Bool #

(/=) :: WhitePoint i e -> WhitePoint i e -> Bool #

(Illuminant i, Elevator e) => Show (WhitePoint i e) Source # 
Instance details

Defined in Graphics.Color.Space.Internal

Methods

showsPrec :: Int -> WhitePoint i e -> ShowS #

show :: WhitePoint i e -> String #

showList :: [WhitePoint i e] -> ShowS #

xWhitePoint :: WhitePoint i e -> e Source #

x value of a WhitePoint

Since: 0.1.0

yWhitePoint :: WhitePoint i e -> e Source #

y value of a WhitePoint

Since: 0.1.0

zWhitePoint :: Num e => WhitePoint i e -> e Source #

Compute z value of a WhitePoint: z = 1 - x - y

Since: 0.1.0

whitePointXZ Source #

Arguments

:: Fractional e 
=> e

Y value, which is usually set to 1

-> WhitePoint i e

White point that specifies x and y

-> Color (XYZ i) e 

Compute XYZ tristimulus of a white point.

Since: 0.1.0

whitePointTristimulus :: forall i e. (Illuminant i, RealFloat e, Elevator e) => Color (XYZ i) e Source #

Compute a normalized XYZ tristimulus of a white point, where Y = 1

Since: 0.1.0

newtype CCT (i :: k) Source #

Correlated color temperature (CCT) of a white point in Kelvin

Constructors

CCT 

Fields

Instances

Instances details
Eq (CCT i) Source # 
Instance details

Defined in Graphics.Color.Space.Internal

Methods

(==) :: CCT i -> CCT i -> Bool #

(/=) :: CCT i -> CCT i -> Bool #

Show (CCT i) Source # 
Instance details

Defined in Graphics.Color.Space.Internal

Methods

showsPrec :: Int -> CCT i -> ShowS #

show :: CCT i -> String #

showList :: [CCT i] -> ShowS #

data Y (i :: k) Source #

Instances

Instances details
(Illuminant i, Elevator e) => ColorSpace (Y i) (i :: k) e Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Associated Types

type BaseModel (Y i) Source #

type BaseSpace (Y i) Source #

Methods

toBaseModel :: Color (Y i) e -> Color (BaseModel (Y i)) e Source #

fromBaseModel :: Color (BaseModel (Y i)) e -> Color (Y i) e Source #

toBaseSpace :: Color (Y i) e -> Color (BaseSpace (Y i)) e Source #

fromBaseSpace :: Color (BaseSpace (Y i)) e -> Color (Y i) e Source #

luminance :: (Elevator a, RealFloat a) => Color (Y i) e -> Color (Y i) a Source #

toColorXYZ :: (Elevator a, RealFloat a) => Color (Y i) e -> Color (XYZ i) a Source #

fromColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) a -> Color (Y i) e Source #

Functor (Color (Y i)) Source #

Y - relative luminance of a color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

fmap :: (a -> b) -> Color (Y i) a -> Color (Y i) b #

(<$) :: a -> Color (Y i) b -> Color (Y i) a #

Applicative (Color (Y i)) Source #

Y - relative luminance of a color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

pure :: a -> Color (Y i) a #

(<*>) :: Color (Y i) (a -> b) -> Color (Y i) a -> Color (Y i) b #

liftA2 :: (a -> b -> c) -> Color (Y i) a -> Color (Y i) b -> Color (Y i) c #

(*>) :: Color (Y i) a -> Color (Y i) b -> Color (Y i) b #

(<*) :: Color (Y i) a -> Color (Y i) b -> Color (Y i) a #

Foldable (Color (Y i)) Source #

Y - relative luminance of a color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

fold :: Monoid m => Color (Y i) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (Y i) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (Y i) a -> m #

foldr :: (a -> b -> b) -> b -> Color (Y i) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (Y i) a -> b #

foldl :: (b -> a -> b) -> b -> Color (Y i) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (Y i) a -> b #

foldr1 :: (a -> a -> a) -> Color (Y i) a -> a #

foldl1 :: (a -> a -> a) -> Color (Y i) a -> a #

toList :: Color (Y i) a -> [a] #

null :: Color (Y i) a -> Bool #

length :: Color (Y i) a -> Int #

elem :: Eq a => a -> Color (Y i) a -> Bool #

maximum :: Ord a => Color (Y i) a -> a #

minimum :: Ord a => Color (Y i) a -> a #

sum :: Num a => Color (Y i) a -> a #

product :: Num a => Color (Y i) a -> a #

Traversable (Color (Y i)) Source #

Y - relative luminance of a color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

traverse :: Applicative f => (a -> f b) -> Color (Y i) a -> f (Color (Y i) b) #

sequenceA :: Applicative f => Color (Y i) (f a) -> f (Color (Y i) a) #

mapM :: Monad m => (a -> m b) -> Color (Y i) a -> m (Color (Y i) b) #

sequence :: Monad m => Color (Y i) (m a) -> m (Color (Y i) a) #

Eq e => Eq (Color (Y i) e) Source #

Y - relative luminance of a color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

(==) :: Color (Y i) e -> Color (Y i) e -> Bool #

(/=) :: Color (Y i) e -> Color (Y i) e -> Bool #

Ord e => Ord (Color (Y i) e) Source #

Y - relative luminance of a color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

compare :: Color (Y i) e -> Color (Y i) e -> Ordering #

(<) :: Color (Y i) e -> Color (Y i) e -> Bool #

(<=) :: Color (Y i) e -> Color (Y i) e -> Bool #

(>) :: Color (Y i) e -> Color (Y i) e -> Bool #

(>=) :: Color (Y i) e -> Color (Y i) e -> Bool #

max :: Color (Y i) e -> Color (Y i) e -> Color (Y i) e #

min :: Color (Y i) e -> Color (Y i) e -> Color (Y i) e #

(Illuminant i, Elevator e) => Show (Color (Y i) e) Source #

Y - relative luminance of a color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

showsPrec :: Int -> Color (Y i) e -> ShowS #

show :: Color (Y i) e -> String #

showList :: [Color (Y i) e] -> ShowS #

Storable e => Storable (Color (Y i) e) Source #

Y - relative luminance of a color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

sizeOf :: Color (Y i) e -> Int #

alignment :: Color (Y i) e -> Int #

peekElemOff :: Ptr (Color (Y i) e) -> Int -> IO (Color (Y i) e) #

pokeElemOff :: Ptr (Color (Y i) e) -> Int -> Color (Y i) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (Y i) e) #

pokeByteOff :: Ptr b -> Int -> Color (Y i) e -> IO () #

peek :: Ptr (Color (Y i) e) -> IO (Color (Y i) e) #

poke :: Ptr (Color (Y i) e) -> Color (Y i) e -> IO () #

(Illuminant i, Elevator e) => ColorModel (Y i) e Source #

Y - relative luminance of a color space

Instance details

Defined in Graphics.Color.Space.Internal

Associated Types

type Components (Y i) e Source #

newtype Color (Y i) e Source #

Luminance Y

Instance details

Defined in Graphics.Color.Space.Internal

newtype Color (Y i) e = Luminance (Color X e)
type BaseModel (Y i) Source # 
Instance details

Defined in Graphics.Color.Space.Internal

type BaseModel (Y i) = X
type BaseSpace (Y i) Source # 
Instance details

Defined in Graphics.Color.Space.Internal

type BaseSpace (Y i) = Y i
type Components (Y i) e Source # 
Instance details

Defined in Graphics.Color.Space.Internal

type Components (Y i) e = e

pattern Y :: e -> Color (Y i) e Source #

Constructor for Y with alpha channel.

pattern YA :: e -> e -> Color (Alpha (Y i)) e Source #

Constructor for Y with alpha channel.

data XYZ i Source #

The original color space CIE 1931 XYZ color space

Instances

Instances details
(Illuminant i, Elevator e) => ColorSpace (XYZ i) (i :: k) e Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Associated Types

type BaseModel (XYZ i) Source #

type BaseSpace (XYZ i) Source #

Methods

toBaseModel :: Color (XYZ i) e -> Color (BaseModel (XYZ i)) e Source #

fromBaseModel :: Color (BaseModel (XYZ i)) e -> Color (XYZ i) e Source #

toBaseSpace :: Color (XYZ i) e -> Color (BaseSpace (XYZ i)) e Source #

fromBaseSpace :: Color (BaseSpace (XYZ i)) e -> Color (XYZ i) e Source #

luminance :: (Elevator a, RealFloat a) => Color (XYZ i) e -> Color (Y i) a Source #

toColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) e -> Color (XYZ i) a Source #

fromColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) a -> Color (XYZ i) e Source #

Functor (Color (XYZ i)) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

fmap :: (a -> b) -> Color (XYZ i) a -> Color (XYZ i) b #

(<$) :: a -> Color (XYZ i) b -> Color (XYZ i) a #

Applicative (Color (XYZ i)) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

pure :: a -> Color (XYZ i) a #

(<*>) :: Color (XYZ i) (a -> b) -> Color (XYZ i) a -> Color (XYZ i) b #

liftA2 :: (a -> b -> c) -> Color (XYZ i) a -> Color (XYZ i) b -> Color (XYZ i) c #

(*>) :: Color (XYZ i) a -> Color (XYZ i) b -> Color (XYZ i) b #

(<*) :: Color (XYZ i) a -> Color (XYZ i) b -> Color (XYZ i) a #

Foldable (Color (XYZ i)) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

fold :: Monoid m => Color (XYZ i) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (XYZ i) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (XYZ i) a -> m #

foldr :: (a -> b -> b) -> b -> Color (XYZ i) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (XYZ i) a -> b #

foldl :: (b -> a -> b) -> b -> Color (XYZ i) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (XYZ i) a -> b #

foldr1 :: (a -> a -> a) -> Color (XYZ i) a -> a #

foldl1 :: (a -> a -> a) -> Color (XYZ i) a -> a #

toList :: Color (XYZ i) a -> [a] #

null :: Color (XYZ i) a -> Bool #

length :: Color (XYZ i) a -> Int #

elem :: Eq a => a -> Color (XYZ i) a -> Bool #

maximum :: Ord a => Color (XYZ i) a -> a #

minimum :: Ord a => Color (XYZ i) a -> a #

sum :: Num a => Color (XYZ i) a -> a #

product :: Num a => Color (XYZ i) a -> a #

Traversable (Color (XYZ i)) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

traverse :: Applicative f => (a -> f b) -> Color (XYZ i) a -> f (Color (XYZ i) b) #

sequenceA :: Applicative f => Color (XYZ i) (f a) -> f (Color (XYZ i) a) #

mapM :: Monad m => (a -> m b) -> Color (XYZ i) a -> m (Color (XYZ i) b) #

sequence :: Monad m => Color (XYZ i) (m a) -> m (Color (XYZ i) a) #

Eq e => Eq (Color (XYZ i) e) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

(==) :: Color (XYZ i) e -> Color (XYZ i) e -> Bool #

(/=) :: Color (XYZ i) e -> Color (XYZ i) e -> Bool #

Ord e => Ord (Color (XYZ i) e) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

compare :: Color (XYZ i) e -> Color (XYZ i) e -> Ordering #

(<) :: Color (XYZ i) e -> Color (XYZ i) e -> Bool #

(<=) :: Color (XYZ i) e -> Color (XYZ i) e -> Bool #

(>) :: Color (XYZ i) e -> Color (XYZ i) e -> Bool #

(>=) :: Color (XYZ i) e -> Color (XYZ i) e -> Bool #

max :: Color (XYZ i) e -> Color (XYZ i) e -> Color (XYZ i) e #

min :: Color (XYZ i) e -> Color (XYZ i) e -> Color (XYZ i) e #

(Illuminant i, Elevator e) => Show (Color (XYZ i) e) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

showsPrec :: Int -> Color (XYZ i) e -> ShowS #

show :: Color (XYZ i) e -> String #

showList :: [Color (XYZ i) e] -> ShowS #

Storable e => Storable (Color (XYZ i) e) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

sizeOf :: Color (XYZ i) e -> Int #

alignment :: Color (XYZ i) e -> Int #

peekElemOff :: Ptr (Color (XYZ i) e) -> Int -> IO (Color (XYZ i) e) #

pokeElemOff :: Ptr (Color (XYZ i) e) -> Int -> Color (XYZ i) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (XYZ i) e) #

pokeByteOff :: Ptr b -> Int -> Color (XYZ i) e -> IO () #

peek :: Ptr (Color (XYZ i) e) -> IO (Color (XYZ i) e) #

poke :: Ptr (Color (XYZ i) e) -> Color (XYZ i) e -> IO () #

(Illuminant i, Elevator e) => ColorModel (XYZ i) e Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Associated Types

type Components (XYZ i) e Source #

newtype Color (XYZ i) e Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

newtype Color (XYZ i) e = XYZ (V3 e)
type BaseModel (XYZ i) Source # 
Instance details

Defined in Graphics.Color.Space.Internal

type BaseModel (XYZ i) = XYZ i
type BaseSpace (XYZ i) Source # 
Instance details

Defined in Graphics.Color.Space.Internal

type BaseSpace (XYZ i) = XYZ i
type Components (XYZ i) e Source # 
Instance details

Defined in Graphics.Color.Space.Internal

type Components (XYZ i) e = (e, e, e)

pattern ColorXYZ :: e -> e -> e -> Color (XYZ i) e Source #

Constructor for the most common XYZ color space

pattern ColorXYZA :: e -> e -> e -> e -> Color (Alpha (XYZ i)) e Source #

Constructor for XYZ with alpha channel.

data CIExyY (i :: k) Source #

Alternative representation of the CIE 1931 XYZ color space

Instances

Instances details
(Illuminant i, Elevator e) => ColorSpace (CIExyY i) (i :: k) e Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Associated Types

type BaseModel (CIExyY i) Source #

type BaseSpace (CIExyY i) Source #

Functor (Color (CIExyY i)) Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

fmap :: (a -> b) -> Color (CIExyY i) a -> Color (CIExyY i) b #

(<$) :: a -> Color (CIExyY i) b -> Color (CIExyY i) a #

Applicative (Color (CIExyY i)) Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

pure :: a -> Color (CIExyY i) a #

(<*>) :: Color (CIExyY i) (a -> b) -> Color (CIExyY i) a -> Color (CIExyY i) b #

liftA2 :: (a -> b -> c) -> Color (CIExyY i) a -> Color (CIExyY i) b -> Color (CIExyY i) c #

(*>) :: Color (CIExyY i) a -> Color (CIExyY i) b -> Color (CIExyY i) b #

(<*) :: Color (CIExyY i) a -> Color (CIExyY i) b -> Color (CIExyY i) a #

Foldable (Color (CIExyY i)) Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

fold :: Monoid m => Color (CIExyY i) m -> m #

foldMap :: Monoid m => (a -> m) -> Color (CIExyY i) a -> m #

foldMap' :: Monoid m => (a -> m) -> Color (CIExyY i) a -> m #

foldr :: (a -> b -> b) -> b -> Color (CIExyY i) a -> b #

foldr' :: (a -> b -> b) -> b -> Color (CIExyY i) a -> b #

foldl :: (b -> a -> b) -> b -> Color (CIExyY i) a -> b #

foldl' :: (b -> a -> b) -> b -> Color (CIExyY i) a -> b #

foldr1 :: (a -> a -> a) -> Color (CIExyY i) a -> a #

foldl1 :: (a -> a -> a) -> Color (CIExyY i) a -> a #

toList :: Color (CIExyY i) a -> [a] #

null :: Color (CIExyY i) a -> Bool #

length :: Color (CIExyY i) a -> Int #

elem :: Eq a => a -> Color (CIExyY i) a -> Bool #

maximum :: Ord a => Color (CIExyY i) a -> a #

minimum :: Ord a => Color (CIExyY i) a -> a #

sum :: Num a => Color (CIExyY i) a -> a #

product :: Num a => Color (CIExyY i) a -> a #

Traversable (Color (CIExyY i)) Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

traverse :: Applicative f => (a -> f b) -> Color (CIExyY i) a -> f (Color (CIExyY i) b) #

sequenceA :: Applicative f => Color (CIExyY i) (f a) -> f (Color (CIExyY i) a) #

mapM :: Monad m => (a -> m b) -> Color (CIExyY i) a -> m (Color (CIExyY i) b) #

sequence :: Monad m => Color (CIExyY i) (m a) -> m (Color (CIExyY i) a) #

Eq e => Eq (Color (CIExyY i) e) Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

(==) :: Color (CIExyY i) e -> Color (CIExyY i) e -> Bool #

(/=) :: Color (CIExyY i) e -> Color (CIExyY i) e -> Bool #

Ord e => Ord (Color (CIExyY i) e) Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

compare :: Color (CIExyY i) e -> Color (CIExyY i) e -> Ordering #

(<) :: Color (CIExyY i) e -> Color (CIExyY i) e -> Bool #

(<=) :: Color (CIExyY i) e -> Color (CIExyY i) e -> Bool #

(>) :: Color (CIExyY i) e -> Color (CIExyY i) e -> Bool #

(>=) :: Color (CIExyY i) e -> Color (CIExyY i) e -> Bool #

max :: Color (CIExyY i) e -> Color (CIExyY i) e -> Color (CIExyY i) e #

min :: Color (CIExyY i) e -> Color (CIExyY i) e -> Color (CIExyY i) e #

(Illuminant i, Elevator e) => Show (Color (CIExyY i) e) Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

showsPrec :: Int -> Color (CIExyY i) e -> ShowS #

show :: Color (CIExyY i) e -> String #

showList :: [Color (CIExyY i) e] -> ShowS #

Storable e => Storable (Color (CIExyY i) e) Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

sizeOf :: Color (CIExyY i) e -> Int #

alignment :: Color (CIExyY i) e -> Int #

peekElemOff :: Ptr (Color (CIExyY i) e) -> Int -> IO (Color (CIExyY i) e) #

pokeElemOff :: Ptr (Color (CIExyY i) e) -> Int -> Color (CIExyY i) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (CIExyY i) e) #

pokeByteOff :: Ptr b -> Int -> Color (CIExyY i) e -> IO () #

peek :: Ptr (Color (CIExyY i) e) -> IO (Color (CIExyY i) e) #

poke :: Ptr (Color (CIExyY i) e) -> Color (CIExyY i) e -> IO () #

(Illuminant i, Elevator e) => ColorModel (CIExyY i) e Source #

CIE xyY color space

Instance details

Defined in Graphics.Color.Space.Internal

Associated Types

type Components (CIExyY i) e Source #

newtype Color (CIExyY i) e Source #

CIE1931 CIExyY color space

Instance details

Defined in Graphics.Color.Space.Internal

newtype Color (CIExyY i) e = CIExyY (V2 e)
type BaseModel (CIExyY i) Source # 
Instance details

Defined in Graphics.Color.Space.Internal

type BaseModel (CIExyY i) = CIExyY i
type BaseSpace (CIExyY i) Source # 
Instance details

Defined in Graphics.Color.Space.Internal

type BaseSpace (CIExyY i) = CIExyY i
type Components (CIExyY i) e Source # 
Instance details

Defined in Graphics.Color.Space.Internal

type Components (CIExyY i) e = (e, e)

pattern ColorCIExy :: e -> e -> Color (CIExyY i) e Source #

Constructor CIE xyY color space. It only requires x and y, then Y part will always be equal to 1.

pattern ColorCIExyY :: Num e => e -> e -> e -> Color (CIExyY i) e Source #

Patttern match on the CIE xyY, 3rd argument Y is always set to 1

class (Show e, Eq e, Num e, Typeable e, Unbox e, Storable e) => Elevator e where Source #

A class with a set of functions that allow for changing precision by shrinking and streatching the values.

Methods

maxValue :: e Source #

minValue :: e Source #

fieldFormat :: e -> FieldFormat Source #

toShowS :: e -> ShowS Source #

This is a pretty printer for the value.

default toShowS :: PrintfArg e => e -> ShowS Source #

toWord8 :: e -> Word8 Source #

Values are scaled to [0, 255] range.

toWord16 :: e -> Word16 Source #

Values are scaled to [0, 65535] range.

toWord32 :: e -> Word32 Source #

Values are scaled to [0, 4294967295] range.

toWord64 :: e -> Word64 Source #

Values are scaled to [0, 18446744073709551615] range.

toRealFloat :: (Elevator a, RealFloat a) => e -> a Source #

Values are scaled to [0.0, 1.0] range.

fromRealFloat :: (Elevator a, RealFloat a) => a -> e Source #

Values are scaled from [0.0, 1.0] range.

toFloat :: e -> Float Source #

Values are scaled to [0.0, 1.0] range.

toDouble :: e -> Double Source #

Values are scaled to [0.0, 1.0] range.

fromDouble :: Double -> e Source #

Values are scaled from [0.0, 1.0] range.

(//) :: e -> e -> e infixl 7 Source #

Division that works for integral types as well as floating points. May throw an exception.

Instances

Instances details
Elevator Double Source #

Values between [0.0, 1.0]

Instance details

Defined in Graphics.Color.Algebra.Elevator

Elevator Float Source #

Values between [0.0, 1.0]

Instance details

Defined in Graphics.Color.Algebra.Elevator

Elevator Int Source #

Values between [0, 9223372036854775807] on 64bit

Instance details

Defined in Graphics.Color.Algebra.Elevator

Elevator Int8 Source #

Values between [0, 127]

Instance details

Defined in Graphics.Color.Algebra.Elevator

Elevator Int16 Source #

Values between [0, 32767]

Instance details

Defined in Graphics.Color.Algebra.Elevator

Elevator Int32 Source #

Values between [0, 2147483647]

Instance details

Defined in Graphics.Color.Algebra.Elevator

Elevator Int64 Source #

Values between [0, 9223372036854775807]

Instance details

Defined in Graphics.Color.Algebra.Elevator

Elevator Word Source #

Values between [0, 18446744073709551615] on 64bit

Instance details

Defined in Graphics.Color.Algebra.Elevator

Elevator Word8 Source #

Values between [0, 255]]

Instance details

Defined in Graphics.Color.Algebra.Elevator

Elevator Word16 Source #

Values between [0, 65535]]

Instance details

Defined in Graphics.Color.Algebra.Elevator

Elevator Word32 Source #

Values between [0, 4294967295]

Instance details

Defined in Graphics.Color.Algebra.Elevator

Elevator Word64 Source #

Values between [0, 18446744073709551615]

Instance details

Defined in Graphics.Color.Algebra.Elevator

Elevator Bit Source #

Values: 0 and 1

Instance details

Defined in Graphics.Color.Algebra.Binary

(PrintfArg e, Elevator e, RealFloat e) => Elevator (Complex e) Source #

Discards imaginary part and changes precision of real part.

Instance details

Defined in Graphics.Color.Algebra.Elevator

module Data.Word

clamp01 :: RealFloat a => a -> a Source #

Clamp a value to [0, 1] range.