palette-0.3.0.2: Utilities for choosing and creating color schemes.

Copyright(c) 2013 Jeffrey Rosenbluth
LicenseBSD-style (see LICENSE)
Maintainerjeffrey.rosenbluth@gmail.com
Safe HaskellSafe
LanguageHaskell2010

Data.Colour.Palette.Harmony

Contents

Description

Utility functions to creating color schemes.

Synopsis

Choosing color schemes

Synonym for Colour Double

type Kolor = Colour Double #

A convenient alias.

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.

triad :: Kolor -> [Kolor] #

A color chord based on three equally spaced hues.

tetrad :: Kolor -> [Kolor] #

Scheme based on 4 colors on a rectangle incscribed in the RYB color wheel.

analogic :: Kolor -> [Kolor] #

Chord base on three adjacent colors on the artists color wheel.

accentAnalogic :: Kolor -> [Kolor] #

Analogic chord plus the color opposite to the base color.

bwg :: Kolor -> [Kolor] #

Black, white and gray with a touch of the base color added.

colorRamp :: Int -> [Kolor] -> [Kolor] #

Interpolate n colors from a list of colors using linear piecewise interpolation to add additional colors to a palette.