Pookkalam by Arjun

Code

#Happy ONAM


c1 = circle( r= 140, fill="tomato", stroke="black", stroke_width=3)
r1 = rectangle(x=0,w=197,h=197,fill="#7d1004") | repeat(4, rotate(50))
r2 = rectangle(x=0,w=197,h=197,fill="#7d1004") | repeat(4, rotate(100))
r3 = rectangle(x=0,w=197,h=197,fill="#7d1004") | repeat(4, rotate(150))
r4 = rectangle(x=0,w=197,h=197,fill="#f4ff59") | repeat(4, rotate(200))
r5 = rectangle(x=0,w=197,h=197,fill="#7d1004",stroke='black') | repeat(4, rotate(250))
r6 = rectangle(x=0,w=197,h=197,fill="yellow") | repeat(2, rotate(300))
r71 = rectangle(x=0,w=197,h=197,fill="#089e00") | repeat(1, rotate(550))
r7 = rectangle(x=0,w=197,h=197,fill="yellow") | repeat(2, rotate(350))
r8 = rectangle(x=0,w=180,h=180,fill="black") | repeat(1, rotate(400))
r9 = rectangle(x=0,w=170,h=170,fill="#fcfc12") | repeat(2, rotate(450))
show(c1,r1,r2,r3,r4,r5,r6,r7,r71,r8,r9)
c3=circle(r=95,fill="brown")
show(c3)
def square(side,color):
      return rectangle(w=side, h=side, fill=color, stroke='none')
r11 = square(side=65,color='#7d1004') | repeat(10,  rotate(30))
r12 = square(side=79,color='golden')  | rotate(15)| repeat(10,  rotate(30))
r13= square(side=97,color='orange') | repeat(10,  rotate(30))
r14= square(side=117,color='yellow')  | rotate(15)| repeat(10,  rotate(30))
show(r14,r13,r12,r11)
c4=circle(r=43,fill="red")
show(c4)
e1=ellipse(w=30,h=17,x=20,y=0,stroke='#f4ff59',stroke_width=3,fill="#f4ff59") | rotate(22.5)
e2=e1 | repeat(9, rotate(45))
show(e2)
c5=circle(r=15,fill='green',stroke='#972402',stroke_width=4)

c6=circle(r=5,fill="red",stroke="none")
show(c5,c6)