Chaos Game Demonstration (GASKET.BAS)

Chaos Game Demonstration by Roger A. Pruitt, 5

Description

Chaos Game Demonstration by Roger A. Pruitt, 5

From the Antic disk of Antic: December 1989/January 1990 - Vol. 8 No. 7 — disk A.

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 · 640 bytes

Dialect
Atari BASIC
Lines
11
Variables
X0, Y0, I, X1, Y1
BASIC listing (11 lines)
1 REM CHAOS GAME DEMONSTRATION
2 REM BY ROGER A. PRUITT
3 REM (C) 1989 ANTIC PUBLISHING, INC
100 GRAPHICS 24:SETCOLOR 2,0,0:SETCOLOR 1,0,10:COLOR 1
110 X0=INT(250*RND(0)):Y0=INT(150*RND(0))
120 I=INT(3*RND(0)+1)
130 IF I=1 THEN X1=X0/2:Y1=Y0/2
140 IF I=2 THEN X1=(318+X0)/2:Y1=Y0/2
150 IF I=3 THEN X1=(159+X0)/2:Y1=(191+Y0)/2
160 PLOT X1,Y1:X0=X1:Y0=Y1
170 GOTO 120