prizm-3.0.0: Convert colors to different color spaces, interpolate colors, and transform colors

Copyright(C) 2013 Parnell Springmeyer
LicenseBSD3
MaintainerParnell Springmeyer <parnell@digitalmentat.com>
Stabilitystable
Safe HaskellSafe
LanguageHaskell2010

Data.Prizm.Color.Transform

Description

 

Synopsis

Documentation

roundN Source #

Arguments

:: Integer

Nth place to round a number to

-> Double

Number to round

-> Double 

Round a number to the Nth decimal place.

zipTransform Source #

Arguments

:: ZipList Double

ZipList of values to transform matrix triplet

-> [Double]

Working space triplet

-> Double

Sum of the sequentially applied transformation

Transform a triplet of values from a working space matrix, sequentially multiplying each value against a ZipList of input transformation values and taking the sum.

I'm sure there's a math-y word for what this is doing (affine transformation?).

TODO: use a triple instead of a list! It is possible to goof up by providing a list of elements greater than three.