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.CIE1931.RGB

Description

 
Synopsis

Documentation

data CIERGB (l :: Linearity) Source #

The original CIE1931 RGB color space with an arbitrary illuminant

Instances

Instances details
RedGreenBlue CIERGB 'E Source #

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Methods

gamut :: RealFloat e => Gamut CIERGB 'E e Source #

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

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

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

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

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

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

(Typeable l, Elevator e) => ColorSpace (CIERGB l) 'E e Source #

CIERGB linear color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Associated Types

type BaseModel (CIERGB l) Source #

type BaseSpace (CIERGB l) Source #

Functor (Color (CIERGB l)) Source #

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Methods

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

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

Applicative (Color (CIERGB l)) Source #

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Methods

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

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

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

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

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

Foldable (Color (CIERGB l)) Source #

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Methods

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Traversable (Color (CIERGB l)) Source #

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Methods

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

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

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

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

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

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Associated Types

type Components (CIERGB l) e Source #

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

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Methods

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

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

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

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Methods

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

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

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

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

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

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

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

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

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Methods

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

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

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

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

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

Methods

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

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

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

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

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

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

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

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

newtype Color (CIERGB l) e Source #

CIERGB color space

Instance details

Defined in Graphics.Color.Space.CIE1931.RGB

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

Defined in Graphics.Color.Space.CIE1931.RGB

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

Defined in Graphics.Color.Space.CIE1931.RGB

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

Defined in Graphics.Color.Space.CIE1931.RGB

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

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

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

Since: 0.2.0