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 D R A W )
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 M O D E " ; M O D E
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 R I G H T , T O P
150 COLOR 2
160 DRAWTO R I G H T , B O T T O M
170 COLOR 1
180 DRAWTO L E F T , B O T T O M
190 COLOR 3
200 DRAWTO L E F T , T O P
205 REM ** DELAY LOOP
210 FOR DELAY=1 TO 5 0 0 : N E X T 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
Summary of Contents for 65XE
Page 1: ...ATARI 65XE PERSONAL COMPUTER OWNER S MANUAL TM...
Page 3: ...ATARI 65XE PERSONAL COMPUTER TM...
Page 6: ...Part 1 GettingStarted 1...
Page 9: ...4...
Page 23: ...18...
Page 25: ...20...
Page 32: ...Part 2 Programming withATARI BASIC 27...
Page 33: ...28...
Page 59: ...54...
Page 69: ...64...
Page 82: ...Part3 Appendices 77...
Page 83: ...78...
Page 97: ...92...
Page 105: ...100...
Page 125: ...120...
Page 126: ...121 Index...
Page 127: ...122...
Page 134: ...ATARI 1987 Atari Corp All Rights Reserved Printed in Taiwan C072018 001 REV B K l 2 1987...
Page 135: ......