Atari 400 Basic Reference Manual page 59

Vintage computer
Hide thumbs Also See for 400:
Table of Contents

Advertisement

TABLE 9.4-TABLE OF SETCOLOR "DEFAULT" COLORS*
Set color
Defaults To
Luminance
Actual Color
(Color Register)
Color
0
2
8
ORANGE
1
12
10
GREEN
2
9
4
DARK BLUE
3
4
6
PINK
OR
RED
4
0
0
BLACK
*
"DEFAULT" occurs if not SETCOLOR
statement is
used.
Note: Colors
may
vary
depending
upon the
television
monitor
type,
condition,
and adjustment.
A program
illustrating Graphics mode
3
and the
commands explained so far
in
this
section
is
shown below:
10
GPAFHICS
3
2'€1
~:;ETCOLOF 0
.~
2_,
B
=
C
:OL!)P
1
30
PLOT
17
..
1
:
DF.'At.JTO
1
7
. .
1 0
:
DPAl·JTO 9
·'
1
:::
40 PLOT
19.'
1
: DRAL·HO 19
. .
1:::
50 PLOT 20
. .
1
:
D~~AL.JTO
20 ..
1
E
60
PLOT
22
..
1
:
DRA~.JTO
22
..
W:
D~:A~·lTO
30
,
18
70
POKE
752
. .
1
8(1
F'P
HH
;
F'P WT
II
AT
A~:
I
FEF~:~~Gt·iAL
COi·1P
UTEP~:;"
9(1
I~OTO
9(1
The
SETCOLOR
and COLOR statements set
the
color
of the
points to be
p lotted
(see Table
9.5).
The SETCOLOR command loads
color
register
0
w ith
hue
2
(orange)
and
a
luminance of 8
("normal").
The
next
4
lines
p
lot
the
points
to be
displayed. Line
90 suppresses
the
cursor and line
100
prints
the
string expres-
sion ATARI
PERSONAL
COMPUTERS
in
the
text
window
(6
spaces in).
Note
that the background color
was never set
because
the
default is
the
d esired
color
(black).
If
the
program is executed
,
it
will print the Atari
logo in
the
graphics
window
and the string expression
in the text
window as in Figure
9-3.
Graphic
Modes and Commands
51

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

800

Table of Contents