Pookkalam by Joyal Francis T J

Code

# I LOVE MY INDIA
def hindu():
    o1=line(0,25,-25,35)
    o2=line(-25,35,-25,25)
    o3=line(-25,25,0,10)
    o4=line(0,10,37,28)
    o5=line(0,25,15,38)
    o6=line(15,38,0,48)
    o7=line(37,28,30,40)
    o8=line(25,50,18,55)
    o9=line(0,48,-13,48)
    o10=line(-13,48,-13,60)
    o11=line(-13,60,5,65)
    o12=line(18,55,30,60)
    o13=line(30,60,35,70)
    o14=line(35,70,40,80)
    o15=line(40,80,25,100)
    o16=line(25,100,-18,95)
    o17=line(-18,95,-18,85)
    o18=line(-18,85,20,80)
    o19=line(20,80,15,70)
    o20=line(15,70,5,65)
    o=o1+o2+o3+o4+o5+o6+o7+o8+o9+o10+o11+o12+o13+o14+o15+o16+o17+o18+o19+o20

    e1=line(25,50,60,60)
    e2=line(60,60,65,25)
    e3=line(65,25,55,25)
    e4=line(55,25,50,40)
    e5=line(50,40,45,45)
    e6=line(45,45,30,40)
    e=e1+e2+e3+e4+e5+e6

    c1=line(50,100,25,110)
    c2=line(50,100,75,110)
    c3=line(75,110,75,115)
    c4=line(25,110,25,115)
    c5=line(25,115,50,105)
    c6=line(50,105,75,115)
    c=c1+c2+c3+c4+c5+c6

    r=rectangle(w=10,h=10)|rotate(60)|translate(x=50,y=120)
    h=o+e+c+r|scale(0.65)|translate(x=-10,y=-9)
    return h

def christian():
    rect1=rectangle(x=75,y=-50,w=20,h=100,fill="black")
    rect2=rectangle(x=75,y=-30,w=75,h=20,fill="black")
    rect=rect1+rect2|scale(0.6)|translate(x=-8,y=-5)
    return rect

def muslim():
    m1=circle(x=-60,y=-20,r=50,fill="green",stroke="#ff6426")
    m2=circle(x=-40,y=-20,r=35,fill="#ff6426",stroke="#ff6426")#makes moon
    p1=rectangle(w=10,h=10,fill="green",stroke="green")|repeat(3,rotate(60))|translate(x=-15,y=-15)
    mus=m1+m2+p1|scale(0.6)|translate(x=10,y=-20)
    return mus

#These are the codes that are used to embellish our pookalam
e01 = ellipse(h=86.25, w=25, fill="purple", stroke="none")|repeat(5,rotate(60))
e02 = ellipse(h=83.125, w=3.125, fill="purple", stroke="none")|repeat(5,rotate(60))
c01 = circle(r=15, fill="yellow", stroke="brown", stroke_width=8)
e0=e01+e02+c01
flowerdecor=e0|scale(0.6)|translate(x=110,y=0)|repeat(100,rotate(15))

decoration=rectangle(w=50,h=50,fill="red",stroke="red",x=50,y=50)|repeat(50,rotate(20))

shapingcircle=circle(r=108,fill="#ccc900",stroke="#ccc900")

outercircle=circle(r=120,fill="cyan",stroke_width=10)

harmony=circle(r=80,fill="#ff6426",stroke="#ff6426")

background=rectangle(w=300,h=300,fill="#f7f7f7")

#India First
coexistance=background+outercircle+flowerdecor+shapingcircle+decoration+harmony
unity=hindu()+christian()+muslim()
india=coexistance+unity

#jaihind
show(india)