drawing = {
let frame = Math.floor(now / 40) % 24
if (frame != lastFrame) {
mutable lastFrame = frame
svg.selectAll("*").remove();
boxes.forEach(
function(box) {
let [x, y, size] = box
let move_x = Math.sin((Math.PI / 24) * frame)
svg.append("rect")
.attr("transform", d3t.transform().translate(x+(move_x*10), y))
.attr("width",size)
.attr("height",size)
.attr("fill","none")
.attr("stroke",d3.hsl((x+y) % 60, 0.75 ,0.5).hex())
})
}
return svg.node()
}