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

Graphics.Color.Space.RGB.Derived.CIERGB

Description

 
Synopsis

Documentation

data CIERGB (i :: k) (l :: Linearity) Source #

The original CIE1931 RGB color space with an arbitrary illuminant

Instances

Instances details
Illuminant i => RedGreenBlue (CIERGB i) (i :: k) Source #

CIERGB color space (derived)

Instance details

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

Methods

gamut :: RealFloat e => Gamut (CIERGB i) i e Source #

transfer :: RealFloat e => e -> e Source #

itransfer :: RealFloat e => e -> e Source #

npm :: (ColorSpace (CIERGB i 'Linear) i e, RealFloat e) => NPM (CIERGB i) e Source #

inpm :: (ColorSpace (CIERGB i 'Linear) i e, RealFloat e) => INPM (CIERGB i) e Source #

mkColorRGB :: forall e (l :: Linearity). Color RGB e -> Color (CIERGB i l) e Source #

unColorRGB :: forall (l :: Linearity) e. Color (CIERGB i l) e -> Color RGB e Source #

(Illuminant i, Typeable l, Elevator e) => ColorSpace (CIERGB i l) (i :: k) e Source #

CIERGB color space (derived)

Instance details

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

Associated Types

type BaseModel (CIERGB i l) Source #

type BaseSpace (CIERGB i l) Source #

Methods

toBaseModel :: Color (CIERGB i l) e -> Color (BaseModel (CIERGB i l)) e Source #

fromBaseModel :: Color (BaseModel (CIERGB i l)) e -> Color (CIERGB i l) e Source #

toBaseSpace :: Color (CIERGB i l) e -> Color (BaseSpace (CIERGB i l)) e Source #

fromBaseSpace :: Color (BaseSpace (CIERGB i l)) e -> Color (CIERGB i l) e Source #

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

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

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

Functor (Color (CIERGB i l)) Source #

CIERGB color space (derived)

Instance details

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

Methods

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

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

Applicative (Color (CIERGB i l)) Source #

CIERGB color space (derived)

Instance details

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

Methods

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

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

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

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

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

Foldable (Color (CIERGB i l)) Source #

CIERGB color space (derived)

Instance details

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

Methods

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Traversable (Color (CIERGB i l)) Source #

CIERGB color space (derived)

Instance details

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

Methods

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

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

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

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

Eq e => Eq (Color (CIERGB i l) e) Source #

CIERGB color space (derived)

Instance details

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

Methods

(==) :: Color (CIERGB i l) e -> Color (CIERGB i l) e -> Bool #

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

Ord e => Ord (Color (CIERGB i l) e) Source #

CIERGB color space (derived)

Instance details

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

Methods

compare :: Color (CIERGB i l) e -> Color (CIERGB i l) e -> Ordering #

(<) :: Color (CIERGB i l) e -> Color (CIERGB i l) e -> Bool #

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

(>) :: Color (CIERGB i l) e -> Color (CIERGB i l) e -> Bool #

(>=) :: Color (CIERGB i l) e -> Color (CIERGB i l) e -> Bool #

max :: Color (CIERGB i l) e -> Color (CIERGB i l) e -> Color (CIERGB i l) e #

min :: Color (CIERGB i l) e -> Color (CIERGB i l) e -> Color (CIERGB i l) e #

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

CIERGB color space (derived)

Instance details

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

Methods

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

show :: Color (CIERGB i l) e -> String #

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

Storable e => Storable (Color (CIERGB i l) e) Source #

CIERGB color space (derived)

Instance details

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

Methods

sizeOf :: Color (CIERGB i l) e -> Int #

alignment :: Color (CIERGB i l) e -> Int #

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

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

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

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

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

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

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

CIERGB color space (derived)

Instance details

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

Associated Types

type Components (CIERGB i l) e Source #

newtype Color (CIERGB i l) e Source #

CIERGB color space (derived)

Instance details

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

newtype Color (CIERGB i l) e = CIERGB (Color RGB e)
type BaseModel (CIERGB i l) Source # 
Instance details

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

type BaseModel (CIERGB i l) = RGB
type BaseSpace (CIERGB i l) Source # 
Instance details

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

type BaseSpace (CIERGB i l) = CIERGB i l
type Components (CIERGB i l) e Source # 
Instance details

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

type Components (CIERGB i l) e = (e, e, e)

castLinearity :: Color (CIERGB i l') e -> Color (CIERGB i l) e Source #

CIE RGB does not utilize any gamma function, therefore it is safe to cast the Linearity kind.

Since: 0.2.0