Pookkalam by Abdul Hakeem

Code

e1 = ellipse(h=276, w=80, fill="#FF85C9", stroke="black", stroke_width=2)|repeat(5,rotate(60))
e2 = ellipse(h=266, w=10, fill="#717D7E", stroke="black", stroke_width=1)|repeat(5,rotate(60))
c1 = circle(r=25, fill="yellow", stroke="brown", stroke_width=8)
e=e1+e2+c1
flower=e|scale(0.2)|translate(x=110,y=0)|repeat(40,rotate(10))
e3 = ellipse(h=276, w=80, fill="red", stroke="black", stroke_width=2)|repeat(5,rotate(60))
e4 = ellipse(h=266, w=10, fill="#2E4053", stroke="black", stroke_width=1)|repeat(5,rotate(60))
c2 = circle(r=25, fill="yellow", stroke="brown", stroke_width=8)
e7=e3+e4+c2|rotate(30)
flower1=e7|scale(0.2)|translate(x=100,y=0)|repeat(20,rotate(360/20))
c1=circle(r=140,fill="#FADB1A",stroke="darkgreen",stroke_width=10)
c2=circle(r=100,fill="#F7DC6F",stroke="darkgreen",stroke_width=10)
sun=circle(r=7,x=20,y=30,fill="#FF7C00",stroke="none")
r=rectangle(w=400,h=50,fill="darkgreen",stroke="none")|translate(x=100)
p1=point(x=-50,y=-25)
p2=point(x=-150,y=-25)
p3=point(x=-150,y=125)
s=polygon([p1,p2,p3],stroke="none",fill="darkgreen")
boat=s+r
head=circle(r=9,stroke="none",fill="darkgreen")|translate(x=0,y=100)
body=ellipse(h=100,w=20,stroke="none",fill="darkgreen")|translate(x=0,y=30)
hand1=circle(r=6,stroke="none",fill="darkgreen")|translate(x=20,y=40)
hand2=circle(r=7,stroke="none",fill="darkgreen")|translate(x=25,y=60)
hand=hand1+hand2
pole=rectangle(w=5,h=200,fill="darkgreen",stroke="none")|rotate(-10)|translate(x=15)
man=head+body+hand+pole
man1=man|translate(x=-30)
man2=man|translate(x=100)
man3=man|translate(x=30)
men=man1+man2+man3
full_boat=boat+men|translate(y=-160)|scale(0.35) #scaling the size
lcircle = circle(fill="darkgreen",r=6,stroke="none")
st=lcircle|translate(x=50)
strap=(st|repeat(50,rotate(-2)|scale(0.97))|translate(x=50))|rotate(180)|translate(x=100)
lcircle1 = circle(fill="#239B56",r=6,stroke="none")
st=lcircle1|translate(x=50)
l1=(st|repeat(50,rotate(-2)|scale(0.97))|translate(x=-10,y=-70))|rotate(90)|translate(x=100)|scale(0.3)
l2=(st|repeat(50,rotate(-2)|scale(0.97))|translate(x=-10,y=-35))|rotate(90)|translate(x=100)|scale(0.33)
l3=(st|repeat(50,rotate(-2)|scale(0.97))|translate(x=-15,y=15))|rotate(90)|translate(x=100)|scale(0.43)
l4=(st|repeat(50,rotate(-2)|scale(0.97))|translate(x=-20,y=30))|rotate(90)|translate(x=100)|scale(0.43)
l5=(st|repeat(50,rotate(-2)|scale(0.97))|translate(x=-25,y=50))|rotate(90)|translate(x=100)|scale(0.48)
leaf=strap+l1+l2+l3+l4+l5
c = Circle(fill="brown",stroke="none",center=Point(x=0, y=-100), radius=10)
trunk = c | Repeat(40, Rotate(-3) | Scale(0.96))
leaf_bunch=leaf|repeat(6,rotate(60))|translate(x=-15,y=20)
tree=trunk+leaf_bunch|translate(x=-20,y=-10)|scale(0.9)
show(c1,c2,sun,full_boat,tree,flower,flower1)