Pookkalam by Neema Francis

Code

def outer(side,color):
 return rectangle(w=side,h=side,fill=color,stroke="none")
red=outer(side=214,color="#aa0906")|repeat(10,rotate(10))
show(red)
c = circle(r=139,fill="#e01115",stroke="none")
show(c)
orange1=outer(side=196,color="#F36636")|repeat(10,rotate(10))
show(orange1)
orange=outer(side=182,color="orange")|rotate(5)|repeat(10,rotate(10))
show(orange)
yellow=outer(side=168,color="yellow")|rotate(10)|repeat(10,rotate(10))
show(yellow)
white=outer(side=154,color="white")|rotate(15)|repeat(10,rotate(10))
show(white)
mid_c=circle(r=99,fill="darkgreen",stroke="none")
show(mid_c)

#middlelayer
s0 = outer(side=140, color = "white") | repeat(10, rotate(30))
s1 = outer(side=129, color = "#fff315") | repeat(9, rotate(30))
s2 = outer(side=118, color = 'orange') | repeat(9, rotate(60))
s3 = outer(side=107, color= "#ff6b15",) | repeat(9, rotate(30))
show(s0,s1,s2,s3)

#extreme_inner
s42 = circle(x =32, y=0, r = 28, fill = "darkgreen", stroke = "none") | repeat(12,rotate(80))
show(s42)
c = circle(r=50, fill="#ff6b15" , stroke="none")
show(c)
# mountain
p1 = point(x=0, y=25)
p2 = point(x=-30, y=0)
p3 = point(x=30, y=0)
shape = polygon([p1, p2, p3],fill="darkgreen",stroke="none")
show(shape)
p4 = point(x=15, y=0)
p5 = point(x=35, y=20)
p6 = point(x=50, y=0)
shape1 = polygon([p4, p5, p6],fill="darkgreen",stroke="none")
show(shape1)
#tree
p4 = point(x=-50, y=0)
p5 = point(x=-35, y=25)
p6 = point(x=-40, y=0)
shape1 = polygon([p4, p5, p6],fill="brown",stroke="none")
show(shape1)
#leaves
p7 = point(x=-33, y=24)
p8 = point(x=-26, y=19)
p9 = point(x=-31, y=11)
shape2 = polygon([p7, p8, p9],fill="darkgreen",stroke="none")
show(shape2)
p71 = point(x=-34, y=27)
p81 = point(x=-22, y=20)
p91 = point(x=-22, y=27)
shape3 = polygon([p71, p81, p91],fill="darkgreen",stroke="none")
show(shape3)
p72 = point(x=-35, y=27)
p82 = point(x=-23, y=32)
p92 = point(x=-33, y=34)
shape4 = polygon([p72, p82, p92],fill="darkgreen",stroke="none")
show(shape4)
p76 = point(x=-35, y=26)
p86 = point(x=-41, y=27)
p96= point(x=-38, y=32)
shape6 = polygon([p76, p86, p96],fill="darkgreen",stroke="none")
show(shape6)
p75 = point(x=-37, y=25)
p85 = point(x=-43, y=16)
p95 = point(x=-45, y=24)
shape5 = polygon([p75, p85, p95],fill="darkgreen",stroke="none")
show(shape5)
#dot
dot=circle(r=3,x=-35, y=24.5, fill="darkgreen",stroke="none")
show(dot)
#water
s= rectangle(x=0,  y=-5 , w=100  ,h=10,fill="#0852db" , stroke="none")
show(s)
c2=circle(r=5,x=-44,y=-10,  fill="#0852db" , stroke="none")| repeat(32,rotate(5))
show(c2)
c3=circle(r=10,x=-28,y=-13,  fill="#0852db" , stroke="none")| repeat(14,rotate(10))
show(c3)
c4=circle(r=8, x=-11, y=-8,  fill="#0852db" , stroke="none")| repeat(12,rotate(10))
show(c4)
c5=circle(r=5,x=-40,y=-10, fill="#0852db",stroke="none")
show(c5)
c6=circle(r=5,x=40,y=-10, fill="#0852db",stroke="none")
show(c6)
#boat
boat=rectangle(w=45,h=6,x=10,y=-22,fill="black",stroke="none")
show(boat)
p4 = point(x=17, y=-25)
p5 = point(x=36, y=-12)
p6 = point(x=32, y=-25)
shape1 = polygon([p4, p5, p6],fill="black",stroke="none")
show(shape1)
pa = point(x=2, y=-25)
pb = point(x=-18, y=-12)
pc = point(x=-13, y=-25)
shape4 = polygon([pa, pb, pc],fill="black",stroke="none")
show(shape4)
#boatman
manhead=circle(r=2,x=20,y=-11,fill="black")
show(manhead)
body=line(x1=20,y1=-11,x2=20,y2=-20,stoke_width=20)
show(body)
body1=line(x1=20,y1=-15.5,x2=16,y2=-20)
show(body1)
#sun
sun=circle(r=5,x=24,y=26,fill="#f92e0e",stroke="none")
show(sun)