codeworld-base-0.2.0.0: Replacement base module for CodeWorld

Safe HaskellNone
LanguageHaskell98

Extras.Colors

Description

Pre-defined color constants and functions to handle color wheels

Synopsis

Documentation

colorWheel :: Number -> Color #

Make a color from a color wheel with 6 color stops: red, yellow, green, cyan, blue, magenta, so that colorWheel(0) is red and colorWheel(5) is magenta.

black :: Color #

The color black

grey :: Color #

A color halfway between black and white

white :: Color #

The color white

red :: Color #

A color from the 6-stop color wheel with index 0. See colorWheel for more information.

orange :: Color #

A color from the 6-stop color wheel with index 0.5. See colorWheel for more information.

yellow :: Color #

A color from the 6-stop color wheel with index 1. See colorWheel for more information.

chartreuse :: Color #

A color from the 6-stop color wheel with index 1.5. See colorWheel for more information.

green :: Color #

A color from the 6-stop color wheel with index 2. See colorWheel for more information.

aquamarine :: Color #

A color from the 6-stop color wheel with index 2.5. See colorWheel for more information.

cyan :: Color #

A color from the 6-stop color wheel with index 3. See colorWheel for more information.

azure :: Color #

A color from the 6-stop color wheel with index 3.5. See colorWheel for more information.

blue :: Color #

A color from the 6-stop color wheel with index 4. See colorWheel for more information.

purple :: Color #

A color from the 6-stop color wheel with index 4.5. See colorWheel for more information.

magenta :: Color #

A color from the 6-stop color wheel with index 5. See colorWheel for more information.

rose :: Color #

A color from the 6-stop color wheel with index 5.5. See colorWheel for more information.

pink :: Color #

A lighter version of rose

brown :: Color #

A duller version of orange