colors-0.1.1: A type for colors

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

Data.Color

Contents

Description

Colors and its operations

Synopsis

The type

data Color 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

Color Float Float Float Float 

Color operations

blend :: Float -> Color -> Color -> ColorSource

Blend two colors.