|
Qbasic Tutorial for beginners and children (Under Construction) |
|
Chapter 9 Using coloursThe COLOR statement is used to set the screen display colours. It can be used in the following ways: To modify both the foreground and the background colour use:
To modify the foreground colour only, use:
To modify both the background colour only, use:
The foreground colour and the background colour are represented by numbers The table below Below list the colours and their corresponding numbers.
The following examples illustrate how to use the COLOR statement:
If you want to get the whole background in blue use the CLS statement after setting the colours:
You should be careful about the use of colours. Some colour matching are not pleasant to the eyes. [ Previous Next ] |
|
|