NAME

Colour - Colour manipulation routines for use with GIFgraph

SYNOPSIS

see functions

DESCRIPTION

The Colour Package provides a few routines to convert some colour names to RGB values. Also included are some functions to calculate the hue and luminance of the colours, mainly to be able to sort them.

FUNCTIONS

Colour::list( number of colours )

Returns a list of number of colours colour names known to the package.

Colour::sorted_list( number of colours )

Returns a list of number of colours colour names known to the package, sorted by luminance or hue. NB. Right now it always sorts by luminance. Will add an option in a later stage to decide sorting method at run time.

Colour::rgb( colour name )

Returns a list of the RGB values of colour name.

Colour::hue( [R,G,B] )

Returns the hue of the colour with the specified RGB values.

Colour::luminance( [R,G,B] )

Returns the luminance of the colour with the specified RGB values.

COLOUR NAMES

white, lgray, gray, dgray, black, lblue, blue, dblue, gold, lyellow, yellow, dyellow, lgreen, green, dgreen, lred, red, dred, lpurple, purple, dpurple, lorange, orange, pink, dpink, marine, cyan, lbrown, dbrown.