Copyright | (c) Alexey Kuleshevich 2018-2020 |
---|---|
License | BSD3 |
Maintainer | Alexey Kuleshevich <lehins@yandex.ru> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- convertColor :: forall cs cs' i e. (ColorSpace cs' i e, ColorSpace cs i e) => Color cs' e -> Color cs e
- convertColorFloat :: forall cs cs' i e. (ColorSpace cs' i e, ColorSpace cs i e) => Color cs' e -> Color cs e
- module Graphics.Color.Space.RGB
- 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
- type Components cs e :: Type
- toComponents :: Color cs e -> Components cs e
- fromComponents :: Components cs e -> Color cs e
- showsColorModelName :: Proxy (Color cs e) -> ShowS
- data Alpha cs
- type family Opaque cs where ...
- addAlpha :: Color cs e -> e -> Color (Alpha cs) e
- getAlpha :: Color (Alpha cs) e -> e
- setAlpha :: Color (Alpha cs) e -> e -> Color (Alpha cs) e
- dropAlpha :: Color (Alpha cs) e -> Color cs e
- modifyAlpha :: (e -> e) -> Color (Alpha cs) e -> Color (Alpha cs) e
- modifyOpaque :: (Color cs e -> Color cs' e) -> Color (Alpha cs) e -> Color (Alpha cs') e
- data family Color cs e :: Type
- class (Illuminant i, ColorModel (BaseModel cs) e, ColorModel cs e) => ColorSpace cs (i :: k) e | cs -> i where
- type BaseModel cs :: Type
- type BaseSpace cs :: Type
- toBaseModel :: Color cs e -> Color (BaseModel cs) e
- fromBaseModel :: Color (BaseModel cs) e -> Color cs e
- toBaseSpace :: ColorSpace (BaseSpace cs) i e => Color cs e -> Color (BaseSpace cs) e
- fromBaseSpace :: ColorSpace (BaseSpace cs) i e => Color (BaseSpace cs) e -> Color cs e
- luminance :: (Elevator a, RealFloat a) => Color cs e -> Color (Y i) a
- toColorXYZ :: (Elevator a, RealFloat a) => Color cs e -> Color (XYZ i) a
- fromColorXYZ :: (Elevator a, RealFloat a) => Color (XYZ i) a -> Color cs e
- newtype Chromaticity i e = Chromaticity {
- chromaticityCIExyY :: Color (CIExyY i) e
- newtype Primary (i :: k) e where
- PrimaryChromaticity {
- primaryChromaticity :: Chromaticity i e
- pattern Primary :: e -> e -> Primary i e
- PrimaryChromaticity {
- xPrimary :: Primary i e -> e
- yPrimary :: Primary i e -> e
- zPrimary :: Num e => Primary i e -> e
- primaryXZ :: Fractional e => e -> Primary i e -> Color (XYZ i) e
- primaryTristimulus :: forall i e. (Illuminant i, RealFloat e, Elevator e) => Primary i e -> Color (XYZ i) e
- class (Typeable i, Typeable k, KnownNat (Temperature i)) => Illuminant (i :: k) where
- type Temperature i :: n
- whitePoint :: RealFloat e => WhitePoint i e
- colorTemperature :: CCT i
- newtype WhitePoint (i :: k) e where
- WhitePointChromaticity { }
- pattern WhitePoint :: e -> e -> WhitePoint i e
- xWhitePoint :: WhitePoint i e -> e
- yWhitePoint :: WhitePoint i e -> e
- zWhitePoint :: Num e => WhitePoint i e -> e
- whitePointXZ :: Fractional e => e -> WhitePoint i e -> Color (XYZ i) e
- whitePointTristimulus :: forall i e. (Illuminant i, RealFloat e, Elevator e) => Color (XYZ i) e
- newtype CCT (i :: k) = CCT {}
- data Y (i :: k)
- pattern Y :: e -> Color (Y i) e
- pattern YA :: e -> e -> Color (Alpha (Y i)) e
- data XYZ i
- pattern ColorXYZ :: e -> e -> e -> Color (XYZ i) e
- pattern ColorXYZA :: e -> e -> e -> e -> Color (Alpha (XYZ i)) e
- data CIExyY (i :: k)
- pattern ColorCIExy :: e -> e -> Color (CIExyY i) e
- pattern ColorCIExyY :: Num e => e -> e -> e -> Color (CIExyY i) e
- showsColorModel :: ColorModel cs e => Color cs e -> ShowS
- module Graphics.Color.Algebra.Binary
- class (Show e, Eq e, Num e, Typeable e, Unbox e, Storable e) => Elevator e where
- maxValue :: e
- minValue :: e
- fieldFormat :: e -> FieldFormat
- toShowS :: e -> ShowS
- toWord8 :: e -> Word8
- toWord16 :: e -> Word16
- toWord32 :: e -> Word32
- toWord64 :: e -> Word64
- toRealFloat :: (Elevator a, RealFloat a) => e -> a
- fromRealFloat :: (Elevator a, RealFloat a) => a -> e
- toFloat :: e -> Float
- toDouble :: e -> Double
- fromDouble :: Double -> e
- (//) :: e -> e -> e
- module Data.Word
- clamp01 :: RealFloat a => a -> a
- module Graphics.Color.Space.CIE1976.LAB
Documentation
convertColor :: forall cs cs' i e. (ColorSpace cs' i e, ColorSpace cs i e) => Color cs' e -> Color cs e Source #
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
module Graphics.Color.Space.RGB
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 #
type Components cs e :: Type Source #
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
Alpha
Instances
addAlpha :: Color cs e -> e -> Color (Alpha cs) e Source #
Add an alpha channel value to an opaque 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
ColorModel cs e => Vector Vector (Color cs e) Source # | |
Defined in Graphics.Color.Model.Internal 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 () # | |
ColorModel cs e => MVector MVector (Color cs e) Source # | |
Defined in Graphics.Color.Model.Internal 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 # | |
Functor (Color LCH) Source # |
|
Functor (Color RGB) Source # |
|
Functor (Color HSV) Source # |
|
Functor (Color HSL) Source # |
|
Functor (Color HSI) Source # |
|
Functor (Color CMYK) Source # |
|
Functor (Color X) Source # |
|
Functor (Color YCbCr) Source # |
|
Functor (Color (Y i)) Source # |
|
Functor (Color (CIExyY i)) Source # | CIE xyY color space |
Functor (Color (XYZ i)) Source # | CIE1931 |
Functor (Color (LUV i)) Source # | CIE1976 |
Functor (Color (LCHuv i)) Source # | CIE1976 |
Functor (Color (LAB i)) Source # | CIE1976 |
Functor (Color (LCHab i)) Source # | CIE1976 |
Functor (Color (BT470_625 l)) Source # | ITU-R BT.470 (625) color space |
Functor (Color (BT470_525 l)) Source # | ITU-R BT.470 (525) color space |
Functor (Color (HSV cs)) Source # |
|
Functor (Color (HSL cs)) Source # |
|
Functor (Color (HSI cs)) Source # |
|
Functor (Color (CIERGB l)) Source # |
|
Functor (Color (CIERGB i l)) Source # |
|
Functor (Color (Y' cs)) Source # |
|
Functor (Color (BT601_625 l)) Source # | ITU-R BT.601 (625) color space |
Functor (Color (BT601_525 l)) Source # | ITU-R BT.601 (525) color space |
Functor (Color (BT709 l)) Source # | ITU-R BT.709 color space |
Functor (Color (AdobeRGB l)) Source # |
|
Functor (Color (AdobeRGB i l)) Source # |
|
Functor (Color (SRGB l)) Source # |
|
Functor (Color (SRGB i l)) Source # |
|
Functor (Color (Y'CbCr cs)) Source # | |
Functor (Color (CMYK cs)) Source # |
|
Applicative (Color cs) => Applicative (Color (Alpha cs)) Source # | |
Defined in Graphics.Color.Model.Internal 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 # |
|
Applicative (Color RGB) Source # |
|
Applicative (Color HSV) Source # |
|
Applicative (Color HSL) Source # |
|
Applicative (Color HSI) Source # |
|
Applicative (Color CMYK) Source # |
|
Defined in Graphics.Color.Model.CMYK | |
Applicative (Color X) Source # |
|
Applicative (Color YCbCr) Source # |
|
Defined in Graphics.Color.Model.YCbCr | |
Applicative (Color (Y i)) Source # |
|
Defined in Graphics.Color.Space.Internal | |
Applicative (Color (CIExyY i)) Source # | CIE xyY color space |
Defined in Graphics.Color.Space.Internal 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 |
Defined in Graphics.Color.Space.Internal 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 |
Defined in Graphics.Color.Space.CIE1976.LUV 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 |
Defined in Graphics.Color.Space.CIE1976.LUV.LCH 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 |
Defined in Graphics.Color.Space.CIE1976.LAB 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 |
Defined in Graphics.Color.Space.CIE1976.LAB.LCH 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 |
Defined in Graphics.Color.Space.RGB.ITU.Rec470 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 |
Defined in Graphics.Color.Space.RGB.ITU.Rec470 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 # |
|
Defined in Graphics.Color.Space.RGB.Alternative.HSV 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 # |
|
Defined in Graphics.Color.Space.RGB.Alternative.HSL 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 # |
|
Defined in Graphics.Color.Space.RGB.Alternative.HSI 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 # |
|
Defined in Graphics.Color.Space.CIE1931.RGB 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 # |
|
Defined in Graphics.Color.Space.RGB.Derived.CIERGB 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 # |
|
Defined in Graphics.Color.Space.RGB.Luma 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 |
Defined in Graphics.Color.Space.RGB.ITU.Rec601 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 |
Defined in Graphics.Color.Space.RGB.ITU.Rec601 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 |
Defined in Graphics.Color.Space.RGB.ITU.Rec709 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 # |
|
Defined in Graphics.Color.Space.RGB.AdobeRGB 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 # |
|
Defined in Graphics.Color.Space.RGB.Derived.AdobeRGB 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 # |
|
Defined in Graphics.Color.Space.RGB.SRGB 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 # |
|
Defined in Graphics.Color.Space.RGB.Derived.SRGB 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 # | |
Defined in Graphics.Color.Space.RGB.Alternative.YCbCr 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 # |
|
Defined in Graphics.Color.Space.RGB.Alternative.CMYK 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 # | |
Defined in Graphics.Color.Model.Internal 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 # | |
Foldable (Color LCH) Source # |
|
Defined in Graphics.Color.Model.LCH 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] # 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 # | |
Foldable (Color RGB) Source # |
|
Defined in Graphics.Color.Model.RGB 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] # 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 # | |
Foldable (Color HSV) Source # |
|
Defined in Graphics.Color.Model.HSV 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] # 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 # | |
Foldable (Color HSL) Source # |
|
Defined in Graphics.Color.Model.HSL 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] # 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 # | |
Foldable (Color HSI) Source # |
|
Defined in Graphics.Color.Model.HSI 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] # 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 # | |
Foldable (Color CMYK) Source # |
|
Defined in Graphics.Color.Model.CMYK 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 # | |
Foldable (Color X) Source # |
|
Defined in Graphics.Color.Model.X 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 # elem :: Eq a => a -> Color X a -> Bool # maximum :: Ord a => Color X a -> a # minimum :: Ord a => Color X a -> a # | |
Foldable (Color YCbCr) Source # |
|
Defined in Graphics.Color.Model.YCbCr 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 # | |
Foldable (Color (Y i)) Source # |
|
Defined in Graphics.Color.Space.Internal 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 # | |
Foldable (Color (CIExyY i)) Source # | CIE xyY color space |
Defined in Graphics.Color.Space.Internal 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 # | |
Foldable (Color (XYZ i)) Source # | CIE1931 |
Defined in Graphics.Color.Space.Internal 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 # | |
Foldable (Color (LUV i)) Source # | CIE1976 |
Defined in Graphics.Color.Space.CIE1976.LUV 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 # | |
Foldable (Color (LCHuv i)) Source # | CIE1976 |
Defined in Graphics.Color.Space.CIE1976.LUV.LCH 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 # | |
Foldable (Color (LAB i)) Source # | CIE1976 |
Defined in Graphics.Color.Space.CIE1976.LAB 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 # | |
Foldable (Color (LCHab i)) Source # | CIE1976 |
Defined in Graphics.Color.Space.CIE1976.LAB.LCH 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 # | |
Foldable (Color (BT470_625 l)) Source # | ITU-R BT.470 (625) color space |
Defined in Graphics.Color.Space.RGB.ITU.Rec470 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 # | |
Foldable (Color (BT470_525 l)) Source # | ITU-R BT.470 (525) color space |
Defined in Graphics.Color.Space.RGB.ITU.Rec470 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 # | |
Foldable (Color (HSV cs)) Source # |
|
Defined in Graphics.Color.Space.RGB.Alternative.HSV 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 # | |
Foldable (Color (HSL cs)) Source # |
|
Defined in Graphics.Color.Space.RGB.Alternative.HSL 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 # | |
Foldable (Color (HSI cs)) Source # |
|
Defined in Graphics.Color.Space.RGB.Alternative.HSI 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 # | |
Foldable (Color (CIERGB l)) Source # |
|
Defined in Graphics.Color.Space.CIE1931.RGB 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 # | |
Foldable (Color (CIERGB i l)) Source # |
|
Defined in Graphics.Color.Space.RGB.Derived.CIERGB 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 # | |
Foldable (Color (Y' cs)) Source # |
|
Defined in Graphics.Color.Space.RGB.Luma 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 # | |
Foldable (Color (BT601_625 l)) Source # | ITU-R BT.601 (625) color space |
Defined in Graphics.Color.Space.RGB.ITU.Rec601 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 # | |
Foldable (Color (BT601_525 l)) Source # | ITU-R BT.601 (525) color space |
Defined in Graphics.Color.Space.RGB.ITU.Rec601 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 # | |
Foldable (Color (BT709 l)) Source # | ITU-R BT.709 color space |
Defined in Graphics.Color.Space.RGB.ITU.Rec709 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 # | |
Foldable (Color (AdobeRGB l)) Source # |
|
Defined in Graphics.Color.Space.RGB.AdobeRGB 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 # | |
Foldable (Color (AdobeRGB i l)) Source # |
|
Defined in Graphics.Color.Space.RGB.Derived.AdobeRGB 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 # | |
Foldable (Color (SRGB l)) Source # |
|
Defined in Graphics.Color.Space.RGB.SRGB 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 # | |
Foldable (Color (SRGB i l)) Source # |
|
Defined in Graphics.Color.Space.RGB.Derived.SRGB 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 # | |
Foldable (Color (Y'CbCr cs)) Source # | |
Defined in Graphics.Color.Space.RGB.Alternative.YCbCr 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 # | |
Foldable (Color (CMYK cs)) Source # |
|
Defined in Graphics.Color.Space.RGB.Alternative.CMYK 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 # | |
Traversable (Color cs) => Traversable (Color (Alpha cs)) Source # | |
Defined in Graphics.Color.Model.Internal 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 # |
|
Defined in Graphics.Color.Model.LCH | |
Traversable (Color RGB) Source # |
|
Defined in Graphics.Color.Model.RGB | |
Traversable (Color HSV) Source # |
|
Defined in Graphics.Color.Model.HSV | |
Traversable (Color HSL) Source # |
|
Defined in Graphics.Color.Model.HSL | |
Traversable (Color HSI) Source # |
|
Defined in Graphics.Color.Model.HSI | |
Traversable (Color CMYK) Source # |
|
Defined in Graphics.Color.Model.CMYK | |
Traversable (Color X) Source # |
|
Traversable (Color YCbCr) Source # |
|
Defined in Graphics.Color.Model.YCbCr | |
Traversable (Color (Y i)) Source # |
|
Defined in Graphics.Color.Space.Internal | |
Traversable (Color (CIExyY i)) Source # | CIE xyY color space |
Defined in Graphics.Color.Space.Internal 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 |
Defined in Graphics.Color.Space.Internal | |
Traversable (Color (LUV i)) Source # | CIE1976 |
Defined in Graphics.Color.Space.CIE1976.LUV | |
Traversable (Color (LCHuv i)) Source # | CIE1976 |
Defined in Graphics.Color.Space.CIE1976.LUV.LCH 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 |
Defined in Graphics.Color.Space.CIE1976.LAB | |
Traversable (Color (LCHab i)) Source # | CIE1976 |
Defined in Graphics.Color.Space.CIE1976.LAB.LCH 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 |
Defined in Graphics.Color.Space.RGB.ITU.Rec470 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 |
Defined in Graphics.Color.Space.RGB.ITU.Rec470 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 # |
|
Defined in Graphics.Color.Space.RGB.Alternative.HSV 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 # |
|
Defined in Graphics.Color.Space.RGB.Alternative.HSL 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 # |
|
Defined in Graphics.Color.Space.RGB.Alternative.HSI 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 # |
|
Defined in Graphics.Color.Space.CIE1931.RGB 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 # |
|
Defined in Graphics.Color.Space.RGB.Derived.CIERGB 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 # |
|
Defined in Graphics.Color.Space.RGB.Luma | |
Traversable (Color (BT601_625 l)) Source # | ITU-R BT.601 (625) color space |
Defined in Graphics.Color.Space.RGB.ITU.Rec601 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 |
Defined in Graphics.Color.Space.RGB.ITU.Rec601 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 |
Defined in Graphics.Color.Space.RGB.ITU.Rec709 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 # |
|
Defined in Graphics.Color.Space.RGB.AdobeRGB 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 # |
|
Defined in Graphics.Color.Space.RGB.Derived.AdobeRGB 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 # |
|
Defined in Graphics.Color.Space.RGB.SRGB 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 # |
|
Defined in Graphics.Color.Space.RGB.Derived.SRGB 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 # | |
Defined in Graphics.Color.Space.RGB.Alternative.YCbCr 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 # |
|
Defined in Graphics.Color.Space.RGB.Alternative.CMYK 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 # | |
(Eq (Color cs e), Eq e) => Eq (Color (Alpha cs) e) Source # | |
Eq e => Eq (Color LCH e) Source # |
|
Eq e => Eq (Color RGB e) Source # |
|
Eq e => Eq (Color HSV e) Source # |
|
Eq e => Eq (Color HSL e) Source # |
|
Eq e => Eq (Color HSI e) Source # |
|
Eq e => Eq (Color CMYK e) Source # |
|
Eq e => Eq (Color X e) Source # |
|
Eq e => Eq (Color YCbCr e) Source # |
|
Eq e => Eq (Color (Y i) e) Source # |
|
Eq e => Eq (Color (CIExyY i) e) Source # | CIE xyY color space |
Eq e => Eq (Color (XYZ i) e) Source # | CIE1931 |
Eq e => Eq (Color (LUV i) e) Source # | CIE1976 |
Eq e => Eq (Color (LCHuv i) e) Source # | CIE1976 |
Eq e => Eq (Color (LAB i) e) Source # | CIE1976 |
Eq e => Eq (Color (LCHab i) e) Source # | CIE1976 |
Eq e => Eq (Color (BT470_625 l) e) Source # | ITU-R BT.470 (625) color space |
Eq e => Eq (Color (BT470_525 l) e) Source # | ITU-R BT.470 (525) color space |
Eq e => Eq (Color (HSV cs) e) Source # |
|
Eq e => Eq (Color (HSL cs) e) Source # |
|
Eq e => Eq (Color (HSI cs) e) Source # |
|
Eq e => Eq (Color (CIERGB l) e) Source # |
|
Eq e => Eq (Color (CIERGB i l) e) Source # |
|
Eq e => Eq (Color (Y' cs) e) Source # |
|
Eq e => Eq (Color (BT601_625 l) e) Source # | ITU-R BT.601 (625) color space |
Eq e => Eq (Color (BT601_525 l) e) Source # | ITU-R BT.601 (525) color space |
Eq e => Eq (Color (BT709 l) e) Source # | ITU-R BT.709 color space |
Eq e => Eq (Color (AdobeRGB l) e) Source # |
|
Eq e => Eq (Color (AdobeRGB i l) e) Source # |
|
Eq e => Eq (Color (SRGB l) e) Source # |
|
Eq e => Eq (Color (SRGB i l) e) Source # |
|
Eq e => Eq (Color (Y'CbCr cs) e) Source # | |
Eq e => Eq (Color (CMYK cs) e) Source # |
|
(ColorModel cs e, Floating e) => Floating (Color cs e) Source # | |
Defined in Graphics.Color.Model.Internal 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 # | |
(ColorModel cs e, Fractional e) => Fractional (Color cs e) Source # | |
ColorModel cs e => Num (Color cs e) Source # | |
Defined in Graphics.Color.Model.Internal | |
Ord e => Ord (Color LCH e) Source # |
|
Defined in Graphics.Color.Model.LCH | |
Ord e => Ord (Color RGB e) Source # |
|
Defined in Graphics.Color.Model.RGB | |
Ord e => Ord (Color HSV e) Source # |
|
Defined in Graphics.Color.Model.HSV | |
Ord e => Ord (Color HSL e) Source # |
|
Defined in Graphics.Color.Model.HSL | |
Ord e => Ord (Color HSI e) Source # |
|
Defined in Graphics.Color.Model.HSI | |
Ord e => Ord (Color CMYK e) Source # |
|
Defined in Graphics.Color.Model.CMYK | |
Ord e => Ord (Color X e) Source # |
|
Defined in Graphics.Color.Model.X | |
Ord e => Ord (Color YCbCr e) Source # |
|
Defined in Graphics.Color.Model.YCbCr 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 # | |
Ord e => Ord (Color (Y i) e) Source # |
|
Defined in Graphics.Color.Space.Internal 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 # | |
Ord e => Ord (Color (CIExyY i) e) Source # | CIE xyY color space |
Defined in Graphics.Color.Space.Internal 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 |
Defined in Graphics.Color.Space.Internal 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 |
Defined in Graphics.Color.Space.CIE1976.LUV 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 |
Defined in Graphics.Color.Space.CIE1976.LUV.LCH 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 |
Defined in Graphics.Color.Space.CIE1976.LAB 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 |
Defined in Graphics.Color.Space.CIE1976.LAB.LCH 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 |
Defined in Graphics.Color.Space.RGB.ITU.Rec470 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 |
Defined in Graphics.Color.Space.RGB.ITU.Rec470 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 # |
|
Defined in Graphics.Color.Space.RGB.Alternative.HSV 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 # |
|
Defined in Graphics.Color.Space.RGB.Alternative.HSL 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 # |
|
Defined in Graphics.Color.Space.RGB.Alternative.HSI 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 # |
|
Defined in Graphics.Color.Space.CIE1931.RGB 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 # |
|
Defined in Graphics.Color.Space.RGB.Derived.CIERGB 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 # |
|
Defined in Graphics.Color.Space.RGB.Luma 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 |
Defined in Graphics.Color.Space.RGB.ITU.Rec601 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 |
Defined in Graphics.Color.Space.RGB.ITU.Rec601 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 |
Defined in Graphics.Color.Space.RGB.ITU.Rec709 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 # |
|
Defined in Graphics.Color.Space.RGB.AdobeRGB 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 # |
|
Defined in Graphics.Color.Space.RGB.Derived.AdobeRGB 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 # |
|
Defined in Graphics.Color.Space.RGB.SRGB 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 # |
|
Defined in Graphics.Color.Space.RGB.Derived.SRGB 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 # | |
Defined in Graphics.Color.Space.RGB.Alternative.YCbCr 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 # |
|
Defined in Graphics.Color.Space.RGB.Alternative.CMYK 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 # | |
Elevator e => Show (Color LCH e) Source # |
|
Elevator e => Show (Color RGB e) Source # |
|
Elevator e => Show (Color HSV e) Source # |
|
Elevator e => Show (Color HSL e) Source # |
|
Elevator e => Show (Color HSI e) Source # |
|
Elevator e => Show (Color CMYK e) Source # |
|
Elevator e => Show (Color X e) Source # |
|
Elevator e => Show (Color YCbCr e) Source # |
|
(Illuminant i, Elevator e) => Show (Color (Y i) e) Source # |
|
(Illuminant i, Elevator e) => Show (Color (CIExyY i) e) Source # | CIE xyY color space |
(Illuminant i, Elevator e) => Show (Color (XYZ i) e) Source # | CIE1931 |
(Illuminant i, Elevator e) => Show (Color (LUV i) e) Source # | CIE1976 |
(Illuminant i, Elevator e) => Show (Color (LCHuv i) e) Source # | CIE1976 |
(Illuminant i, Elevator e) => Show (Color (LAB i) e) Source # | CIE1976 |
(Illuminant i, Elevator e) => Show (Color (LCHab i) e) Source # | CIE1976 |
(Typeable l, Elevator e) => Show (Color (BT470_625 l) e) Source # | ITU-R BT.470 (625) color space |
(Typeable l, Elevator e) => Show (Color (BT470_525 l) e) Source # | ITU-R BT.470 (525) color space |
ColorModel cs e => Show (Color (HSV cs) e) Source # |
|
ColorModel cs e => Show (Color (HSL cs) e) Source # |
|
ColorModel cs e => Show (Color (HSI cs) e) Source # |
|
(Typeable l, Elevator e) => Show (Color (CIERGB l) e) Source # |
|
(Typeable l, Illuminant i, Elevator e) => Show (Color (CIERGB i l) e) Source # |
|
(Typeable cs, Elevator e) => Show (Color (Y' cs) e) Source # |
|
(Typeable l, Elevator e) => Show (Color (BT601_625 l) e) Source # | ITU-R BT.601 (625) color space |
(Typeable l, Elevator e) => Show (Color (BT601_525 l) e) Source # | ITU-R BT.601 (525) color space |
(Typeable l, Elevator e) => Show (Color (BT709 l) e) Source # | ITU-R BT.709 color space |
(Typeable l, Elevator e) => Show (Color (AdobeRGB l) e) Source # |
|
(Typeable l, Illuminant i, Elevator e) => Show (Color (AdobeRGB i l) e) Source # |
|
(Typeable l, Elevator e) => Show (Color (SRGB l) e) Source # |
|
(Typeable l, Illuminant i, Elevator e) => Show (Color (SRGB i l) e) Source # |
|
(Typeable cs, ColorModel (cs 'NonLinear) e, Elevator e) => Show (Color (Y'CbCr cs) e) Source # | |
ColorModel cs e => Show (Color (CMYK cs) e) Source # |
|
(Storable (Color cs e), Storable e) => Storable (Color (Alpha cs) e) Source # | |
Defined in Graphics.Color.Model.Internal 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 # |
|
Defined in Graphics.Color.Model.LCH 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 () # | |
Storable e => Storable (Color RGB e) Source # |
|
Defined in Graphics.Color.Model.RGB 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 () # | |
Storable e => Storable (Color HSV e) Source # |
|
Defined in Graphics.Color.Model.HSV 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 () # | |
Storable e => Storable (Color HSL e) Source # |
|
Defined in Graphics.Color.Model.HSL 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 () # | |
Storable e => Storable (Color HSI e) Source # |
|
Defined in Graphics.Color.Model.HSI 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 () # | |
Storable e => Storable (Color CMYK e) Source # |
|
Defined in Graphics.Color.Model.CMYK 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 () # | |
Storable e => Storable (Color X e) Source # |
|
Defined in Graphics.Color.Model.X | |
Storable e => Storable (Color YCbCr e) Source # |
|
Defined in Graphics.Color.Model.YCbCr 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 () # | |
Storable e => Storable (Color (Y i) e) Source # |
|
Defined in Graphics.Color.Space.Internal 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 () # | |
Storable e => Storable (Color (CIExyY i) e) Source # | CIE xyY color space |
Defined in Graphics.Color.Space.Internal 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 |
Defined in Graphics.Color.Space.Internal 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 () # | |
Storable e => Storable (Color (LUV i) e) Source # | CIE1976 |
Defined in Graphics.Color.Space.CIE1976.LUV 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 () # | |
Storable e => Storable (Color (LCHuv i) e) Source # | CIE1976 |
Defined in Graphics.Color.Space.CIE1976.LUV.LCH 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 |
Defined in Graphics.Color.Space.CIE1976.LAB 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 () # | |
Storable e => Storable (Color (LCHab i) e) Source # | CIE1976 |
Defined in Graphics.Color.Space.CIE1976.LAB.LCH 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 |
Defined in Graphics.Color.Space.RGB.ITU.Rec470 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 |
Defined in Graphics.Color.Space.RGB.ITU.Rec470 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 # |
|
Defined in Graphics.Color.Space.RGB.Alternative.HSV 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 # |
|
Defined in Graphics.Color.Space.RGB.Alternative.HSL 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 # |
|
Defined in Graphics.Color.Space.RGB.Alternative.HSI 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 # |
|
Defined in Graphics.Color.Space.CIE1931.RGB 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 # |
|
Defined in Graphics.Color.Space.RGB.Derived.CIERGB 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 # |
|
Defined in Graphics.Color.Space.RGB.Luma 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 () # | |
Storable e => Storable (Color (BT601_625 l) e) Source # | ITU-R BT.601 (625) color space |
Defined in Graphics.Color.Space.RGB.ITU.Rec601 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 |
Defined in Graphics.Color.Space.RGB.ITU.Rec601 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 |
Defined in Graphics.Color.Space.RGB.ITU.Rec709 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 # |
|
Defined in Graphics.Color.Space.RGB.AdobeRGB 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 # |
|
Defined in Graphics.Color.Space.RGB.Derived.AdobeRGB 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 # |
|
Defined in Graphics.Color.Space.RGB.SRGB 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 # |
|
Defined in Graphics.Color.Space.RGB.Derived.SRGB 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 # | |
Defined in Graphics.Color.Space.RGB.Alternative.YCbCr 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 # |
|
Defined in Graphics.Color.Space.RGB.Alternative.CMYK 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 # | |
Defined in Graphics.Color.Model.Internal | |
(ColorModel cs e, NFData e) => NFData (Color cs e) Source # | |
Defined in Graphics.Color.Model.Internal | |
ColorModel cs e => Unbox (Color cs e) Source # | Unboxing of a |
Defined in Graphics.Color.Model.Internal | |
newtype Color LCH e Source # |
|
Defined in Graphics.Color.Model.LCH | |
newtype Color RGB e Source # |
|
Defined in Graphics.Color.Model.RGB | |
newtype Color HSV e Source # |
|
Defined in Graphics.Color.Model.HSV | |
newtype Color HSL e Source # |
|
Defined in Graphics.Color.Model.HSL | |
newtype Color HSI e Source # |
|
Defined in Graphics.Color.Model.HSI | |
data Color CMYK e Source # |
|
Defined in Graphics.Color.Model.CMYK | |
newtype Color X e Source # | A single channel color |
Defined in Graphics.Color.Model.X | |
newtype Color YCbCr e Source # |
|
Defined in Graphics.Color.Model.YCbCr | |
newtype MVector s (Color cs e) Source # | |
Defined in Graphics.Color.Model.Internal | |
data Color (Alpha cs) e Source # | |
newtype Color (BT470_625 l) e Source # | |
newtype Color (BT470_525 l) e Source # | |
newtype Color (CIERGB l) e Source # |
|
newtype Color (Y' cs) e Source # | Constructor for Luma. |
newtype Color (BT601_625 l) e Source # | |
newtype Color (BT601_525 l) e Source # | |
newtype Color (BT709 l) e Source # | |
newtype Color (AdobeRGB l) e Source # | |
newtype Color (SRGB l) e Source # | |
newtype Color (Y'CbCr cs) e Source # | Constructor for |
newtype Vector (Color cs e) Source # | |
Defined in Graphics.Color.Model.Internal | |
newtype Color (Y i) e Source # | Luminance |
newtype Color (CIExyY i) e Source # | CIE1931 |
Defined in Graphics.Color.Space.Internal | |
newtype Color (XYZ i) e Source # | CIE1931 |
Defined in Graphics.Color.Space.Internal | |
newtype Color (LUV i) e Source # | Color in CIE L*u*v* color space |
Defined in Graphics.Color.Space.CIE1976.LUV | |
newtype Color (LCHuv i) e Source # | Color in CIE L*C*Huv color space |
newtype Color (LAB i) e Source # | Color in CIE L*a*b* color space |
Defined in Graphics.Color.Space.CIE1976.LAB | |
newtype Color (LCHab i) e Source # | Color in CIE L*C*Hab color space |
newtype Color (HSV cs) e Source # |
|
newtype Color (HSL cs) e Source # |
|
newtype Color (HSI cs) e Source # |
|
newtype Color (CMYK cs) e Source # |
|
newtype Color (CIERGB i l) e Source # |
|
newtype Color (AdobeRGB i l) e Source # |
|
newtype Color (SRGB i l) e Source # |
|
class (Illuminant i, ColorModel (BaseModel cs) e, ColorModel cs e) => ColorSpace cs (i :: k) e | cs -> i where Source #
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
newtype Chromaticity i e Source #
This is a data type that encodes a data point on the chromaticity diagram
Chromaticity | |
|
Instances
Eq e => Eq (Chromaticity i e) Source # | |
Defined in Graphics.Color.Space.Internal (==) :: Chromaticity i e -> Chromaticity i e -> Bool # (/=) :: Chromaticity i e -> Chromaticity i e -> Bool # | |
(Illuminant i, Elevator e) => Show (Chromaticity i e) Source # | |
Defined in Graphics.Color.Space.Internal showsPrec :: Int -> Chromaticity i e -> ShowS # show :: Chromaticity i e -> String # showList :: [Chromaticity i e] -> ShowS # |
:: Fractional e | |
=> e |
|
-> Primary i e | Primary that specifies |
-> Color (XYZ i) e |
class (Typeable i, Typeable k, KnownNat (Temperature i)) => Illuminant (i :: k) where Source #
type Temperature i :: n Source #
whitePoint :: RealFloat e => WhitePoint i e Source #
colorTemperature :: CCT i Source #
Instances
newtype WhitePoint (i :: k) e Source #
pattern WhitePoint :: e -> e -> WhitePoint i e | Constructor for the most common |
Instances
Eq e => Eq (WhitePoint i e) Source # | |
Defined in Graphics.Color.Space.Internal (==) :: WhitePoint i e -> WhitePoint i e -> Bool # (/=) :: WhitePoint i e -> WhitePoint i e -> Bool # | |
(Illuminant i, Elevator e) => Show (WhitePoint i e) Source # | |
Defined in Graphics.Color.Space.Internal 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
:: Fractional e | |
=> e |
|
-> WhitePoint i e | White point that specifies |
-> 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
Correlated color temperature (CCT) of a white point in Kelvin
Relative Luminance of a color
Instances
(Illuminant i, Elevator e) => ColorSpace (Y i) (i :: k) e Source # | CIE1931 |
Defined in Graphics.Color.Space.Internal 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 # |
|
Applicative (Color (Y i)) Source # |
|
Defined in Graphics.Color.Space.Internal | |
Foldable (Color (Y i)) Source # |
|
Defined in Graphics.Color.Space.Internal 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 # | |
Traversable (Color (Y i)) Source # |
|
Defined in Graphics.Color.Space.Internal | |
Eq e => Eq (Color (Y i) e) Source # |
|
Ord e => Ord (Color (Y i) e) Source # |
|
Defined in Graphics.Color.Space.Internal 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 # | |
(Illuminant i, Elevator e) => Show (Color (Y i) e) Source # |
|
Storable e => Storable (Color (Y i) e) Source # |
|
Defined in Graphics.Color.Space.Internal 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 () # | |
(Illuminant i, Elevator e) => ColorModel (Y i) e Source # |
|
Defined in Graphics.Color.Space.Internal type Components (Y i) e Source # toComponents :: Color (Y i) e -> Components (Y i) e Source # fromComponents :: Components (Y i) e -> Color (Y i) e Source # showsColorModelName :: Proxy (Color (Y i) e) -> ShowS Source # | |
newtype Color (Y i) e Source # | Luminance |
type BaseModel (Y i) Source # | |
Defined in Graphics.Color.Space.Internal | |
type BaseSpace (Y i) Source # | |
Defined in Graphics.Color.Space.Internal | |
type Components (Y i) e Source # | |
Defined in Graphics.Color.Space.Internal |
The original color space CIE 1931 XYZ color space
Instances
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.
Alternative representation of the CIE 1931 XYZ color space
Instances
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
showsColorModel :: ColorModel cs e => Color cs e -> ShowS Source #
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.
fieldFormat :: e -> FieldFormat Source #
toShowS :: e -> ShowS Source #
This is a pretty printer for the value.
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
module Data.Word