Type GR.0, list the program, and change COLOR 2 in line 20 to
COLOR 1. COLOR 1 selects register 0, and orange is the default color
for register 0. To change the color in register 0, use the SETCOLOR
command. Add the following line:
15 SETCOLOR 0,4,6
When you run the program, the orange lines change to a pinkish color.
You have changed the color of the lines by using SETCOLOR to
change the paint in the bucket (the color in the register), not by using
COLOR to choose a different bucket (register). The color luminance of
register 0 also affects the luminance of the text in the text window.
Now add
42 SETCOLOR 1,2,8
The light green at the right side of the box turns gold. Add one more
line:
62 SETCOLOR 2,11,4
Run the program. Not only does the left side of the box change to
green, but the text window also turns green. Therefore, register 2 also
controls the color of the text window.
Now you should be able to use SETCOLOR and COLOR to achieve a
wide variety of colors and hues in your programs.
Graphics Modes 5 and 7
The differences among modes 3, 5, and 7 can be illustrated very
easily. Change line 10 to
10 GRAPHICS 5
Run the program. The rectangle is much smaller because the pixels
are smaller. With the text window, the mode 3 grid has 39 columns
and 20 rows. The mode 5 grid has 80 columns and 40 rows.
Now change line 10 to
10 GRAPHICS 7
When you run the program, an even smaller rectangle appears. The
grid in mode 7 is 160 columns by 80 rows.
75
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: ......