There is much more to fractals than the Mandelbrot Set. Apparently, in September 1989, NOVA put on a show about the science of chaos, which noted that chaos is not a set of random events, as many of us think, but is quite ordered. Their example was Sierpinski’s Gasket:
1. Plot 3 points of a triangle and label the points as 1, 2, 3. Select a starting point in or out of the triangle and roll a three-sided die. (Physically, you could use a six-sided die with 1,2 as 1 ,3,4 as 2 and 5,6 as 3.)
2. Draw a line between your point and the side of the triangle indicated by the die. The mid-point of this line is your next point.
3. Roll again and go to Step 2.
The concept is simple and common sense says that a plot of the points would be all over the paper. Al Albrecht of Vancouver BC was intrigued and whipped up a short program in the Vancouver Sinclair Users Group ZX-APPEAL of OCT 89 with rather startling results. About a year later, Tim Swensen of Toronto Timex-Sinclair Users Club published a shorter program in SINC-LINC, Sep-Oct 90.
Tim’s program for the 2068 starts with only the corner triangle points and plots about 500 points a minute. The program and plot results are shown on this page. Surprisingly, one can get excellent results with the 1000. In SLOW, the 1000 plots about 120 points a minute and with the option to go FAST, the plot shapes up quite rapidly. The 1000 program and plot are shown.
Looking at Sierpinski’s Gasket outlining a large triangle with smaller triangles with smaller triangles with smaller triangles as small as the scope will discriminate is amazing to me. What would happen if we used a 4-sided or 6-sided figure? (Does common sense help?) Try it.
10 REM THE CHAOS GAME by Tim Swensen, SINC-LINK SEP-OCT 90, TT-SUC Toronto
20 GO TO 150
30 REM ...LOOP...
40 LET n=n+1: LET x1=x: LET y1=y
50 LET roll=INT (RND*3+1)
60 IF roll=1 THEN LET x2=10: LET y2=12
70 IF roll=2 THEN LET x2=246: LET y2=12
80 IF roll=3 THEN LET x2=128: LET y2=160
90 LET x=(x1+x2)/2: LET y=(y1+y2)/2
100 PLOT x,y
110 IF n/250=INT (n/250) THEN BEEP .1,.1: PRINT AT 21,14;n
120 GO TO 40
140 REM ...INITIALIZE...
150 BORDER 0: PAPER 0: INK 7
160 LET n=0: CLS
170 PRINT TAB 7;"SIERPINSKI'S GASKET"
180 PLOT 10,12: PLOT 246,12: PLOT 128,160
190 LET x=RND*99: LET y=RND*99
200 PRINT AT 21,7;"(After rolls"
210 GO TO 40
9980 CLEAR : SAVE "chaos"
Note: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.