Version 1.0.4-0 of prizm is deprecated.
The latest version of prizm is 3.0.0-0.

prizm

Version 1.0.4 revision 0 uploaded by ParnellSpringmeyer.

Package meta

Synopsis
Color transformations in different color spaces
Description

prizm is a Haskell library for transforming colors. Specifically, providing functions for transforming between different color spaces (CIE and sRGB), interpolating colors and adjusting the tint, shade, hue, or lightness or a color.

The inspiration for this library came from a desire to blend two colors represented in the sRGB color space. My research about color blending and color space representation in the computer led me to the conclusion that the CIE L*Ch color space is the most effective for blending because it most accurately represents how the human eye sees hue and therefore preserves (and blends) hue the most accurately.

Colour Module

There is a bit of overlap with the Haskell Colour Module; however, this library is filling a couple of needs the other doesn't satisfy. Primarily transformations and color mutations in the CIE L*Ch space.

Supported Algorithms & Functions

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

  • sRGB     - CIE XYZ
  • CIE XYZ  - CIE L*ab
  • CIE L*ab - CIE L*Ch
  • Color interpolation

  • Tinting / Darkening

  • Lightness

  • Hue

  • Chroma/Saturation

Formulas, Resources, and Links

Author
Parnell Springmeyer
Bug reports
https://github.com/ixmatus/prizm/issues
Category
Graphics
Copyright
(c) 2013 Parnell Springmeyer
Homepage
https://github.com/ixmatus/prizm
Maintainer
parnell+hackage@digitalmentat.com
Package URL
http://hackage.haskell.org/package/prizm
Stability
stable

Components