palette-0.1.0.5: 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.ColorSet

Contents

Description

Predefined sets of colors. Including the common html/css colors, The colors from d3.js and the standard color wheel. d3 Colors from https://github.com/mbostock/d3/wiki/Ordinal-Scales.

Synopsis

Predefined color palettes

Synonym for Colour Double

RYB color wheel - red, rellow, blue

Artist's pigment color wheel

rybColor :: Int -> Kolor #

The 24 colors from the artist's RYB color wheel. 0 == red.

Colors from d3.js

data Brightness #

Four levels of brightness for functions that take a Brightness parameter. For functions with only two levels of Brightness we set darkest == dark and lightest == light.

Constructors

Darkest 
Dark 
Light 
Lightest 

d3Colors1 :: Int -> Kolor #

Choose from one of 10 contrasting colors (0-9) borrowed from mbostock's d3.

d3Colors2 :: Brightness -> Int -> Kolor #

Choose 0 for dark and 1 for light for each pair of 10 sets of contrasting colors (0-9) from d3.

d3Colors4 :: Brightness -> Int -> Kolor #

Choose from 4 levels of darkness - 0 for darkest, 3 - for lightest. From 10 quadruples of contrasting colors (0-9) from d3.

Common html colors

webColors :: Int -> Kolor #

Return a color from webColorL arranged as to provide nice contrast between near by colors.

infiniteWebColors :: [Kolor] #

A List of webColors ordered as above, cycling infinitely many times.

getWebColor :: Array Int Kolor -> Int -> Int -> Kolor #

Choose the nth color in an array a skipping skip colors every time.