sketch3
Log in to post a comment.
const a = 20 const r1 = 30 const r2 = 90 const n = 60 const z = 10 Canvas.setpenopacity(1);const p=6.283185 function b(x,y){m=0;for(k=0;k<6;k++){ m+=Math.sin(x+m+k);m+=Math.cos(y+m+k);} return 0.5+0.5*Math.cos(m);}for(j=0;j<n;j++){ t=new Turtle();for(i=0;i<=a;i++){x=Math.sin(i/a*p) y=Math.cos(i/a*p);r=r1+(r2-r1)*b(x*j/z,y*j/z) t.goto(x*r,y*r);t.forward(1);}}for(i=0;i<5;i++){ f=new Turtle();f.goto(0,-r1/2-i);f.circle(r1/2+i)}