Copyright | (c) Alexey Kuleshevich 2019 |
---|---|
License | BSD3 |
Maintainer | Alexey Kuleshevich <[email protected]> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Graphics.Color.Space.RGB.AdobeRGB
Description
Synopsis
- pattern AdobeRGB :: Color RGB e -> Color AdobeRGB e
- pattern ColorAdobeRGB :: e -> e -> e -> Color AdobeRGB e
- pattern ColorAdobeRGBA :: e -> e -> e -> e -> Color (Alpha AdobeRGB) e
- data AdobeRGB
- data D65
- primaries :: RealFloat e => Gamut rgb i e
- npmStandard :: RealFloat e => NPM AdobeRGB e
- inpmStandard :: RealFloat e => INPM AdobeRGB e
- transfer :: Floating a => a -> a
- itransfer :: Floating a => a -> a
- module Graphics.Color.Space
Constructors for a AdobeRGB color space.
pattern ColorAdobeRGB :: e -> e -> e -> Color AdobeRGB e Source #
Constructor for a color in AdobeRGB
color space
Since: 0.1.0
pattern ColorAdobeRGBA :: e -> e -> e -> e -> Color (Alpha AdobeRGB) e Source #
Constructor for a color in AdobeRGB
color space with alpha channel
Since: 0.1.0
A very common AdobeRGB (1998)
color space with the default D65
illuminant
Since: 0.1.0
Instances
Whitepoint D65 that is so commonly used for sRGB and other color spaces defined by ITU: Rec.601 (525 and 625) and Rec.709 standards. It is slightly different than the one defined by CIE1931, thus a separate daclaration in here.
Instances
npmStandard :: RealFloat e => NPM AdobeRGB e Source #
sRGB normalized primary matrix. This is a helper definition, use npm
instead.
>>>
:set -XDataKinds
>>>
import Graphics.Color.Space.RGB.AdobeRGB
>>>
npmStandard :: NPM AdobeRGB Float
[ [ 0.576670, 0.185560, 0.188230 ] , [ 0.297340, 0.627360, 0.075290 ] , [ 0.027030, 0.070690, 0.991340 ] ]
Since: 0.1.0
inpmStandard :: RealFloat e => INPM AdobeRGB e Source #
sRGB inverse normalized primary matrix. This is a helper definition, use inpm
instead.
>>>
:set -XDataKinds
>>>
import Graphics.Color.Space.RGB.AdobeRGB
>>>
inpmStandard :: INPM AdobeRGB Float
[ [ 2.041590,-0.565010,-0.344730 ] , [-0.969240, 1.875970, 0.041560 ] , [ 0.013440,-0.118360, 1.015170 ] ]
Since: 0.1.0
transfer :: Floating a => a -> a Source #
AdobeRGB transfer function "gamma":
\[ \gamma(u) = u^{2.19921875} = u^\frac{563}{256} \]
Since: 0.1.0
itransfer :: Floating a => a -> a Source #
AdobeRGB inverse transfer function "gamma":
\[ \gamma^{-1}(u) = u^\frac{1}{2.19921875} = u^\frac{256}{563} \]
Since: 0.1.0
module Graphics.Color.Space