Code
def rect(l,b,col,r):
r = rectangle(x=50, y=50, w=l, h=b,fill=col,stroke="violet") | rotate(r)
return r
c=circle(r=150,fill="orange")
show(c)
angle=60
c=circle(r=140,fill="green")
show(c)
for i in range(6):
re = rect(l=100,b=100,col="yellow",r=angle)
show(re)
angle = angle +60
c1=circle(r=100,fill="orange")
show(c1)
angle = 30
for i in range(6):
re = rect(l=40,b=40,col="red",r=angle)
show(re)
angle = angle +60
c1=circle(r=75,fill="yellow")
show(c1)
p1=point(x=-75,y=0)
p2=point(x=0,y=75)
p3=point(x=75,y=0)
p4=point(x=0,y=-75)
shape=polygon([p1,p2,p3,p4],fill="red")
show(shape)
c=circle(r=35,fill="violet")
show(c)
s=rectangle(w=50,h=50,fill="pink")
show(s)
c=circle(r=25,fill="orange")
show(c)
c=circle(r=10,fill="green")
show(c)