1 from math
import sin
, cos
, pi
6 # create a box list of regular polygons
7 boxes
= [box
.polygon([(-r
*sin(i
*2*pi
/n
), r
*cos(i
*2*pi
/n
))
10 # tile with spacing 0 horizontally
11 box
.tile(boxes
, 0, 1, 0)
16 c
.stroke(b
.path(), [color
.rgb
.green
])
17 # a second time with bezier rounded corners
18 c
.stroke(b
.path(), [deco
.smoothed(radius
=0.5), color
.rgb
.red
])