; A template for creating mandalas with triangles. ; nell manda09.nll PIC4 9 | nellsvg 80 80 mm 0.2 1 > manda09.svg L1 = 10; L1,L2,L3 = sides of triangles. L2 = 10; Note: Scaling the same triangle can make different mandalas. L3 = 10; d = 2; d = spacing between concentric triangles n1 = 1; n1 = number of concentric triangles n2 = 6; n2 = number of copies going around the circle l1 = L1; l2 = L2; l3 = L3; a1 = pi/3; d1 = d/tan(a1/2); dm = d/sin(a1/2); a = 2*pi/n2; T1 : L(l1) T(pi-a1) S(S1,1) L(l2) T(pi-a1) L(l3) T(pi-a1); S1 : L(l2) T(-pi/2) L(l2) T(-pi/2) S(T1,1) L(l2) T(-pi/2) L(l2) T(-pi/2); PIC2 : S(T1,1) T(a1/2) M(dm) T(-a1/2) A(l1,l1-2*d1) A(l2,l2-2*d1) A(l3,l3-2*d1); PIC3 : [S(PIC2,n1)] T(a) A(l1,L1) A(l2,L2) A(l3,L3); PIC4 : P(40,40) [S(PIC3,n2)]; Can add C(L3) to end of this statement for circles