Code
c=circle(r=55,fill="green",stroke="none")
def flower(c,s,es):
c1=circle(x=5,r=5,stroke_width=0.5, stroke=s)|repeat(55,rotate(20))
e=ellipse(x=0,y=25,w=20,h=50,fill=c,stroke=es)|repeat(35,rotate(30))
e1=e|scale(y=0.5, x=0.5)|rotate(5)
e2=e|scale(y=0.7,x=0.7)
e3=e|scale(y=0.9,x=0.9)|rotate(20)
e4=e|rotate(40)
w=e4+e+e3+e2+e1+c1
return w
def sm_flower(ef,es,cf,cs):
c=circle(r=3,stroke=cs,fill=cf)
e=ellipse(w=9,h=11,x=0,y=7,fill=ef,stroke=es)|repeat(7,rotate(50))
shape=e+c
return shape
sun_flower=flower("yellow","red","#e6e600")
def rec(asc,afc,wa,ha,ssc,sfc,ws,hs):
r1=rectangle(w=wa,h=ha,fill=afc,stroke=asc)|repeat(15,rotate(20))
r2=rectangle(w=ws,h=hs,fill=sfc,stroke=ssc)|repeat(25,rotate(5))
r=r2+r1
return r
r=rec("red","red",120,120,"#ffc61a","#ffc61a",120,120)
r1=rec("blue","blue",100,100,"#00ffff","#00ffff",100,100)
r3=r|repeat(10,scale(0.95)|rotate(5))
r4=r1|repeat(5,scale(0.95)|rotate(5))
r=rectangle(w=300,h=300,fill="black")
show(r,r3,r4,c,sun_flower)
s=sm_flower("pink","#b300b3","yellow","#e6e600")|translate(y=95)|repeat(60,rotate(10))
show(s)