Pookkalam by Enric S Neelamkavil

Code

#6 circles outline
outer = circle(x=50, y=0, r=50, fill="#8b0000", stroke_width=0) | repeat(6, rotate(60))
outer1 = circle(x=50, y=0, r=55, fill="yellow", stroke_width=0) | repeat(6, rotate(60))
outer2 = circle(x=50, y=0, r=60, fill="orange", stroke_width=0) | repeat(6, rotate(60))
outer3 = circle(x=50, y=0, r=65, fill="#c21320", stroke_width=0) | repeat(6, rotate(60))
outer4 = circle(x=50, y=0, r=70, fill="black", stroke_width=0) | repeat(6, rotate(60))
show(outer4, outer3,outer2,outer1, outer,)
e1 = ellipse(x=-50,w=100, h=75, fill="#c21320", stroke_width=0)
e2 = ellipse(x=-50, w=100, h=50, fill="#fd6002", stroke_width=0)
e3 = ellipse(x=-50, w=100, h=25, fill="#eafe24", stroke_width=0)
e19 = ellipse(x=-50, w=100, h=10, fill="green", stroke_width=0)
show( e1, e2, e3, e19)
e4 = ellipse(x=-50,w=100, h=75, fill="#c21320", stroke_width=0) | rotate(60)
e5 = ellipse(x=-50, w=100, h=50, fill="#fd6002", stroke_width=0) | rotate(60)
e6 = ellipse(x=-50, w=100, h=25, fill="#eafe24", stroke_width=0) | rotate(60)
e20 = ellipse(x=-50, w=100, h=10, fill="green", stroke_width=0) | rotate(60)
show( e4, e5, e6, e20)
e7 = ellipse(x=-50,w=100, h=75, fill="#c21320", stroke_width=0) | rotate(120)
e8 = ellipse(x=-50, w=100, h=50, fill="#fd6002", stroke_width=0) | rotate(120)
e9 = ellipse(x=-50, w=100, h=25, fill="#eafe24", stroke_width=0)| rotate(120)
e21 = ellipse(x=-50, w=100, h=10, fill="green", stroke_width=0) | rotate(120)
show( e7, e8, e9, e21)
e10 = ellipse(x=-50,w=100, h=75, fill="#c21320", stroke_width=0) | rotate(-60)
e11 = ellipse(x=-50, w=100, h=50, fill="#fd6002", stroke_width=0) | rotate(-60)
e12 = ellipse(x=-50, w=100, h=25, fill="#eafe24", stroke_width=0) | rotate(-60)
e22 = ellipse(x=-50, w=100, h=10, fill="green", stroke_width=0) | rotate(-60)
show( e10, e11, e12, e22)
e13 = ellipse(x=-50,w=100, h=75, fill="#c21320", stroke_width=0)| rotate(-120)
e14 = ellipse(x=-50, w=100, h=50, fill="#fd6002", stroke_width=0)| rotate(-120)
e15 = ellipse(x=-50, w=100, h=25, fill="#eafe24", stroke_width=0)| rotate(-120)
e23 = ellipse(x=-50, w=100, h=10, fill="green", stroke_width=0) | rotate(-120)
show( e13, e14, e15, e23)
e16 = ellipse(x=-50,w=100, h=75, fill="#c21320", stroke_width=0)| rotate(180)
e17 = ellipse(x=-50, w=100, h=50, fill="#fd6002", stroke_width=0)| rotate(180)
e18 = ellipse(x=-50, w=100, h=25, fill="#eafe24", stroke_width=0)| rotate(180)
e24 = ellipse(x=-50, w=100, h=10, fill="green", stroke_width=0) | rotate(180)
show( e16, e17, e18, e24)


def r(side,color):

 return rectangle(w=side,h=side,fill=color,stroke="none")

m = circle(r=70,fill="black",stroke="none")
m1=r(side=97,color="#8b0000")|repeat(10,rotate(10))
m2=r(side=87,color="#ff0000")|rotate(5)|repeat(10,rotate(10))
m3=r(side=77,color="#ff6700")|rotate(10)|repeat(10,rotate(10))
m4=r(side=67,color="#ffbf00")|rotate(15)|repeat(10,rotate(10))
show(m,m1,m2,m3,m4)
#Center Circles
a2 = circle(r=30, fill="white", stroke_width=0)
a1 = circle(r=35, fill="pink", stroke_width=0)
show(a1,a2)
#water
s4 = ellipse(x=0, y=10, w=55, h=40, fill="#FFFFCC", stroke_width=0) 
s5 = ellipse(x=0, y=6, w=60, h=30, fill="#FFFFCC", stroke_width=0)
s3 = circle(r=30, fill="#ADD8E6", stroke_width=0)
show(s3,s4,s5)
#boat
s1 = ellipse(x=10, y=5, w=40, h=20, fill="#FFFFCC", stroke_width=0)
s2 = ellipse(x=10, y=0, w=40, h=20, fill="maroon", stroke_width=0)
show(s2,s1)
#coconut tree
s7 = ellipse(x=0.5, y=25, w=30, h=10, fill="#FFFFCC", stroke_width=0) | rotate(60)
s6 = ellipse(x=0.5, y=20, w=30, h=10, fill="#6E260E", stroke_width=0) |rotate(60)
s8 = circle(x=-10,y=21,r=2, fill="orange", stroke_width=0)
s9 = circle(x=-13,y=22,r=2, fill="orange", stroke_width=0)
s10 = circle(x=-8,y=23,r=2, fill="orange", stroke_width=0)
show(s6,s7,s8,s9,s10)
z = line(x1=-10, y1=24, x2=0, y2=20, stroke="green")
z1 = line(x1=0, y1=20, x2=4, y2=15, stroke="green")
z2 = line(x1=0, y1=19, x2=0, y2=15, stroke="green")
z3 = line(x1=-2, y1=20, x2=-3, y2=15, stroke="green")
z4 = line(x1=-4, y1=22, x2=-5, y2=15, stroke="green")
z5 = line(x1=-6, y1=22, x2=-7, y2=15, stroke="green")
show(z,z1,z2,z3,z4,z5)
z6 = line(x1=-10, y1=24, x2=0, y2=10, stroke="green")
z7 = line(x1=-2, y1=9, x2=-3, y2=13, stroke="green")
z8 = line(x1=-4, y1=10, x2=-5, y2=15, stroke="green")
z9 = line(x1=-6, y1=11, x2=-7, y2=16, stroke="green")
show(z6,z7,z8,z9)

#Sun
n= circle(x=13,y=18,r=2, fill="orange", stroke_width=0)
n1= circle(x=13,y=18,r=4.5, fill="yellow", stroke_width=0)
n2= circle(x=13,y=18,r=8, fill="#FFFF99", stroke_width=0)
show(n2,n1,n)