prizm-0.3.1.0: A haskell library for computing with colors

Safe HaskellSafe-Inferred

Data.Prizm.Color

Synopsis

Documentation

(<|>) :: CIELCH Double -> CIELCH Double -> CIELCH DoubleSource

Blend two colors using an interpolation value of 50%.

shade :: CIELCH Double -> Percent -> CIELCH DoubleSource

Shade a color by blending it using a weight and the color black.

tint :: CIELCH Double -> Percent -> CIELCH DoubleSource

Tint a color by blending it using a weight and the color white.

chroma :: CIELCH Double -> Percent -> CIELCH DoubleSource

Change the saturation/chroma of a color. A maximum chroma value of 120 is assumed here, anything more is generally considered out of gamut.

hue :: CIELCH Double -> Percent -> CIELCH DoubleSource

Change the hue of a color.

interpolate :: Percent -> (CIELCH Double, CIELCH Double) -> CIELCH DoubleSource

Interpolate two colors

Weight is applied left to right, so if a weight of 25% is supplied, then the color on the left will be multiplied by 25% and the second color will be multiplied by 75%.

CIE L*Ch is used because the interpolation between the colors is more accurate than L*ab, XYZ, and sRGB color spaces.