| Safe Haskell | Safe-Inferred |
|---|
Data.Prizm.Color
- (<|>) :: CIELCH Double -> CIELCH Double -> CIELCH Double
- shade :: CIELCH Double -> Percent -> CIELCH Double
- tint :: CIELCH Double -> Percent -> CIELCH Double
- lightness :: CIELCH Double -> Percent -> CIELCH Double
- chroma :: CIELCH Double -> Percent -> CIELCH Double
- hue :: CIELCH Double -> Percent -> CIELCH Double
- interpolate :: Percent -> (CIELCH Double, CIELCH Double) -> CIELCH Double
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.
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.