Atari 130XE — 130XE Owners Manual_Page_080

Run the program . A li ght green line goes across the top of the screen . After plotting a pi xe l, use the DRAWTO command to plot a second pi xe l and draw a connecting line between th e two. Line 40 tells the computer to plot a pi xe l at co lu mn 39, row 0, and then connect them. Now type Th e command plots a pi xe l 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 DRAHTO 0 .. 1.~ To complete the rectangle , type DRAHTO 0 .. 0 Now type GR.O and li st the program . Add th ese lines: 50 DRAHTO 3~ .. 1.~ 60 DRAHTO 0 .. 1.~ 70 DRAHTO 0 ..

0 SETCOLOR and COLOR When you run the program, the computer draws a green rectangle aga in . To brighten up the screen, type 35 COLOR 1. 45 COLOR 2 55 COLOR 1. 65 COLOR 3 Run the program to see a rectangl e of many colors. To change the color in a register, use SETCOLOR. You might conclude that CO LOR 1 se lects the color for register 1 and that CO LOR 2 se le cts the color for register 2. Unfortunately, that conc lu sion 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 th ings straight, make a chart:

Co lor 0 Register 4 Black Color 1 Register 0 Orange Co lor 2 Register 1 Light green Co lor 3 Register 2 Dark b lu e 74