Pookkalam by NIVYA

Code

shape=circle(x=150,y=0,r=15,stroke="gold",fill="#8b0000") | repeat(150,  rotate(2.4))
show(shape)
c1 = circle(r=135,stroke="gold")
show(c1)
shape5=rectangle(w=174,h=174,fill="#8B0000",stroke="#8B0000")|rotate(30)|repeat(30,rotate(50))
show(shape5)
shape6=rectangle(w=164,h=164,fill="#FFF000",stroke="#FFF000")|rotate(30)|repeat(30,rotate(50))
show(shape6)
shape7=rectangle(w=154,h=154,fill="#8B0000",stroke="#8B0000")|rotate(30)|repeat(30,rotate(50))
show(shape7)
shape8=rectangle(w=144,h=144,fill="#FF0000",stroke="#FF0000")|rotate(30)|repeat(30,rotate(50))
show(shape8)
c1 = circle(r=70,fill="#800000")
shape16=ellipse(h=190,w=22,fill="#FFFFFF",stroke="#008000",stroke_width=3)|repeat(200,rotate(85))
show(shape16)
c1 = circle(r=70,fill="#800000")
c2 = circle(r=115,stroke="gold",stroke_width=4)
c3=circle(r=65,stroke="#FFD700",stroke_width=4)
c4=circle(r=51,stroke="#ADFF2F",stroke_width=2)
c5=circle(r=49,stroke="#FF8C00",stroke_width=3)
c6=circle(r=46,stroke="#FFFF00",stroke_width=3)
c7=circle(r=39,stroke="#FF0000",stroke_width=2)
c8=circle(r=37,stroke="#FFA500",stroke_width=2)
c9=circle(r=35,stroke="#FFD700",stroke_width=2)
c10=circle(r=30,stroke="#DAA520",stroke_width=1)
show(c1, c2,c3,c4,c5,c6,c7,c8,c9,c10)
shape= circle(x=150, y=0, r=10,stroke="#4B0082",fill="#FFA500") | repeat(72, rotate(5))
show(shape)
c1 = circle(r=135,stroke="#4B0082")
show(c1)
shape1= circle(x=125, y=0, r=10,fill="#8B0000") | repeat(72, rotate(5))
show(shape1)

shape2=circle(x=150, y=0, r=5,fill="#4B0082") | repeat(72, rotate(5))
show(shape2)
shape3= circle(x=58, y=0, r=4,stroke="#FF7F50",stroke_width=1) | repeat(72, rotate(10))
show(shape3)
shape4= circle(x=42, y=0, r=2,fill="#FFFFFF",stroke="#FFFFFF") | repeat(36, rotate(10))
show(shape4)
p1=point(x=0,y=-40)
p2 = point(x=-50, y=-100)
p3 = point(x=50, y=-100)

shape = polygon([p1, p2, p3],fill="#FFFFFF",stroke="#FFFFFF")
show(shape)
c15=circle(r=35,x=0,y=-45,stroke="#FFD700",fill="#FFD700")
show(c15)
shape44=circle(r=5,x=0,y=-15,stroke="#FFD700")| repeat(36,rotate(10))
show(shape44)
r1=rectangle(w=67,h=45,x=0,y=-70,stroke="#008000",fill="#008000")
show(r1)
c1 = circle(x=-44, y=-60, r=10,stroke="#FFD700",fill="#FFD700")
c2 = circle(x=44, y=-60, r=10,stroke="#FFD700",fill="#FFD700")
show(c1, c2)

c1 = circle(x=-44, y=-60, r=8,fill="#FF4500",stroke="#FF4500")
c2 = circle(x=44, y=-60, r=8,fill="#FF4500",stroke="#FF4500")
show(c1, c2)

r1=rectangle(w=67,h=27,x=0,y=-50,stroke="#000000",fill="#000000")   
show(r1)
r2=rectangle(w=50,h=5,x=0,y=-65,stroke="#000000",fill="#000000")
show(r2)
def dot(x , y):
    c = circle(x=0 , y=-70, r=5, fill="#FFFFFF")
    return c

d1 = dot(x=0,y=-70)
show(d1)
r3=rectangle(w=50,h=13.5,x=0,y=-55,stroke="#FFFFFF",fill="#FFFFFF")
show(r3)
c3 = circle(x=-16, y=-57, r=5,stroke="#000000",fill="#000000")
c4 = circle(x=16, y=-57, r=5,stroke="#000000",fill="#000000")
show(c3, c4)

c3 = circle(x=-16, y=-57, r=1,fill="#FF4500",stroke="#FF4500")
c4 = circle(x=16, y=-57, r=1,fill="#FF4500",stroke="#FF4500")
show(c3, c4)
z1 = point(0,-63)
z2 = point(-33,-45)
z3 = point(33,-45)
shape20=polygon([z1,z2,z3],fill="#000000")
show(shape20)
z4 = point(0,-63)
z5 = point(-33,-37)
z6 = point(33,-37)
shape21=polygon([z4,z5,z6],fill="#008000",stroke="#008000")
show(shape21)
z7 = point(0,-58)
z8 = point(-20,-37)
z9 = point(20,-37)
shape22=polygon([z8,z9,z7],fill="#FFFF00",stroke="#FFFF00")
show(shape22)
c1=circle(x=-16,y=-81,r=3,fill="red",stroke="red")
c2=circle(x=16,y=-81,r=3,fill="red",stroke="red")
s1= circle(x=-3, y=-85, r=1,fill="red",stroke="red")
s2 = s1 | rotate(-6)
s3 = s1 | rotate(-4)
s4 = s1 | rotate(-2)
s5 = s1 | rotate(0)
s6 = s1 | rotate(2)
s7 = s1 | rotate(4)
s8 = s1 | rotate(6)
s9 = s1 | rotate(8)
s10 = s1 | rotate(10)

show(s1, s2, s3,s4,s5,s6,s7,s8,s9,s10)
def dot(x , y):
    c = circle(x=0, y=-55, r=2, fill="red")
    return c

d4 = dot(x=0, y=-70)
show(d4)
r6=rectangle(w=20,h=9,x=0,y=-41,stroke="red",fill="red")
show(r6)
r7=rectangle(w=10,h=4.5,x=0,y=-39,stroke="black",fill="black")
show(r7)
r8=rectangle(w=4,h=10,x=-10,y=-28,stroke="#8B4513",fill="#8B4513")
r9=rectangle(w=4,h=10,x=-20,y=-28,stroke="#8B4513",fill="#8B4513")
r10=rectangle(w=4,h=10,x=10,y=-28,stroke="#8B4513",fill="#8B4513")
r11=rectangle(w=4,h=10,x=20,y=-28,stroke="#8B4513",fill="#8B4513")
r12=rectangle(w=4,h=18,x=0,y=-26,stroke="#8B4513",fill="#8B4513")

show(r8,r9,r10,r11,r12)
z=line(x1=0,y1=-52,x2=0,y2=-48,stroke_width=4)
show(z)