canvas = {
const context = DOM.context2d(width, height);
context.beginPath();
delaunay.render(context);
context.strokeStyle = "#ddd";
context.stroke();
context.beginPath();
for (let i0 = 0, n = delaunay.points.length / 2; i0 < n; ++i0) {
const i1 = nearestNeighbor(delaunay, i0);
context.moveTo(delaunay.points[i0 * 2], delaunay.points[i0 * 2 + 1]);
context.lineTo(delaunay.points[i1 * 2], delaunay.points[i1 * 2 + 1]);
}
context.strokeStyle = "red";
context.stroke();
context.beginPath();
delaunay.renderPoints(context);
context.fill();
yield context.canvas;
}