@hackage prizm0.3.1.0

A haskell library for computing with colors

Welcome!

Prizm is a haskell library for dealing with colors. Please contribute!

My inspiration for writing this was Sass and Bourbon, both implement interesting color handling functions for use in stylesheets and I wanted the same thing for use in Clay (also for Bentonite).

Colour Module

There is some overlap with the Haskell Colour Module that already exists; however, this library is filling a couple of needs the other doesn't satisfy.

Supported Algorithms

  • sRGB <-> CIE XYZ
  • CIE XYZ <-> CIE L*ab
  • CIE L*ab <-> CIE L*Ch

Supported Functions

  • Color interpolation
  • Tinting / Darkening
  • Lightness
  • Hue
  • Chroma/Saturation

All of these functions operate on color within the CIE L*Ch representation. The percentage values may range between -100 and 100.

General Color Formulas, Data, and Algorithms

CIE Conversion Mathematics

Conversion Algorithm Sources

Good list of useful color manipulation