Pookkalam by sandra

Code

#############bgintercode########################
inter_deco = line(0,0,0,0)
side=300
angle = 0
colors = ['indigo','violet','#0080ff','green','yellow','orange','red']
for i,color in enumerate(colors):
    inter_deco += rectangle(h=side,w=side,fill=color,stroke=color,fill_opacity=0.3)|rotate(angle)|repeat(30,rotate(12))
    side -= 40
    angle += 5
##################centercircleeeee##############
sc1 = circle(r=40,y=57,stroke="#ff0000",stroke_width=4)
sc2 = circle(r=35,y=57,stroke="#ff4000",stroke_width=4)
sc3 = circle(r=30,y=57,stroke="#ffbf00",stroke_width=4)
sc4 = circle(r=25,y=57,stroke="#bfff00",stroke_width=4)
sc5 = circle(r=20,y=57,stroke="#00ff80",stroke_width=4)
sc6=circle(r=15,y=57,stroke="#00bfff",stroke_width=4)
sc7=circle(r=10,y=57,stroke="#8000ff",stroke_width=4)
sc8=circle(r=5,y=57,stroke="#ff0080",stroke_width=4)
petals= combine([sc1,sc2,sc3,sc4,sc5,sc6,sc7,sc8])
petals2 = (petals| repeat(90,rotate(30)))
#####################roundedsquare####################
c1 = rectangle(w=120, h=120, fill="#ffff00")| repeat(100, rotate(30) | scale(0.9))
c2 = rectangle(w=96, h=96, fill="#ff0000")| repeat(100, rotate(30) | scale(0.9))
c3 = rectangle(w=72, h=72, fill="#00ffbf")| repeat(100, rotate(30) | scale(0.9))
c4 = rectangle(w=48, h=48, fill="#00bfff")| repeat(100, rotate(30) | scale(0.9))
c5 = rectangle(w=24, h=24, fill="#4000ff")| repeat(100, rotate(30) | scale(0.9))
############################centerstork##################
e1=ellipse(w=15,h=8.5,x=10,y=0,stroke='#9e0808',stroke_width=3,fill="#f4ff59") | rotate(22.5)
petal=e1 | repeat(20, rotate(45))
##########################output########################
show(inter_deco|scale(0.7))
show(petals,petals2)
show(c1,c2,c3,c4,c5)