Spray Painter, graphics program (SPRAY.BAS)
Spray Painter, graphics program by David Duberman, 74
Description
Spray Painter, graphics program by David Duberman, 74
From the Antic disk of October 1984 (Vol. 3 No. 6).
From the Antic Software Archive at atarimagazines.com. The program remains the property of its author and publisher.
What is in this file
Atari BASIC program · 497 bytes
- Dialect
- Atari BASIC
- Lines
- 10
- Variables
S,X,Y,I,DIV,OFS
BASIC listing (10 lines)
5 DIV=25:OFS=5
10 GRAPHICS 8
11 SETCOLOR 2,0,0
15 COLOR 1:PLOT 100,100:X=100:Y=100
16 S=STICK(0):IF S=15 THEN 16
20 X=X+(S<8)*(X<313)-(S>8 AND S<13)*(X>6)
30 Y=Y+(INT(S/4)*4=S-1)*(Y<153)-(INT(S/2)=S/2)*(Y>6)
45 FOR I=1 TO 4:PLOT X+(INT(PEEK(53770)/DIV)-OFS),Y+(INT(PEEK(53770)/DIV)-OFS)
46 NEXT I
50 GOTO 16
