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

Graphics.Color.Space.RGB.ITU.Rec470

Description

 
Synopsis

Documentation

pattern BT470_525 :: Color RGB e -> Color (BT470_525 l) e Source #

data BT470_525 (l :: Linearity) Source #

ITU-R BT.470 (525) color space. Used in NTSC

Instances

Instances details
Functor (Color (BT470_525 l)) Source #

ITU-R BT.470 (525) color space

Instance details

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

Methods

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

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

Applicative (Color (BT470_525 l)) Source #

ITU-R BT.470 (525) color space

Instance details

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

Methods

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

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

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

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

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

Foldable (Color (BT470_525 l)) Source #

ITU-R BT.470 (525) color space

Instance details

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

Methods

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Traversable (Color (BT470_525 l)) Source #

ITU-R BT.470 (525) color space

Instance details

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

Methods

traverse :: Applicative f => (a -> f b) -> Color (BT470_525 l) a -> f (Color (BT470_525 l) b) #

sequenceA :: Applicative f => Color (BT470_525 l) (f a) -> f (Color (BT470_525 l) a) #

mapM :: Monad m => (a -> m b) -> Color (BT470_525 l) a -> m (Color (BT470_525 l) b) #

sequence :: Monad m => Color (BT470_525 l) (m a) -> m (Color (BT470_525 l) a) #

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

ITU-R BT.470 (525) color space

Instance details

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

Associated Types

type Components (BT470_525 l) e Source #

RedGreenBlue BT470_525 C Source #

ITU-R BT.470 (525) color space

Instance details

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

