; Creates a circle of radius r0 completely encircled by n circles. ; nell circ3.nll START 10 | nellsvg 3.4 3.4 in 0.02 1 > circ3.svg ; canvas size = 2*r0*(1+2*cos(b)/(1-cos(b))) ; n=12 canvas size = 3.4 x 3.4 ; n=21 canvas size = 2.71 x 2.71 r0 = 1; n = 12; b = pi*(n-2)/(2*n); x = r0/(1-cos(b)); distance from center of inner circle r = x*cos(b); radius of outer circles a = 2*pi/n; T1 : [M(x) C(r)] T(a); START : P(r0+2*r,r0+2*r) C(r0) T(-pi/2) S(T1,n);