colors-0.1: A type for colors

Portabilitynon-portable
Stabilityprovisional
MaintainerFumiaki Kinoshita <fumiexcel@gmail.com>
Safe HaskellSafe-Inferred

Data.Color.Class

Description

Classes for colors

Synopsis

Documentation

class HasRGB a whereSource

Methods

fromRGB :: Float -> Float -> Float -> aSource

_Red :: Functor f => (Float -> f Float) -> a -> f aSource

_Red :: Lens' a Float

_Green :: Functor f => (Float -> f Float) -> a -> f aSource

_Green :: Lens' a Float

_Blue :: Functor f => (Float -> f Float) -> a -> f aSource

_Blue :: Lens' a Float

Instances

class HasHSB a whereSource

Methods

fromHSB :: Float -> Float -> Float -> aSource

_Hue :: Functor f => (Float -> f Float) -> a -> f aSource

_Hue :: Lens' a Float

_Saturation :: Functor f => (Float -> f Float) -> a -> f aSource

_Saturation :: Lens' a Float

_Brightness :: Functor f => (Float -> f Float) -> a -> f aSource

_Brightness :: Lens' a Float

Instances

class HasAlpha a whereSource

Methods

_Alpha :: Functor f => (Float -> f Float) -> a -> f aSource

_Alpha :: Lens' a Float

Instances

_8Bit :: forall p f. (Profunctor p, Functor f) => p Word8 (f Word8) -> p Float (f Float)Source

_8Bit :: Iso' Float Word8