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

Maintainerjeffrey.rosenbluth@gmail.com
Safe HaskellSafe-Inferred

Data.Colour.Palette.Harmony

Contents

Description

Utility functions to creating color schemes.

Synopsis

Choosing color schemes

Color utilities

tint :: Double -> Kolor -> KolorSource

Tints a color by adding blending t * white + (1 - t) color. t should be between 0 and 1.

tone :: Double -> Kolor -> KolorSource

Alter the tone of a color by adding blending t * gray + (1 - t) color. t should be between 0 and 1.

shade :: Double -> Kolor -> KolorSource

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) -> KolorSource

Rotate a color and apply one function to its saturation and another to its value.

rotateColor :: Double -> Kolor -> KolorSource

Rotate a color on the RYB color wheel

Color harmonies

monochrome :: Kolor -> [Kolor]Source

Create a monochromatic set of 5 colors based in the input color.

complement :: Kolor -> [Kolor]Source

A color harmony using the base color and its opposite.

triad :: Kolor -> [Kolor]Source

A color chord based on three equally spaced hues.

tetrad :: Kolor -> [Kolor]Source

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

analogic :: Kolor -> [Kolor]Source

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

accentAnalogic :: Kolor -> [Kolor]Source

Analogic chord plus the color opposite to the base color.

bwg :: Kolor -> [Kolor]Source

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