{
const context = DOM.context2d(dx, dy, 1);
const path = d3.geoPath(projection, context);
context.canvas.style.width = `${width}px`;
context.canvas.style.imageRendering = "pixelated";
context.beginPath();
path(topojson.feature(world, world.objects.land));
yield context.canvas;
for (let y = 0; y < dy; ++y) {
for (let x = 0; x < dx; ++x) {
if (context.isPointInPath(x + 0.5, y + 0.5)) {
context.fillRect(x, y, 1, 1);
}
}
yield context.canvas;
}
}