Code
c1=circle(r=55,fill="#ADFF2F")
def flower(fe,ft):
e=ellipse(w=30,h=28,x=0,y=23,fill=fe,stroke="pink")
p1,p2,p3=point(x=15,y=26),point(x=0,y=46),point(x=-15,y=26)
p=polygon([p1,p2,p3],stroke="black",fill=ft)
petal=p+e
return petal
p1,p2,p3=point(x=15,y=26),point(x=0,y=46),point(x=-15,y=26)
p=polygon([p1,p2,p3],stroke="black",fill=("#FF7F50"))|repeat(15,rotate(30))
def f(t):
p4=polygon([p1,p2,p3],stroke="black",fill=t)
return p4
p5=f("red")|translate(y=28)|repeat(14,rotate(26))
p6=f("#9932CC")|translate(y=33)|rotate(10)|repeat(14,rotate(26))
p7=f("#FFFF00")|translate(y=38)|rotate(20)|repeat(14,rotate(26))
p8=f("white")|translate(y=43)|rotate(30)|repeat(14,rotate(26))
p9=f("#FF7F50")|translate(y=48)|rotate(40)|repeat(14,rotate(26))
p10=f("#FF4500")|translate(y=53)|rotate(50)|repeat(14,rotate(26))
p11=f("white")|translate(y=58)|rotate(60)|repeat(14,rotate(26))
c2=circle(r=104,fill="#FFC0CB")
c3=circle(r=150,fill="yellow")+circle(r=145,fill="white")
def k(z):
r=rectangle(w=200,h=200,stroke="black",fill=z)
return r
r1=k("#FF1493")|rotate(0)
r2=k("#FFFF00")|rotate(5)
r3=k("#FF8C00")|rotate(10)
r4=k("#E6E6FA")|rotate(15)
r5=k("#white")|rotate(20)
r6=k("#FFFF00")|rotate(25)
r7=k("#EE82EE")|rotate(30)
r8=k("#8A2BE2")|rotate(35)
r9=k("#white")|rotate(40)
r10=k("#FFFF00")|rotate(45)
r11=k("#8A2BE2")|rotate(50)
r12=k("#FFFF00")|rotate(55)
r13=k("#EE82EE")|rotate(60)
r14=k("#FFFF00")|rotate(65)
r15=k("#white")|rotate(70)
r16=k("#FF8C00")|rotate(75)
r17=k("#DA70D6")|rotate(80)
r18=k("#8A2BE2")|rotate(85)
p20,p21,p22,p23,p24,p25,p26,p27,p28,p29,p30,p31,p32,p33,p34,p35=point(x=-100,y=100),point(x=-74,y=100),point(x=-74,y=74),point(x=-100,y=74),point(x=-100,y=-100),point(x=-74,y=-100),point(x=-74,y=-74),point(x=-100,y=-74),point(x=100,y=100),point(x=74,y=100),point(x=74,y=74),point(x=100,y=74),point(x=100,y=-100),point(x=74,y=-100),point(x=74,y=-74),point(x=100,y=-74),
s1=polygon([p20,p21,p22,p23],fill="white")
s2=polygon([p24,p25,p26,p27],fill="white")
s3=polygon([p28,p29,p30,p31],fill="white")
s4=polygon([p32,p33,p34,p35],fill="white")
show(c3,r18,r17,r16,r15,r14,r13,r12,r11,r10,r9,r8,r7,r6,r5,r4,r3,r2,r1,s1,s2,s3,s4,c2,p11,p10,p9,p8,p7,p6,p5,c1,p)
f=flower("#FF69B4","purple")
f1=f|repeat(6,rotate(60))
show(f1)
c =circle(r=15,fill="yellow")+circle(r=17)
show(c)