Next: The MASK command Up: No Title Previous: More complex effects

Using Colour

Version 1.4 includes commands to allow the independent colouring of characters, or their backgrounds. Colours are defined in a similar manner to fonts using the DEFINE_COLOUR command (American spelling also allowed). For example:

DEFINE_COLOUR 7 1 0 0

defines colour number 7 to be red - see ALSCRIPT Command Summary for full details of this command. Colours 99 and 100 are pre-defined to white and black. ALSCRIPT assumes the paper colour is white.

The command to colour the text of a character or text string is:

CCOL_CHARS

the command to colour the background of a character is

SCOL_CHARS

both have similar syntax to the FONT_CHARScommand.

COLOUR_REGION and COLOUR_RES have similar syntax to SHADE_REGION and SHADE_RES.

An example command file that uses colour is shown in example3.als.


gjb@bioch.ox.ac.uk