Pookkalam by Sooraj.k

Code

# _______________Happy Onam_________________
def  deepam(x1=0,y1=0,size=0.15):
    c1=ellipse(w=200,h=120,fill="#78022c",y=-12)
    c2=ellipse(w=200,h=70,y=10,fill="white",stroke="#78022c",stroke_width=6)
    c3=ellipse(w=35,h=60,x=21,y=-2,fill="white",stroke="none")|rotate(30)
    c4=ellipse(w=35,h=60,x=-10,y=-15,fill="white",stroke="none")|rotate(300)
    c5=circle(r=20,x=3,y=5,fill="white",stroke="none")
    c6=ellipse(w=20,h=100,y=35,x=3,fill="white",stroke="none")
    c7=ellipse(w=25,h=120,y=45,x=3,fill="yellow",stroke="none")
    c8=ellipse(w=30,h=140,y=60,x=3,fill="red",stroke="none")
    c9=ellipse(w=205,h=65,fill="#78022c",stroke="none")
    t1,t2,t3=point(x=0,y=0),point(x=-50,y=-27),point(x=50,y=-27)
    t=polygon([t1,t2,t3],fill="#78022c",stroke="none")
    return combine([c1,c9,c2,t,c4,c3,c5,c8,c7,c6])|scale(size)|translate(x=x1,y=y1)
# ----background black----------
b=circle(r=220,fill="black")
# ----circles------
c1=circle(r=150,fill="#120257",stroke="#005c7a",stroke_width=.5)
c2=circle(r=85,fill="#0a2601")
c3=circle(r=45,fill="#081f01")
c4=circle(r=3,fill="#f7790a",y=142)|repeat(36,rotate(10))
#-------rectangles--------
r1=rectangle(w=205,h=205,stroke="none",fill="#5c030d")|repeat(18,rotate(10))
r2=rectangle(w=190,h=190,stroke="none",fill="#b31033")|rotate(5)|repeat(18,rotate(10))
r3=rectangle(w=170,h=170,stroke="none",fill="#e38109")|repeat(18,rotate(10))
r4=rectangle(w=155,h=155,stroke="none",fill="#d9be0d")|rotate(5)|repeat(18,rotate(10))
r5=rectangle(w=140,h=140,stroke="none",fill="#f0cf56")|repeat(18,rotate(10))
r6=rectangle(w=120,h=120,stroke="none",fill="white")|repeat(3,rotate(60))
r7=rectangle(w=105,h=105,stroke="none",fill="#690418")|rotate(30)|repeat(3,rotate(60))
r8=rectangle(w=90,h=90,stroke="none",fill="#c91e40")|repeat(3,rotate(60))
r9=rectangle(w=75,h=75,stroke="none",fill="#17022b")|rotate(30)|repeat(3,rotate(60))
# -----ellipse----
e1=ellipse(w=8,h=40,y=60,fill="#0a2601",stroke="none")|repeat(12,rotate(30))
# ----------deepam-------
depam=deepam(x1=125,y1=120)+deepam(x1=125,y1=-130)+deepam(x1=-125,y1=-130)+deepam(x1=-125,y1=120)
# ---final----
final=combine([c1,r1,r2,r3,r4,r5,c2,r6,r7,r8,r9,c3,e1,c4])|repeat(3,scale(.27))
show(b,final,depam)
print(""" പകിട്ടാർന്ന പൂക്കളങ്ങളും പാറിപ്പറക്കുന്ന ചിത്രശലഭങ്ങളും
മിഴിവേകുന്ന ഈ ചിങ്ങപ്പുലരിയിൽ ചെറിയ പിണക്കങ്ങളും
ഒട്ടേറെ ഇണക്കങ്ങളുമായി കടന്നുപോയ
പഴയകാലം നമുക്കൊരുമിച്ചു ഓർമ്മിക്കാം...
ഹൃദ്യമായ ഓണാശംസകൾ...
By Sooraj.k
10th -Std
Techinical High School Kokkur""")