Pookkalam by Nikhila M

Code

#******************* Welcome to my code of pookkalam ****************************

# starting with the background color and outer circle
bg = rectangle(w=300, h=300, fill="white", stroke="none")
c = circle(x=0, y=0, r=146.5, fill="white", stroke="#AF1E04", stroke_width=4)
c1 = circle(x=0, y=0, r=141, fill="#300303", stroke="none")
show(bg,c,c1)  

# adding petals
c2 = circle(x=110, y=0, r=29.6, fill="yellow", stroke="none") | repeat(30,rotate(30))
c3 = circle(x=110, y=0, r=24, fill=" #F5DE1D", stroke="none") | repeat(30,rotate(30))
c4 = circle(x=110, y=0, r=19, fill="#FFBC4D", stroke="none") | repeat(30,rotate(30))
c5 = circle(x=110, y=0, r=15, fill="#E5920A", stroke="none") | repeat(30,rotate(30))
c6 = circle(x=110, y=0, r=9, fill="#E8730A", stroke="white", stroke_width=3) | repeat(30,rotate(30))
outer_petal_1 = combine([c2,c3,c4,c5,c6])
show(outer_petal_1)

s1 = rectangle(x=0, y=0, w=190, h=170, stroke_width=0.5, stroke="none", fill="white") | repeat(20,rotate(30))
s2 = rectangle(x=0, y=0, w=180, h=160, stroke_width=0.5, stroke="none", fill="#FF0B0B") | repeat(21,rotate(30))
s3 = rectangle(x=0, y=0, w=170, h=150, stroke_width=0.5, stroke="none", fill="#BB0A0A") | repeat(22,rotate(30))
outer_petal_2 = combine([s1,s2,s3])
show(outer_petal_2)

c7 = circle(r=100, stroke="#FFED16", fill="#FF7916", stroke_width=4)
l1 = line(x1=0, y1=0, x2=0, y2=100, stroke_width=2.5, stroke="#FFED16") | repeat(46,rotate(15.5))
outer_pattern_1 = combine([c7,l1])
show(outer_pattern_1)

e1 = ellipse(w=180, h=300/4, stroke="white ", stroke_width=1.5, fill="#AD0000") | repeat(7,rotate(50))
e2 = ellipse(w=165, h=135/4, stroke="white", stroke_width=1, fill="#CA031B") | repeat(30,rotate(40))
e3 = ellipse(w=145, h=135/4, stroke="none", stroke_width=1.5, fill="#E32115") | repeat(30,rotate(40))
e4 = ellipse(w=130, h=135/4, stroke=" none", stroke_width=2.5, fill="red") | repeat(30,rotate(40))
outer_petal_3 = combine([e1,e2,e3,e4])
show(outer_petal_3)

c8 = circle(x=0, y=0, r=58, fill="yellow", stroke="none")
l2 = line(x1=0, y1=0, x2=0, y2=58, stroke_width=3, stroke="#CF046C") | repeat(18,rotate(20))
c9 = circle(x=-52, y=0, r=3, fill="#FF9608", stroke="none") | repeat(38,rotate(20))
outer_pattern_2 = combine([c8,l2,c9])
show(outer_pattern_2)

# inner flower
s4= rectangle(x=0, y=0, w=70, h=68, stroke="#FFCAE5", stroke_width=1.6, fill="#FF6BE0") | repeat(7, rotate(24.9))
c10 = circle(x=25, y=0, r=16, stroke="white", stroke_width=2, fill="rgba(230, 255, 91, 0.945)") | repeat(9, rotate(40))  
show(s4,c10)

x, y = 0, 0
r = 10
n = 5
step = r/n
for i in range(2):
    c11 = circle(x=0, y=0, r=r, stroke="none", fill="#FF9319") + circle(x=0, y=0, r=r+3, stroke="#E3FF59", stroke_width=2) 
    show(c11)
    r = r+step
    
c12 = circle(x=0, y=0, r=8, fill="#FF7203", stroke="white", stroke_width=2)
show(c12)   
#********************* End of my code of pookkalam ***************************************