Pookkalam by Pranav MV

Code

#base
co1=color(r=200,g=200,b=200)
r1=rectangle(w=300,h=300,fill=co1,stroke="none")
show(r1)
#outer circles
c3=circle(r=150,fill="black",stroke="none")
c1=circle(x=75,y=0,r=75,fill="#38d1bd",stroke="none")
c2=c1|repeat(6,rotate(60))
show(c3,c2)
#ellipses
e1=ellipse(w=50,h=50,fill="black",stroke="none")
show(e1)
c1=circle(x=75,y=0,r=63,fill="#b407ba",stroke="none")
c2=c1|repeat(6,rotate(60))
show(c2)
#ellipses
e1=ellipse(w=50,h=50,fill="black",stroke="none")
show(e1)
c1=circle(x=75,y=0,r=55,fill="#de5af2",stroke="none")
c2=c1|repeat(6,rotate(60))
show(c2)

#rectangle1
r2=rectangle(w=200,h=200,fill="#fa3116",stroke="none")
r3=r2|repeat(3,rotate(60))
show(r3)
#rectangle2
r4=rectangle(w=185,h=185,fill="#ed9224",stroke="none")
r5=r4|repeat(3,rotate(60))
show(r5)
#rectangle3
r6=rectangle(w=170,h=170,fill="#edc824",stroke="none")
r7=r6|repeat(3,rotate(60))
show(r7)
c=circle(r=100,fill="#ede61c", stroke="none")
c1=c|repeat(37,rotate(5))
show(c1)
#ellipses
e1=ellipse(w=50,h=50,fill="black",stroke="none")
show(e1)
#rectangle
r2=rectangle(w=140,h=140,fill="#068a53",stroke="none")
r3=r2|repeat(30,rotate(18))
show(r3)
r2=rectangle(w=125,h=125,fill="#05b068",stroke="none")
r3=r2|rotate(9)
r4=r3|repeat(30,rotate(18))
show(r4)

r2=rectangle(w=110,h=110,fill="#0ad17d",stroke="none")
r3=r2|repeat(30,rotate(18))
show(r3)

#ellipses
e1=ellipse(w=5,h=5,fill="black",stroke="none")
show(e1)
e1=ellipse(w=140,h=20,fill="#f0efe9",stroke="none")
e2=e1|repeat(5,rotate(36))
e1=ellipse(w=140,h=20,fill="#f0efe9",stroke="none")|rotate(18)
e3=e1|repeat(5,rotate(36))
show(e2,e3)




#inner circles
c=circle(x=-50,y=-4,r=5,fill="#07b7f2", stroke="none")
c1=c|repeat(37,rotate(5))
show(c1)
c=circle(x=-41,y=-4,r=5,fill="#1fbdf2", stroke="none")
c1=c|repeat(36,rotate(5))
show(c1)
c=circle(x=-34,y=-4,r=5,fill="#24bdf0", stroke="none")
c1=c|repeat(35,rotate(5))
show(c1)
c=circle(x=-30,y=-5,r=5,fill="#33c4f5", stroke="none")
c1=c|repeat(28,rotate(5))
show(c1)
c=circle(x=-27,y=-5,r=5,fill="#36c5f5", stroke="none")
c1=c|repeat(33,rotate(5))
show(c1)
c=circle(x=-23,y=-7,r=10,fill="#36c5f5", stroke="none")
c1=c|repeat(30,rotate(5))
show(c1)
c=circle(x=-18,y=-7,r=10,fill="#36c5f5", stroke="none")
c1=c|repeat(28,rotate(5))
show(c1)
c=circle(r=15,fill="#36c5f5",stroke="none")
show(c)


c=circle(x=34,y=4,r=5,fill="#f5c645", stroke="none")
c1=c|repeat(35,rotate(5))
show(c1)
c=circle(x=30,y=4,r=5,fill="#edd537", stroke="none")
c1=c|repeat(28,rotate(5))
show(c1)
c=circle(x=27,y=4,r=5,fill="#ffee0a", stroke="none")
c1=c|repeat(33,rotate(5))
show(c1)
c=circle(x=23,y=7,r=10,fill="#ffee0a", stroke="none")
c1=c|repeat(30,rotate(5))
show(c1)
c=circle(x=18,y=7,r=10,fill="#ffee0a", stroke="none")
c1=c|repeat(28,rotate(5))
show(c1)
#sun
c1=circle(x=-15,y=10,r=10,fill="#f0610e", stroke="none")
c2=circle(x=-15,y=10,r=6,fill="#f22a07", stroke="none")
show(c1,c2)
#hill
p1=point(x=-20,y=0)
p2=point(x=25,y=0)
p3=point(x=0,y=20)
po1=polygon([p1,p2,p3],fill="#804706",stroke="none")|translate(x=-2,y=-2)
show(po1)
c=circle(x=50,y=4,r=5,fill="#f5ac2f", stroke="none")
c1=c|repeat(35,rotate(5))
show(c1)
c=circle(x=42,y=4,r=5,fill="#f5c133", stroke="none")
c1=c|repeat(35,rotate(5))
show(c1)
p1=point(x=-20,y=0)
p2=point(x=25,y=0)
p3=point(x=0,y=25)
po1=polygon([p1,p2,p3],fill="#804706",stroke="none")|translate(x=-35,y=-3)
show(po1)
#tree
c=circle(x=0,y=0,r=2,fill="black")
c1=c|repeat(20,translate(x=.5,y=1.8))
c2=c1|translate(x=10,y=0)
c3=c1|scale(x=-1)
show(c2,c3)

#leaf
e1=ellipse(w=30,h=5,fill="#0d7517",stroke="none")
p=e1|repeat(3,rotate(60))
l1=p|translate(x=20,y=32)
l3=p|rotate(20)
l2=l3|translate(x=-9,y=32)
show(l1,l2)