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

Description

 
Synopsis

Documentation

pattern ColorXYZ :: e -> e -> e -> Color (XYZ i) e Source #

Constructor for the most common XYZ color space

data XYZ i Source #

The original color space CIE 1931 XYZ color space

Instances

Instances details
(Illuminant i, Elevator e) => ColorSpace (XYZ i) (i :: k) e Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Associated Types

type BaseModel (XYZ i) Source #

type BaseSpace (XYZ i) Source #

Methods

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

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

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

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

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

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

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

Functor (Color (XYZ i)) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

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

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

Applicative (Color (XYZ i)) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

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

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

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

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

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

Foldable (Color (XYZ i)) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Traversable (Color (XYZ i)) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

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

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

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

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

Eq e => Eq (Color (XYZ i) e) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

(==) :: Color (XYZ i) e -> Color (XYZ i) e -> Bool #

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

Ord e => Ord (Color (XYZ i) e) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

compare :: Color (XYZ i) e -> Color (XYZ i) e -> Ordering #

(<) :: Color (XYZ i) e -> Color (XYZ i) e -> Bool #

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

(>) :: Color (XYZ i) e -> Color (XYZ i) e -> Bool #

(>=) :: Color (XYZ i) e -> Color (XYZ i) e -> Bool #

max :: Color (XYZ i) e -> Color (XYZ i) e -> Color (XYZ i) e #

min :: Color (XYZ i) e -> Color (XYZ i) e -> Color (XYZ i) e #

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

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

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

show :: Color (XYZ i) e -> String #

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

Storable e => Storable (Color (XYZ i) e) Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Methods

sizeOf :: Color (XYZ i) e -> Int #

alignment :: Color (XYZ i) e -> Int #

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

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

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

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

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

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

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

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

Associated Types

type Components (XYZ i) e Source #

newtype Color (XYZ i) e Source #

CIE1931 XYZ color space

Instance details

Defined in Graphics.Color.Space.Internal

newtype Color (XYZ i) e = XYZ (V3 e)
type BaseModel (XYZ i) Source # 
Instance details

Defined in Graphics.Color.Space.Internal

type BaseModel (XYZ i) = XYZ i
type BaseSpace (XYZ i) Source # 
Instance details

Defined in Graphics.Color.Space.Internal

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

Defined in Graphics.Color.Space.Internal

type Components (XYZ i) e = (e, e, e)