Copyright | (c) 2013 Jeffrey Rosenbluth |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | jeffrey.rosenbluth@gmail.com |
Safe Haskell | Safe |
Language | Haskell2010 |
Utility functions to creating color schemes.
- type Kolor = Colour Double
- tint :: Double -> Kolor -> Kolor
- tone :: Double -> Kolor -> Kolor
- shade :: Double -> Kolor -> Kolor
- sliders :: Kolor -> Double -> (Double -> Double) -> (Double -> Double) -> Kolor
- rotateColor :: Double -> Kolor -> Kolor
- monochrome :: Kolor -> [Kolor]
- complement :: Kolor -> [Kolor]
- triad :: Kolor -> [Kolor]
- tetrad :: Kolor -> [Kolor]
- analogic :: Kolor -> [Kolor]
- accentAnalogic :: Kolor -> [Kolor]
- bwg :: Kolor -> [Kolor]
Choosing color schemes
Synonym for Colour Double
Color utilities
tint :: Double -> Kolor -> Kolor #
Tints a color by adding blending t * white + (1 - t) color. t should be between 0 and 1.
tone :: Double -> Kolor -> Kolor #
Alter the tone of a color by adding blending t * gray + (1 - t) color. t should be between 0 and 1.
shade :: Double -> Kolor -> Kolor #
Shades a color by adding blending s * black + (1 - t) color. t should be between 0 and 1.
sliders :: Kolor -> Double -> (Double -> Double) -> (Double -> Double) -> Kolor #
Rotate a color and apply one function to its saturation and another to its value.
rotateColor :: Double -> Kolor -> Kolor #
Rotate a color on the RYB color wheel
Color harmonies
monochrome :: Kolor -> [Kolor] #
Create a monochromatic set of 5 colors based in the input color.
complement :: Kolor -> [Kolor] #
A color harmony using the base color and its opposite.
Scheme based on 4 colors on a rectangle incscribed in the RYB color wheel.
accentAnalogic :: Kolor -> [Kolor] #
Analogic chord plus the color opposite to the base color.