AREA
is
AREA NAME
0
Background
Character
2
Multi-colour
3
Multi-colour 2
4
Border
CHARACTERS
BACKGROUND
BORDER
71.)
Using characters like the ball (SHIFT 0), you can play video games on
the screen. To move a ball, just erase the ball and replace it at a new
position, as in this program
10 PRINT " SHIFT CLH "
20 PRINT " SPACE SW F QOM".
Left cursor arrow
30 FOR L=1 TO 50: NEXT L
40 GOTO 20
When you RUN the program, remember to press the RONAIltd , key
when you want to stop moving the bail
CONTROLLING COLOURS
Separate colours can be put into each part of the screen The border
can be one colour, the background a different one, and each character
can have its own colour You already know how to set the Character
colours using the keyboard. You can change the colours of the other
screen areas using the BASIC language command COLOR
For example. you can turn the border of your screen red by typing the
command COLOR
4,3 and
pressing the
anus.
key. The number 4 in
the command stands for the border area. and colour number 3 Is red
(the same number as on the key marked RED).
Try typing COLOR 0, 7 and hitting
arm.
The screen background
now turns biue. The number 0 stands for the background, while the 7 Is
blue (also the same as the keyboard)
.
The first number after the word COLOR specifies the area on the
screen you want lo change. This table lists what each screen area
number controls: you'll learn about areas 2 and 3 when you get into
multi-colour graphics later in this
chapter
.
Screen Area Numbers
The second number after COLOR selects the colour you want to put on
the
area of the screen you've specified. The colour numbers
correspond to the colour keys on the
keyboard.
Colour Numbers
1
BLACK
9
ORANGE
2
WHITE
10
BROWN
3
RED
11
YELLOW GREEN
4
CYAN
12
PINK
5
PURPLE
13
BLUE GREEN
6
GREEN
14
LIGHT BLUE
7
BLUE
15
DARK BLUE
8
YELLOW
16
LIGHT GREEN
Each colour also has an adjustable brightness level, called the
luminance You can add a number train 0 (darkest) through 7 (brightest)
after the colour number to vary the colour. Type COLOR 4 ,3, 0 and
press WWI The border becomes a dark red. Type COLOR 4, 3, 7
and the border changes to a bright red.
In short. the COLOR command looks like this.
COLOR area. colour, luminance
Here is a quick program to show you all your Commodore 16's colours:
First type NEW and press
moan
10 COLOR 0, 7, 7
20 FOR M=0 TO 7
30 FOR N= I TO 2
40 FOR L=1 TO 16
50 PRINT " CTRt SVS ON
type these keys together
60 READ A
70 COLOR 1, A, M
80 PRINT "
SPACE SPACE
90 NEXT L
100 PRINT
110 RESTORE
120 NEXT N,14
130 COLOR 1, 2, 4
200 DATA 7,14,4,13,6,16,11,8,10,9,3,12,5,15,2,1
c
www.commodore.ca
May Not Reprint Without Permission
I
I
I
I
I
I
I
I
I
I
I
I
1
I
I
I
I
I
f
I
I
(
I
I
I
COLOUR //
COLOUR
N
COLOUR
71
Need help?
Do you have a question about the Commodore 16 and is the answer not in the manual?
Questions and answers