Code
r1 = rectangle(w=200,h=35,fill="white")
c1 = circle(r=125,fill="turquoise",stroke="crimson")
petal = ellipse(x=0,y=10,w=10,h=20,fill="crimson")
flower= petal | repeat(12,rotate(30))
flower_link = flower | translate(x=30,y=30) | repeat (8,rotate(45))
e1 = flower_link | repeat(3,scale(1.5))
show(c1,e1)
def path(d, stroke_width=1, fill="teal", stroke="black"):
return Shape("path", d=d, stroke_width=stroke_width, fill=fill, storke=stroke)
d = "M 4 8 L 10 1 L 13 0 L 12 3 L 5 9 C 6 10 6 11 7 10 C 7 11 8 12 7 12 A 1.42 1.42 0 0 1 6 13 A 5 5 0 0 0 4 10 Q 3.5 9.9 3.5 10.5 T 2 11.8 T 1.2 11 T 2.5 9.5 T 3 9 A 5 5 90 0 0 0 7 A 1.42 1.42 0 0 1 1 6 C 1 5 2 6 3 6 C 2 7 3 7 4 8 M 10 1 L 10 3 L 12 3 L 10.2 2.8 L 10 1"
dagger = path(d, stroke_width=1/3, fill="teal") | scale(3) | rotate(45) | translate(y=-28, x=23)
#show(dagger)
shape = dagger | translate(x=80) | repeat(18, rotate(20))
show(shape)
cr1 = circle
cr2 = circle
cr3 = circle
cr4 = circle
c1 = circle
l1 = circle(x=100, y=100, r=25,fill='#de3163')
l2 = circle(x=-100, y=-100, r=25,fill='#de3163')
l3 = circle(x=-100, y=100, r=25,fill='#de3163')
l4 = circle(x=100, y=-100, r=25,fill='#de3163')
show(l1+l2+l3+l4)
c2 = circle(x=25,y=28,r=10,fill="red",)|repeat(10,rotate(36))
show(c2)
c=rectangle(w=50,h=20)|repeat(18,rotate(angle=10))
show(c)
w1=rectangle(x=0,y=70,w=10,h=5,fill="yellow",stroke="none")|repeat(18,rotate(20))
show(w1)