
Run the program. A light green line goes across the top of the screen.
After plotting a pixel, use the DRAWTO command to plot a second
pixel and draw a connecting line between the two. Line 40 tells the
computer to plot a pixel at column 39, row 0, and then connect them.
Now type
DRAWTO 39,19
The command plots a pixel in the bottom right corner of the graphics
screen, just above the text window, and then draws a line to connect
39,0 to 39,19. Now type
DRAWTO 0,19
To complete the rectangle, type
DRAWTO 0,0
Now type GR.0 and list the program. Add these lines:
50 DRAWTO 39,19
60 DRAWTO 0,19
70 DRAWTO 0,0
SETCOLOR and COLOR
When you run the program, the computer draws a green rectangle
again. To brighten up the screen, type
35 COLOR 1
45 C O L O R 2
55 COLOR 1
65 C O L O R 3
Run the program to see a rectangle of many colors.
To change the color in a register, use SETCOLOR. You might conclude
that COLOR 1 selects the color for register 1 and that COLOR 2
selects the color for register 2. Unfortunately, that conclusion is not
quite true. Mode 3 has four registers and four colors—but the
registers are numbered 0, 1, 2, and 4, and the colors are numbered 0,
1, 2, and 3. To keep things straight, make a chart:
Color 0 = Register 4 Black
Color 1 = Register 0 Orange
Color 2 = Register 1 Light green
Color 3 = Register 2 Dark blue
74
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: ......