Contact |
News! |
Books |
Home |
Consider a race of spider-beings named Mygalomorphs
who spend their days spinning webs upon circular frames. Status in
their society is based on the beauty of their webs. To create the web
patterns, the spiders string a straight piece of web from one point on
the circle to another. Usually the patterns are dull and uninspiring,
and therefore most spiders are relegated to lower societal classes.
What strange new worlds can you create using the spider programs?
What happens when you use ever larger values for
a
and
b?
I would be interested in hearing from readers
who have discovered parameters which yield particularly beautiful
and novel shapes. What are your favorite parameters and patterns?
Here is the basic idea behind the code:
10 REM Compute Ranunculoids
20 R = 1
25 REM Ranunucloid parameters:
26 A = 6
27 B = 6
30 P = 3.1415926
40 FOR I=0 TO 360
50 T=I*P/180.0
60 X = R*COS(T)
70 Y = R*SIN(T)
80 REM select another point on circle
90 X2 = R*COS(A*T)
100 Y2 = R*SIN(B*T)
110 PRINT "Chord on Circle: "; X;Y;" TO ";X2;Y2
120 NEXT I
130 END