Copyright | (c) 2013 Jeffrey Rosenbluth |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | jeffrey.rosenbluth@gmail.com |
Safe Haskell | Safe |
Language | Haskell2010 |
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.
Predefined color palettes
Synonym for Colour Double
RYB color wheel - red, rellow, blue
Artist's pigment color wheel
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
.
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
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.