Elevator e => ColorSpace (BT470_525 'Linear) C e Source #

ITU-R BT.470 (525) color space

Instance details

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

Elevator e => ColorSpace (BT470_525 'NonLinear) C e Source #

ITU-R BT.470 (525) color space

Instance details

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

ColorSpace (BT470_525 l) D65 e => ColorSpace (CMYK (BT470_525 l)) D65 e Source #

CMYK representation for BT470_525 color space

Instance details

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

Associated Types

type BaseModel (CMYK (BT470_525 l)) Source #

type BaseSpace (CMYK (BT470_525 l)) Source #

Eq e => Eq (Color (BT470_525 l) e) Source #

ITU-R BT.470 (525) color space

Instance details

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

Methods

(==) :: Color (BT470_525 l) e -> Color (BT470_525 l) e -> Bool #

(/=) :: Color (BT470_525 l) e -> Color (BT470_525 l) e -> Bool #

Ord e => Ord (Color (BT470_525 l) e) Source #

ITU-R BT.470 (525) color space

Instance details

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

Methods

compare :: Color (BT470_525 l) e -> Color (BT470_525 l) e -> Ordering #

(<) :: Color (BT470_525 l) e -> Color (BT470_525 l) e -> Bool #

(<=) :: Color (BT470_525 l) e -> Color (BT470_525 l) e -> Bool #

(>) :: Color (BT470_525 l) e -> Color (BT470_525 l) e -> Bool #

(>=) :: Color (BT470_525 l) e -> Color (BT470_525 l) e -> Bool #

max :: Color (BT470_525 l) e -> Color (BT470_525 l) e -> Color (BT470_525 l) e #

min :: Color (BT470_525 l) e -> Color (BT470_525 l) e -> Color (BT470_525 l) e #

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

ITU-R BT.470 (525) color space

Instance details

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

Methods

showsPrec :: Int -> Color (BT470_525 l) e -> ShowS #

show :: Color (BT470_525 l) e -> String #

showList :: [Color (BT470_525 l) e] -> ShowS #

Storable e => Storable (Color (BT470_525 l) e) Source #

ITU-R BT.470 (525) color space

Instance details

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

Methods

sizeOf :: Color (BT470_525 l) e -> Int #

alignment :: Color (BT470_525 l) e -> Int #

peekElemOff :: Ptr (Color (BT470_525 l) e) -> Int -> IO (Color (BT470_525 l) e) #

pokeElemOff :: Ptr (Color (BT470_525 l) e) -> Int -> Color (BT470_525 l) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (BT470_525 l) e) #

pokeByteOff :: Ptr b -> Int -> Color (BT470_525 l) e -> IO () #

peek :: Ptr (Color (BT470_525 l) e) -> IO (Color (BT470_525 l) e) #

poke :: Ptr (Color (BT470_525 l) e) -> Color (BT470_525 l) e -> IO () #

newtype Color (BT470_525 l) e Source # 
Instance details

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

newtype Color (BT470_525 l) e = BT470_525 (Color RGB e)
type BaseModel (BT470_525 'Linear) Source # 
Instance details

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

type BaseModel (BT470_525 'NonLinear) Source # 
Instance details

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

type BaseSpace (BT470_525 'Linear) Source # 
Instance details

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

type BaseSpace (BT470_525 'NonLinear) Source # 
Instance details

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

type Components (BT470_525 l) e Source # 
Instance details

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

type Components (BT470_525 l) e = (e, e, e)
type BaseModel (CMYK (BT470_525 l)) Source # 
Instance details

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

type BaseSpace (CMYK (BT470_525 l)) Source # 
Instance details

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

data C Source #

Whitepoint C that is used for ITU: Rec.470 (525). It is slightly different than C that is defined by CIE1931, thus a separate declaration in here.

>>> whitePoint :: WhitePoint C Float
WhitePoint (Chromaticity {chromaticityCIExyY = <CIExyY * C:( 0.31000000, 0.31600000)>})
>>> whitePointTristimulus :: Color (XYZ C) Float
<XYZ * C:( 0.98101264, 1.00000000, 1.18354420)>
>>> colorTemperature :: CCT C
CCT {unCCT = 6774.0}

Since: 0.1.0

Instances

Instances details
Illuminant C Source #

[x=0.310, y=0.316] - Rec. ITU-R BT.470-7

Instance details

Defined in Graphics.Color.Illuminant.ITU.Rec470

Associated Types

type Temperature C :: n Source #

RedGreenBlue BT470_525 C Source #

ITU-R BT.470 (525) color space

Instance details

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

Elevator e => ColorSpace (BT470_525 'Linear) C e Source #

ITU-R BT.470 (525) color space

Instance details

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

Elevator e => ColorSpace (BT470_525 'NonLinear) C e Source #

ITU-R BT.470 (525) color space

Instance details

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

type Temperature C Source # 
Instance details

Defined in Graphics.Color.Illuminant.ITU.Rec470

type Temperature C = 6774

pattern BT470_625 :: Color RGB e -> Color (BT470_625 l) e Source #

data BT470_625 (l :: Linearity) Source #

ITU-R BT.470 (625) color space. Used in PAL/SECAM

Instances

Instances details
Functor (Color (BT470_625 l)) Source #

ITU-R BT.470 (625) color space

Instance details

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

Methods

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

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

Applicative (Color (BT470_625 l)) Source #

ITU-R BT.470 (625) color space

Instance details

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

Methods

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

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

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

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

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

Foldable (Color (BT470_625 l)) Source #

ITU-R BT.470 (625) color space

Instance details

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

Methods

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Traversable (Color (BT470_625 l)) Source #

ITU-R BT.470 (625) color space

Instance details

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

Methods

traverse :: Applicative f => (a -> f b) -> Color (BT470_625 l) a -> f (Color (BT470_625 l) b) #

sequenceA :: Applicative f => Color (BT470_625 l) (f a) -> f (Color (BT470_625 l) a) #

mapM :: Monad m => (a -> m b) -> Color (BT470_625 l) a -> m (Color (BT470_625 l) b) #

sequence :: Monad m => Color (BT470_625 l) (m a) -> m (Color (BT470_625 l) a) #

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

ITU-R BT.470 (625) color space

Instance details

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

Associated Types

type Components (BT470_625 l) e Source #

RedGreenBlue BT470_625 D65 Source #

ITU-R BT.470 (625) color space

Instance details

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

Elevator e => ColorSpace (BT470_625 'Linear) D65 e Source #

ITU-R BT.470 (625) color space

Instance details

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

Elevator e => ColorSpace (BT470_625 'NonLinear) D65 e Source #

ITU-R BT.470 (625) color space

Instance details

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

ColorSpace (BT470_625 l) D65 e => ColorSpace (CMYK (BT470_625 l)) D65 e Source #

CMYK representation for BT470_625 color space

Instance details

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

Associated Types

type BaseModel (CMYK (BT470_625 l)) Source #

type BaseSpace (CMYK (BT470_625 l)) Source #

Eq e => Eq (Color (BT470_625 l) e) Source #

ITU-R BT.470 (625) color space

Instance details

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

Methods

(==) :: Color (BT470_625 l) e -> Color (BT470_625 l) e -> Bool #

(/=) :: Color (BT470_625 l) e -> Color (BT470_625 l) e -> Bool #

Ord e => Ord (Color (BT470_625 l) e) Source #

ITU-R BT.470 (625) color space

Instance details

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

Methods

compare :: Color (BT470_625 l) e -> Color (BT470_625 l) e -> Ordering #

(<) :: Color (BT470_625 l) e -> Color (BT470_625 l) e -> Bool #

(<=) :: Color (BT470_625 l) e -> Color (BT470_625 l) e -> Bool #

(>) :: Color (BT470_625 l) e -> Color (BT470_625 l) e -> Bool #

(>=) :: Color (BT470_625 l) e -> Color (BT470_625 l) e -> Bool #

max :: Color (BT470_625 l) e -> Color (BT470_625 l) e -> Color (BT470_625 l) e #

min :: Color (BT470_625 l) e -> Color (BT470_625 l) e -> Color (BT470_625 l) e #

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

ITU-R BT.470 (625) color space

Instance details

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

Methods

showsPrec :: Int -> Color (BT470_625 l) e -> ShowS #

show :: Color (BT470_625 l) e -> String #

showList :: [Color (BT470_625 l) e] -> ShowS #

Storable e => Storable (Color (BT470_625 l) e) Source #

ITU-R BT.470 (625) color space

Instance details

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

Methods

sizeOf :: Color (BT470_625 l) e -> Int #

alignment :: Color (BT470_625 l) e -> Int #

peekElemOff :: Ptr (Color (BT470_625 l) e) -> Int -> IO (Color (BT470_625 l) e) #

pokeElemOff :: Ptr (Color (BT470_625 l) e) -> Int -> Color (BT470_625 l) e -> IO () #

peekByteOff :: Ptr b -> Int -> IO (Color (BT470_625 l) e) #

pokeByteOff :: Ptr b -> Int -> Color (BT470_625 l) e -> IO () #

peek :: Ptr (Color (BT470_625 l) e) -> IO (Color (BT470_625 l) e) #

poke :: Ptr (Color (BT470_625 l) e) -> Color (BT470_625 l) e -> IO () #

newtype Color (BT470_625 l) e Source # 
Instance details

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

newtype Color (BT470_625 l) e = BT470_625 (Color RGB e)
type BaseModel (BT470_625 'Linear) Source # 
Instance details

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

type BaseModel (BT470_625 'NonLinear) Source # 
Instance details

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

type BaseSpace (BT470_625 'Linear) Source # 
Instance details

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

type BaseSpace (BT470_625 'NonLinear) Source # 
Instance details

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

type Components (BT470_625 l) e Source # 
Instance details

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

type Components (BT470_625 l) e = (e, e, e)
type BaseModel (CMYK (BT470_625 l)) Source # 
Instance details

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

type BaseSpace (CMYK (BT470_625 l)) Source # 
Instance details

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

data D65 Source #

Whitepoint D65 that is used for ITU: Rec.470 (625). It is slightly different than D65 that is defined by CIE1931 and D65 specified in Rec.601, thus a separate declaration in here.

>>> whitePoint :: WhitePoint D65 Float
WhitePoint (Chromaticity {chromaticityCIExyY = <CIExyY * D65:( 0.31300000, 0.32900000)>})
>>> whitePointTristimulus :: Color (XYZ D65) Float
<XYZ * D65:( 0.95136780, 1.00000000, 1.08814610)>
>>> colorTemperature :: CCT D65
CCT {unCCT = 6504.0}

Since: 0.1.0

Instances

Instances details
Illuminant D65 Source #

[x=0.313, y=0.329] - Rec. ITU-R BT.470-7

Instance details

Defined in Graphics.Color.Illuminant.ITU.Rec470

Associated Types

type Temperature D65 :: n Source #

RedGreenBlue BT470_625 D65 Source #

ITU-R BT.470 (625) color space

Instance details

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

Elevator e => ColorSpace (BT470_625 'Linear) D65 e Source #

ITU-R BT.470 (625) color space

Instance details

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

Elevator e => ColorSpace (BT470_625 'NonLinear) D65 e Source #

ITU-R BT.470 (625) color space

Instance details

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

type Temperature D65 Source # 
Instance details

Defined in Graphics.Color.Illuminant.ITU.Rec470

type Temperature D65 = 6504