| Copyright | (c) Alexey Kuleshevich 2021 |
|---|---|
| License | BSD3 |
| Maintainer | Alexey Kuleshevich <lehins@yandex.ru> |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Graphics.Color.Standard
Description
Synopsis
- data SVG (n :: Symbol) = SVG
- data RAL (n :: k) = RAL
- class StandardColor std (code :: k) where
- color :: ColorSpace cs i e => std code -> Color cs e
Documentation
data SVG (n :: Symbol) Source #
Get a color value by specifying its SVG standard name at the type level:
>>>import Graphics.Color.Standard>>>import Graphics.Color.Space.CIE1976.LAB>>>import Graphics.Color.Illuminant.CIE1931>>>color (SVG :: SVG "aqua") :: Color (LAB 'D65) Float<LAB CIE1931 'D65:(91.11637000,-48.08154700,-14.12457300)>
Constructors
| SVG |
Instances
Constructors
| RAL |
Instances
class StandardColor std (code :: k) where Source #
Get a specific colors from a standard:
>>>import Graphics.Color.Standard>>>color (RAL :: RAL 9003) :: Color (SRGB 'NonLinear) Float<SRGB 'NonLinear:( 0.92477065, 0.92470974, 0.90498060)>>>>color (RAL :: RAL "Signal white") :: Color (SRGB 'NonLinear) Float<SRGB 'NonLinear:( 0.92477065, 0.92470974, 0.90498060)>
Methods
color :: ColorSpace cs i e => std code -> Color cs e Source #


















































































































































