Pookkalam by Gayathri J

Code

c1 = circle(r=150)
c2 = circle(r=100)
c3 = circle (r=50)
show(c1,c2,c3)
z1 = point(x=0, y=0)
z2 = point(x=100, y=0)
z3 = point(x=0, y=100)
z4 = point(x=-100, y=0)
z5 = point(x=0, y=100)
z6 = point(x=-100, y=0)
z7 = point(x=0, y=-100)
z8 = point(x=100, y=0)
z9 = point(x=0, y=-100)



p1 = point(x=0, y=0)
p2 = point(x=145.5, y=0)
p3 = point(x=0, y=145.5)
p4 = point(x=-145.5, y=0)
p5 = point(x=0, y=145.5)
p6 = point(x=-145.5, y=0)
p7 = point(x=0, y=-145.5)
p8 = point(x=145.5, y=0)
p9 = point(x=0, y=-145.5)
p10=point(x=0,y=145.5)
p11=point(x=-145.5,y=0)
shape = polygon([p1, p2, p3,p4,p5,p6,p7,p8,p9,p10,p11,z1,z2,z3,z4,z5,z6,z7,z8,z9])
show(shape)


s1 = ellipse()
s2 = s1 | rotate(45)
s3 = s1 | rotate(90)
s4 = s1 | rotate(135)
show(s1, s2, s3, s4)

m1 = rectangle(w=210, h=210) | repeat(9, rotate(20))
m2 = rectangle(w=210, h=210)| repeat(9, rotate(20))
m3 = rectangle(w=210, h=210)| repeat(9, rotate(20))
show(m1,m2,m3)