free-game-0.3.2.4: 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 

Color operations

intermediate :: Color -> Color -> ColorSource

An intermediate between the given colors.

Deprecated

halfD :: Color -> ColorSource

Deprecated: use darken 0.5 instead

An intermediate between the black and the given color

halfB :: Color -> ColorSource

Deprecated: use lighten 0.5 instead

An intermediate between the white and the given color

Basic colors