Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Color handling.
- data Color
- rgba :: Float -> Float -> Float -> Float -> Color
- rgbaL :: Lens' Color (Float, Float, Float, Float)
- redL :: Lens' Color Float
- greenL :: Lens' Color Float
- blueL :: Lens' Color Float
- alphaL :: Lens' Color Float
- viewRgba :: Color -> (Float, Float, Float, Float)
- viewRed :: Color -> Float
- viewGreen :: Color -> Float
- viewBlue :: Color -> Float
- viewAlpha :: Color -> Float
Types
The color data type.
This data type says nothing about the color space these values are in. The color space depends on the usage; for example, a framebuffer with sRGB textures attached uses sRGB color space in these color values.