COLOUR colour_data
COLOR colour_data


colour_data is either:

  • A named colour
  • An HTML-style hexadecimal colour specification of the form #RRGGBB.
  • Or a colour component specification of the form r[%], g[%], b[%].

The named colour is one of BLACK, DARK_RED, DARK_GREEN, BROWN, DARK_BLUE, DARK_PURPLE, DARK_CYAN, DARK_GREY, DARK_GRAY, LIGHT_GREY, LIGHT_GRAY, LIGHT_RED, LIGHT_GREEN, YELLOW, LIGHT_BLUE, LIGHT_PURPLE, LIGHT_CYAN, WHITE, ORANGE.

Note that both British and American spellings are acceptable for both the command and the colour names.

HTML Style Specification

The HTML-style specification consists of three hexadecimal pairs of digits in the range 00 to FF (hex). There must be 6 digits as well as the hash symbol. The component specification must include exactly three components separated by commas. The % sign is optional. Each component must be in the range 0 - 100(%). See also the HIGHLIGHT and BANNER commands.


Examples:

COLOUR LIGHT_RED
COLOUR #FF0000
COLOUR 100%, 0%, 0%