frommathimportsin,cos,pifrompyximport*r=1.5# create a box list of regular polygonsboxes=[box.polygon([(-r*sin(i*2*pi/n),r*cos(i*2*pi/n))foriinrange(n)])forninrange(3,8)]# tile with spacing 0 horizontallybox.tile(boxes,0,1,0)c=canvas.canvas()forbinboxes:# plot the boxes pathc.stroke(b.path(),[color.rgb.green])# a second time with bezier rounded cornersc.stroke(b.path(),[deformer.smoothed(radius=0.5),color.rgb.red])c