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 all that you have tried in this section.
Type it in and run it:
NEW
5 REM **
BILL'S
BOX
(PLOT
AND
DRAW)
10 PRINT "WHICH MODE (3,5, OR 7)";
20 LEFT=0:TOP=0
30 INPUT MODE
40 IF MODE = 3 THEN RIGHT=39:BOTTOM=19
50 IF MODE=5 THEN RIGHT=79:BOTTOM=39
6O IF MODE=7 THEN RIGHT=159 : BOTTOM=79
70 GRAPHICS MODE
80 PRINT" GRAPHICS MODE";MODE
90 FOR COUNT=1 TO 1000
100 COLOR 2
110 TRAP 240
115 REM ** DRAW BOX
120 PLOT LEFT,TOP
130 COLOR 1
140 DRAWTO RIGHT,TOP
150 COLOR 2
160 DRAWTO RIGHT,BOTTOM
170 COLOR 1
180 DRAWTO LEFT,BOTTOM
190 COLOR 3
200 DRAWTO LEFT,TOP
205 REM ** DELAY LOOP
210 FOR DELAY=1 TO 500:NEXT DELAY
215
REM
**
SIZE
OF
NEXT
BOX
220 LEFT=LEFT + 2:TOP=TOP + 2:RIGHT=RIGHT-2:BOTTOM=BOTTOM-2
230 NEXT COUNT
240 PRINT" THAT'S ALL FOLKS!"
250 END
Try using SETCOLOR to change the colors in the Bill's Box program.
You can learn a great deal more about ATARI graphics, including 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 world of ATARI BASIC and your
ATARI 65XE Computer.
76