star_globe = {
const context = DOM.context2d(width, height);
const starPath = d3.geoPath(projection, context)
.pointRadius(d => magnitudeScale(d.properties.mag)*2);
const colorScale = d3.scaleSequential(d3.interpolateRdBu)
context.fillStyle = 'black';
context.fillRect(0, 0, width, height);
stars.features.forEach(star => {
context.beginPath(), starPath(star), context.fillStyle = colorScale(star.properties.bv), context.fill();
});
yield context.canvas;
}