Pookkalam by SNEHA P

Code

f = color(r=255,g=0,b=0)
c1 = ellipse(w=200,h=10,fill=f,stroke="black",stroke_width=2)|repeat(40,rotate(10))
c2 = circle(r=100,fill="#cbaae3",stroke="none")
c3 = circle(r=40,fill="brown",stroke="none")
d = rectangle(w=55,h=55,fill="pink")|repeat(40,rotate(60)|scale(0.9))
d1 = rectangle(x=0,y=0,h=300,w=300,fill="white")
c4 = circle(r=10,y=105,fill="#ff6105",stroke="red")|repeat(36, rotate(10))
c5 = circle(r=5,y=103,fill="#16ff05",stroke="#0f6908",stroke_width=2)|repeat(36, rotate(10))
c6 = circle(r=10,y=40,fill="#16ff05",stroke="#0f6908",stroke_width=2)|repeat(36, rotate(20))
c7 = circle(r=10,y=110,fill="#16ff05",stroke="#0f6908",stroke_width=2)|repeat(36, rotate(20))
c8 = circle(r=10,y=120,fill="pink",stroke="#0f6908",stroke_width="none")|repeat(36, rotate(50))

def square(color, side):
    return rectangle(w=side, h=side, fill=color, stroke='none')
layer1 = square(side=219,color="black") | repeat(10,  rotate(15))
layer2 = square(side=213,color='#972402') | repeat(10,  rotate(10)) 
layer3 = square(side=213,color='#cb3205') | repeat(4,  rotate(20))
layer4 = square(side=196, color='#fd6002') | rotate(5) | repeat(10,  rotate(10)) 
layer5 = square(side=192, color='#eafe24') | repeat(10,  rotate(10)) 
layer6 = square(side=190, color='#edbb0a') | repeat(4,  rotate(20))
layer7 = square(side=125,color="#876491") | repeat(10,  rotate(15))

show(d1,layer1,layer2,layer3,layer4,layer5,layer6,c8,c7,c4,c5,c2,layer7,c1,c6,c3,d)