canvas = {
const ctx = DOM.context2d(width, height);
ctx.fillStyle = "hsl(216deg 100% 13%)";
ctx.fillRect(0, 0, width, height);
ctx.save()
ctx.strokeStyle = 'rgba(80, 255, 255, 0.6)'
ctx.lineWidth = 0.1
path2ds.map(
path2d => {
ctx.stroke(path2d)
}
)
ctx.restore()
ctx.save()
ctx.globalCompositeOperation = "screen"
ctx.lineJoin = 'round'
ctx.setLineDash([0, 100 + phase, 5, 100 - phase])
ctx.strokeStyle = 'rgba(80, 255, 255, 0.6)'
ctx.lineWidth = 5
path2ds.map(
path2d => {
ctx.stroke(path2d)
}
)
ctx.restore()
return ctx.canvas;
}