Pookkalam by Fathima Riswana A

Code

#circles

c1=circle(r=150,fill="#469e02",stroke="none")

show(c1)

#repeated_square

rs=rectangle(h=205,w=205,fill="#6bd3ff",stroke="#026f9e",stroke_width=3)| repeat(18,rotate(10))

show(rs)

c2=circle(r=130,fill="#9e0229",stroke="none")

c3=circle(r=120,fill="#eeff57",stroke="none")

show(c2,c3)

#tiangles

def tri(p1,p2,p3):

    return polygon([p1,p2,p3],stroke="#028c00",fill="#0bcc08",stroke_width=4)

t= tri(p1=point(x=20,y=-80),p2=point(x=-20,y=-80),p3=point(x=0,y=-120))|repeat(8,rotate(45))

show(t)

#small_innercircle

cs=circle(x=30,y=-70,r=12,stroke="#a1032e",fill="#ff336b",stroke_width=4)|repeat(8,rotate(45))

show(cs)

#rectangle

r=rectangle(x=0,y=40,h=30,w=30,stroke="#0e89c2",fill="#52b2de",stroke_width=10)|repeat(4,rotate(90))

show(r)

#small_edge circle

cse=circle(x=-125,y=125,r=15,fill="#f768b4",stroke="#d6187d",stroke_width=6)|repeat(4,rotate(90))

show(cse)

#center_small_ellipse

elp=ellipse(h=40,w=20,fill="#eb214d",stroke="#9e0325")|repeat(6,rotate(30))

show(elp)                

#smallest_center_circle

scc=circle(r=6,fill="#690017",stroke="none")

show(scc)