colors-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

Contents

Description

RGBAs and its operations

Synopsis

The type

data RGBA Source

A color that has red, green, blue, alpha as its components. It is an instance of HasRGB so there are some lenses to tweak individual components.

Constructors

RGBA Float Float Float Float 

RGBA operations

blend :: Num a => Float -> RGBA -> RGBA -> RGBA Source

Blend two colors.