wumpus-core-0.12.0: Pure Haskell PostScript and SVG generation.

PortabilityGHC
Stabilityhighly unstable
MaintainerStephen Tetley <stephen.tetley@gmail.com>

Wumpus.Core.Colour

Contents

Description

RGB, HSB, Gray colour types.

Synopsis

Colour types

type DRGB = RGB3 DoubleSource

RGB representated by Double - values should be in the range 0.0 to 1.0.

  1. 0 represents full saturation, for instance red is 1.0, 0.0, 0.0.

type DHSB = HSB3 DoubleSource

HSB represented by Double - values should be in the range 0.0 to 1.0.

type DGray = Gray DoubleSource

Gray represented by a Double - values should be in the range 0.0 (black) to 1.0 (white).

Operations

Predefined colours

black :: DRGBSource

Black - 0.0, 0.0, 0.0.

white :: DRGBSource

White - 1.0, 1.0, 1.0.

red :: DRGBSource

Red - 1.0, 0.0, 0.0.

green :: DRGBSource

Green - 0.0, 1.0, 0.0.

blue :: DRGBSource

Blue - 0.0, 0.0, 1.0.