graph = {
const context = DOM.context2d(width, height);
context.clearRect(0, 0, width, height);
context.canvas.style.background = "#eff";
context.lineCap = 'round';
context.strokeStyle = "#ccc";
context.lineWidth = 1;
context.translate(width / 2, height / 2);
context.beginPath();
context.moveTo(0, 0);
context.lineTo(100, 100);
context.stroke();
context.lineTo(-50, -75);
context.stroke();
for (let θ = 0; θ < 2 * Math.PI; θ += Math.PI / 3) {
let point = polar_to_cartesian([scale, θ]);
context.ellipse(...point, 2, 2, 0, 0, 2 * Math.PI);
context.lineTo(...point);
context.stroke();
}
return context.canvas;
}