Contents Up Previous Next

Colour

A colour value is not in fact a class, but a long integer which contains the values of the red, green and blue components in a colour. A colour value may be passed to pen and brush creation functions, and also to some Grid member functions.

colour-create
colour-red
colour-green
colour-blue


colour-create

long ( colour-create long red long green long blue)

long ( colour-create long parent-id string name) A colour value may be created either by passing red, green and blue values, or by passing a colour name such as RED.


colour-red

long ( colour-red long colour)

Returns the red component of the colour, a number between 0 and 255.


colour-green

long ( colour-green long colour)

Returns the green component of the colour, a number between 0 and 255.


colour-blue

long ( colour-blue long colour)

Returns the blue component of the colour, a number between 0 and 255.