Copyright | (c) Alexey Kuleshevich 2019-2020 |
---|---|
License | BSD3 |
Maintainer | Alexey Kuleshevich <lehins@yandex.ru> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- pattern ColorSRGB :: e -> e -> e -> Color SRGB e
- pattern ColorSRGBA :: e -> e -> e -> e -> Color (Alpha SRGB) e
- data SRGB
- data D65
- module Graphics.Color.Space
- module Graphics.Color.Space.RGB.Alternative
- module Graphics.Color.Space.RGB.Luma
Default sRGB color space
pattern ColorSRGB :: e -> e -> e -> Color SRGB e Source #
Constructor for a color in sRGB
color space
Since: 0.1.0
pattern ColorSRGBA :: e -> e -> e -> e -> Color (Alpha SRGB) e Source #
Constructor for a color in sRGB
color space with alphs channel
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
D65
that is defined by CIE1931 and
D65
specified in Rec.470.
>>>
whitePoint :: WhitePoint D65 Float
WhitePoint (Chromaticity <CIExyY * D65:( 0.312700, 0.329000)>)>>>
whitePointTristimulus :: Color (XYZ D65) Float
<XYZ * D65:( 0.950456, 1.000000, 1.089058)>>>>
colorTemperature :: CCT D65
CCT {unCCT = 6504.0}
Since: 0.1.0
Instances
Re-exports
module Graphics.Color.Space