100 User's
Handbook
to
the
Atari 400/ 800
Computers
EXAMPLE
10
GRAPHICS 1
20
FOR
I = 1
TO
5
30
READ X
40
COLOR X
50
PLOT 6 + I, 0
60
NEXT
I
70
DATA
65,116,193,114,73
The previous example displays the
word
AT
AR
I
at
the
top
of
the
display in
three
colors. The data
is
read at line
30
and becomes
the
argument
of
the
COLOR
statement at
line
40.
The
COLOR
statement chooses the cha
ra
cter and
the
color
register to be used in the display. From Table 9-4,
COLOR
65
indicates the character A in
color
register
O.
COLOR
116
indicates the character T in co
lor
register 1.
The
color
registers are assigned specific
inf
ormation
about
the
color
to
be used.
Color
registers can be changed
with
a
SETCOLOR statement,
but
if
no
SETCO
LOR statement
is
executed, a standard set
of
default
colors are used. The
default
colors
for
graphics
mode
1 and 2 are
as
follows:
COLOR
REGISTER
o
1
2
3
4
DEFAULT
COLOR
ORANGE
GREEN
BLUE
RED
BLACK
Color
register 0-3 can be chosen
for
any character,
but
color
register 4 is used
for
the
background
and
border.
In the previous example,
the
first character displayed
was
an
A in
color
register
O.
Since
no
SETCOLOR
was
executed, the A
will
be
orange. The T
will
be green because
COLOR
116
is
in
color
register
1.