Pookkalam by Abhijith P

Code

s1=circle(r=100,fill='#800020',stroke='#800020')
s2=circle(r=90,fill='#af002a',stroke='#af002a')
s3=circle(r=80,fill='#fe2712',stroke='#fe2712')
s4=circle(r=70,fill='#f77f00',stroke='#f77f00')

s5 = rectangle(w=98, h=98, fill='white',stroke='white')
s6 = rectangle(w=120, h=68, fill='white',stroke='white')
s7 = s6 | rotate(90)

s8 = rectangle(w=98, h=98, fill='#af002a',stroke='#af002a')
ss8 = s8 | rotate(45)
s9 = rectangle(w=120, h=68, fill='#af002a',stroke='#af002a')
ss9 = s9 | rotate(45)
ss10 = ss9 | rotate(90)

p1 = point(x=-25, y=-60)
p2 = point(x=25, y=-60)
p3 = point(x=-60, y=-25)
p4 = point(x=-60, y=25)
p5 = point(x=-25, y=60)
p6 = point(x=25, y=60)
p7 = point(x=60, y=25)
p8 = point(x=60, y=-25)

shape = polygon([p2, p1, p3, p4, p5, p6,p7,p8],fill ='#800020', stroke ='#800020')


c1=circle(r=60,fill='#800020',stroke='#800020')


outer_sublayer_01 = rectangle (w=209,h=209,fill="black", stroke="black") | repeat (15,rotate(50))
outer_sublayer_02 = rectangle (w=193,h=193,fill="#cc0000", stroke="#cc0000")|rotate(15) | repeat (15,rotate(50))
outer_sublayer_03 = rectangle (w=178,h=178,fill="orange", stroke="orange")|rotate(0) | repeat (15,rotate(50))
outer_sublayer_04 = rectangle (w=165,h=165,fill="yellow", stroke="yellow")|rotate(15) | repeat (15,rotate(50))
outer_sublayer_05 = rectangle (w=153,h=153,fill="white", stroke="white")|rotate(0) | repeat (15,rotate(50))
#middle layer
m1=circle(r=60,fill='#800020',stroke='#800020')
m2=circle(r=50,fill='#af002a',stroke='#af002a')
m3=circle(r=40,fill='#fe2712',stroke='#fe2712')
m4=circle(r=30,fill='#f77f00',stroke='#f77f00')
m5=circle(r=20,fill='yellow',stroke='yellow')
m6=circle(r=15,fill='#800020',stroke='#800020')
m7=circle(r=10,fill='#af002a',stroke='#af002a')
m8=circle(r=7,fill='#fe2712',stroke='#fe2712')
m9=circle(r=4,fill='#f77f00',stroke='#f77f00')
m10=circle(r=1,fill='yellow',stroke='yellow')





show(outer_sublayer_01,outer_sublayer_02, outer_sublayer_03,outer_sublayer_04, outer_sublayer_05,) 
show(s1,s2,s3,s4,s5,ss8,s7,ss9,s6,ss10,shape,c1,m1,m2,m3,m4,m5,m6,m7,m8,m9,m10)