free-game-0.3.2.0: Create graphical applications for free.

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

Graphics.FreeGame.Data.Color

Contents

Description

Colors and its operations

Synopsis

The type

data Color Source

A color that has red, green, blue, alpha as its component.

Constructors

Color Float Float Float Float 

Instances

Color operations

transparent :: Float -> Color -> ColorSource

Give a transparency to the color.

intermediate :: Color -> Color -> ColorSource

An intermediate between the given colors.

halfD :: Color -> ColorSource

An intermediate between the black and the given color

halfB :: Color -> ColorSource

An intermediate between the white and the given color

Basic colors