Pookkalam by Swathi K

Code

c1 = circle(x=0,y=0,r=150,fill="darkred",stroke_width=1.5)
c2 = circle(x=0,y=0,r=140,fill="#FF0000",stroke_width=1.5)
c3 = circle(x=0,y=0,r=130,fill="darkorange",stroke_width=1.5)
c4 = circle(x=0,y=0,r=120,fill="gold",stroke_width=1.5)
c5 = circle(x=0,y=0,r=110,fill="khaki",stroke_width=1.5)
l1 = line(x1=100,y1=0,x2=110,y2=0,stroke_width=1.5) | repeat(64,rotate(6))
l2 = line(x1=120,y1=0,x2=130,y2=0,stroke_width=1.5) | repeat(64,rotate(6))
l3 = line(x1=140,y1=0,x2=150,y2=0,stroke_width=1.5) | repeat(64,rotate(6))
l4 = line(x1=110,y1=0,x2=120,y2=0,stroke_width=1.5) | repeat(64,rotate(6)) | rotate(3)
l5 = line(x1=130,y1=0,x2=140,y2=0,stroke_width=1.5) | repeat(64,rotate(6)) | rotate(3)
c6 = circle(x=0,y=0,r=100,fill="#FF8300",stroke_width=1.5)
e1 = ellipse(x=50,y=0,w=100,h=80,fill="khaki",stroke="none") | repeat(6,rotate(60))
e2 = ellipse(x=50,y=0,w=93,h=75,fill="yellow",stroke="none") | rotate(10) | repeat(6,rotate(60))
e3 = ellipse(x=50,y=0,w=86,h=70,fill="orange",stroke="none") | rotate(20) | repeat(6,rotate(60))
e4 = ellipse(x=50,y=0,w=79,h=65,fill="red",stroke="none") | rotate(30) | repeat(6,rotate(60))
e5 = ellipse(x=50,y=0,w=72,h=60,fill="brown",stroke="none") | rotate(40) | repeat(6,rotate(60))
e6 = ellipse(x=50,y=0,w=65,h=55,fill="black",stroke="none") | rotate(50) | repeat(6,rotate(60))
c7 = circle(x=69,y=0,r=6,fill="orange",stroke="red",stroke_width=3) | rotate(110) | repeat(6,rotate(60))
c8 = circle(x=0,y=0,r=58,fill="#FF8300")
e7 = ellipse(x=18,y=0,w=69,h=48,fill="brown",stroke="none") | repeat(6,rotate(60))
l6 = line(x1=0,y1=0,x2=0,y2=44,stroke="#FF8300",stroke_width=20)
l7 = l6 | repeat(12,rotate(30))
r1 = rectangle(x=0,y=0,w=8,h=8,stroke="none",fill="brown") | rotate(45) | translate(x=45) | rotate(30) | repeat(6,rotate(60))
show(c1, c2, c3, c4, c5, l1, l2, l3, l4, l5, c6, e1, e2, e3, e4, e5, e6, e7, c7, c8, e7, l6, l7, r1)
o = 0
for i in range(6):
    if i % 2 == 0:
        fill = "darkred"
    else:
        fill = "yellow"
    r = rectangle(x=0,y=0,w=26,h=26,stroke="none",fill=fill) | rotate(45) | translate(x=20) | rotate(o)
    show(r)
    o = o + 60
c = circle(x=0,y=0,r=3,stroke="red",fill="khaki",stroke_width=3)
show(c)