Maintainer | Malte Harder <malte.harder@gmail.com> |
---|
Craftwerk uses the Data.Colour package to represent colours in styles.
- module Data.Colour.SRGB
- module Data.Colour.Names
- type FigureColor = Colour Double
- integralColor :: Integral a => a -> FigureColor
Documentation
module Data.Colour.SRGB
module Data.Colour.Names
type FigureColor = Colour DoubleSource
The colour type used by Craftwerk
integralColor :: Integral a => a -> FigureColorSource
Returns the i-th of 16 basic named colours (i % 16 to be precise).