Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
setAlpha :: Vec1 -> Vec4 -> Vec4 Source #
Given an alpha value, sets it for the alpha channel for a given color
setAlpha alpha color -- == n newColor
linexp :: Floating a => (a, a, a, a) -> a -> a Source #
Linear to exponential map
linexp (a, b, c, d) a -- == c linexp (a, b, c, d) b -- == d linexp (a, b, c, d) ((a + b)/2) -- == c * sqrt(d/c)