The smaller the pixels, the higher the resolution. Of the three modes,
mode 3 is the lowest and mode 7
is
the highest. Try drawing a rec-
tangle around the screen borders
in
modes 5 and
7.
The following program illustrates a
ll
that you have tried
in
this section.
Type it
in
and
run
it:
NEW
5
REM
**
BILL'
S
BOX
(PLOT
IlIND
DRIlIW)
1.9
PRINT
"WHICH
MODE
(3
..
5
..
OR
7)";
29
LEFT=9
:
TOP=9
39
INPUT
MODE
49
IF
MODE=3
THEN
RIGHT=3~
:
BOTTOM=1.
~
59
IF
MODE=5
THEN
RIGHT=7~
:
BOTTOM=3~
69
IF
MODE=7
THEN
RIGHT=1.5~
:
BOTTOM=7~
79
GRIlIPHICS
MODE
89
PRINT"
GRIlIPHICS
MODE"
;MODE
~9
FOR
COUNT=1.
TO
1.999
1.99
COLOR
2
1.1.9
TRIlIP
249
1.1.5
REM
**
DRIlIW
BOX
1.29
PLOT
LEFT
..
TOP
1.39
COLOR
1.
1.49
DRIlIWTO
RIGHT
..
TOP
1.59
COLOR
2
1.69
DRIlIWTO
RIGHT
..
BOTTOM
1.
79
COLOR
1.
1.89
DRIlIWTO
LEFT
..
BOTTOM
1.~9
COLOR
3
299
DRIlIWTO
LEFT
..
TOP
295
REM
**
DELIlIV
LOOP
21.9
FOR
DELIlIV=1.
TO
599:
NEXT
DELIlIV
21.5
REM
**
SIZE
OF
NEXT
BOX
229LEFT=LEFT+2:TOP=TOP+2:RIGHT=RIGHT-2:BOTTOM=BOTTOM-2
239
NEXT
COUNT
249
PRINT"
259
END
THIlIT
• S
IlILL
FOLKS!
"
Try using SETCOLOR to change the colors
in
the Bill's Box program.
You can learn a great deal more about
ATARI
graphics,
in
cluding how
to use other graphics modes and create animated characters. Refer to
Appendix
F:
Resources to locate books, magazines, and users groups
that can help you further explore the wor
ld
of
ATARI
BASIC and your
ATARI
130XE Computer.
76