Copyright | (c) Alexey Kuleshevich 2019-2020 |
---|---|
License | BSD3 |
Maintainer | Alexey Kuleshevich <lehins@yandex.ru> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Documentation
data SRGB (i :: k) (l :: Linearity) Source #
The most common sRGB
color space with an arbitrary illuminant
Instances
primaries :: RealFloat e => Gamut rgb i e Source #
Primaries for ITU-R BT.709, which are also the primaries for sRGB color space.
Since: 0.1.0
transfer :: (Ord a, Floating a) => a -> a Source #
sRGB transfer function "gamma". This is a helper function, therefore ecctf
should be used
instead.
\[ \gamma(u) = \begin{cases} 12.92 u & u \leq 0.0031308 \\ 1.055 u^{1/2.4} - 0.055 & \text{otherwise} \end{cases} \]
Since: 0.1.0
itransfer :: (Ord a, Floating a) => a -> a Source #
sRGB inverse transfer function "gamma". This is a helper function, therefore dcctf
should
be used instead.
\[ \gamma^{-1}(u) = \begin{cases} u / 12.92 & u \leq 0.04045 \\ \left(\tfrac{u + 0.055}{1.055}\right)^{2.4} & \text{otherwise} \end{cases} \]
Since: 0.1.0
module Graphics.Color.Space