prizm-3.0.0: Convert colors to different color spaces, interpolate colors, and transform colors

Copyright(C) 2017 Parnell Springmeyer
LicenseBSD3
MaintainerParnell Springmeyer <parnell@digitalmentat.com>
Stabilitystable
Safe HaskellSafe
LanguageHaskell2010

Data.Prizm.Color.CIE.Types

Description

 

Synopsis

Documentation

newtype XYZ Source #

A color in the CIE XYZ color space.

Constructors

XYZ 

Instances

Eq XYZ Source # 

Methods

(==) :: XYZ -> XYZ -> Bool #

(/=) :: XYZ -> XYZ -> Bool #

Ord XYZ Source # 

Methods

compare :: XYZ -> XYZ -> Ordering #

(<) :: XYZ -> XYZ -> Bool #

(<=) :: XYZ -> XYZ -> Bool #

(>) :: XYZ -> XYZ -> Bool #

(>=) :: XYZ -> XYZ -> Bool #

max :: XYZ -> XYZ -> XYZ #

min :: XYZ -> XYZ -> XYZ #

Show XYZ Source # 

Methods

showsPrec :: Int -> XYZ -> ShowS #

show :: XYZ -> String #

showList :: [XYZ] -> ShowS #

newtype LAB Source #

A color in the CIE L*a*b* color space.

Constructors

LAB 

Instances

Eq LAB Source # 

Methods

(==) :: LAB -> LAB -> Bool #

(/=) :: LAB -> LAB -> Bool #

Ord LAB Source # 

Methods

compare :: LAB -> LAB -> Ordering #

(<) :: LAB -> LAB -> Bool #

(<=) :: LAB -> LAB -> Bool #

(>) :: LAB -> LAB -> Bool #

(>=) :: LAB -> LAB -> Bool #

max :: LAB -> LAB -> LAB #

min :: LAB -> LAB -> LAB #

Show LAB Source # 

Methods

showsPrec :: Int -> LAB -> ShowS #

show :: LAB -> String #

showList :: [LAB] -> ShowS #

newtype LCH Source #

A color in the CIE L*C*h(uv) color space.

Constructors

LCH 

Instances

Eq LCH Source # 

Methods

(==) :: LCH -> LCH -> Bool #

(/=) :: LCH -> LCH -> Bool #

Ord LCH Source # 

Methods

compare :: LCH -> LCH -> Ordering #

(<) :: LCH -> LCH -> Bool #

(<=) :: LCH -> LCH -> Bool #

(>) :: LCH -> LCH -> Bool #

(>=) :: LCH -> LCH -> Bool #

max :: LCH -> LCH -> LCH #

min :: LCH -> LCH -> LCH #

Show LCH Source # 

Methods

showsPrec :: Int -> LCH -> ShowS #

show :: LCH -> String #

showList :: [LCH] -> ShowS #

AdjustableColor LCH Source # 
BlendableColor LCH Source # 
PresetColor LCH Source # 

mkXYZ Source #

Arguments

:: Double

X color point

-> Double

Y color point

-> Double

Z color point

-> XYZ 

Produce a CIE XYZ color.

mkLAB Source #

Arguments

:: Double

L color point

-> Double

*a color point

-> Double

*b color point

-> LAB 

Produce a CIE LAB color.

mkLCH Source #

Arguments

:: Double

L color point

-> Double

*c color point

-> Double

*h color point

-> LCH 

Produce a CIE LCH color.