colors-0.3.0.2: A type for colors

Copyright(C) 2013 Fumiaki Kinoshita
LicenseBSD-style (see the file LICENSE)
MaintainerFumiaki Kinoshita <fumiexcel@gmail.com>
Stabilityprovisional
Portabilitynon-portable
Safe HaskellSafe-Inferred
LanguageHaskell98

Data.Color.Class

Description

Classes for colors

Documentation

class HasRGB f where Source

Minimal complete definition

fromRGB

Methods

fromRGB :: RealFrac a => a -> a -> a -> f a Source

_Red :: RealFrac a => Lens' (f a) a Source

_Green :: RealFrac a => Lens' (f a) a Source

_Blue :: RealFrac a => Lens' (f a) a Source

Instances

class HasHSB f where Source

Minimal complete definition

fromHSB

Methods

fromHSB :: RealFrac a => a -> a -> a -> f a Source

_Hue :: RealFrac a => Lens' (f a) a Source

_Saturation :: RealFrac a => Lens' (f a) a Source

_Brightness :: RealFrac a => Lens' (f a) a Source

Instances

class HasAlpha f where Source

Minimal complete definition

Nothing

Methods

_Alpha :: Lens' (f a) a Source

Instances