EasyManua.ls Logo

Atari 400 - Page 267

Atari 400
326 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Atari
Graphics
&
Sound
265
Upon
start-up in Graphics
0,
the display area
color
is
blue
(color
register 2), and the
border
area
color
is
black
(color
register
4)
.
However,
by changing the
default
values
of
these
color
registers,
the
border
area and display area
color
can be altered. This
changing
of
the
color
registers can
be
accomplished
with
the
SETCOLOR statement. For example, the
following
SETCOLOR
statement
would
change the display area
from
blue
to
orange.
SETCOLOR
2, 2,
4
The
SETCOLOR statement can also be used
as
shown in
the
following
example to alter the
background
from
black
to
green.
SETCOLOR 4, 12, 0
The concepts
of
color
registers and the use
of
SETCOLOR
to
change
color
registers
will
be discussed in
the
next section.
Color Registers & SETCOLOR
Color
registers are
memory
locations
within
the
Atari
which
set
the
foreground
,
background
, and
border
colors. The Atari
contains 5
color
registers. These are
numbered
from
0
through
4
inclusive. The Atari's
operating
system
uses
the
following
RAM
addresses
to
store the
current
color
in each register.
Address
Name
COLORO
COLOR1
COLOR2
COLOR3
COLOR4
Address Location
Color
Register
No.
Address
708
Color
Register 0
Address
709
Color
Register 1
Address
710
Color
Register 2
Address
711
Color
Register 3
Address
712
Color
Register 4
Each
of
the 5
color
registers
has
a
default
color
defined.
These
default
values are listed in Table 9-2.
The
default
color
values
for
the 5
color
registers can be changed
with
the
SETCOLOR
command.
SETCOLOR
uses
the
following
configuration:
SETCOLOR r
eg
ister#,
color#,
luminance#

Other manuals for Atari 400

Related product manuals