The colour commands are:
COLOUR n (n = 0 to 15)
COLOURB n (n = 0 to 15)
COLOUR n sets the foreground colours on the screen. COLOURB n sets the background colours on the screen.
COLOR and COLOUR are both acceptable.
The codes for the colours are:
Foreground Colour Decimal Code. ------------------------------------ Black 0 Red 1 Green 2 Brown 3 Blue 4 Magenta 5 Cyan 6 Light Grey 7 Dark Grey 8 Light Red 9 Light Green 10 Yellow 11 Light Blue 12 Light Magenta 13 Light Cyan 14 White 15
Background Colour Decimal Code. ------------------------------------ Black 0 Red 1 Green 2 Brown 3 Blue 4 Magenta 5 Cyan 6 Light Grey 7 Dark Grey 8 Light Red 9 Light Green 10 Yellow 11 Light Blue 12 Light Magenta 13 Light Cyan 14 White 15
Program example.
100 COLOURS 0, COLOUR 1
110 PRINT "Red foreground , black background."