function* chart(randomPoint) {
const context = DOM.context2d(width, height);
const path = d3.geoPath(projection, context).pointRadius(0.75);
context.beginPath();
path(graticule);
context.strokeStyle = "#ccc";
context.stroke();
context.beginPath();
path(sphere);
context.strokeStyle = "#000";
context.lineWidth = 1.5;
context.stroke();
context.globalAlpha = 0.5;
for (let i = 0; i < 3e5; ++i) {
context.beginPath();
path({type: "Point", coordinates: randomPoint()});
context.fill();
if (i % 1000 === 0) yield context.canvas;
}
}