canvas = {
const context = DOM.context2d(width, height);
const triangle = polygon(3, radius);
const hexagon = polygon(6, radius);
while (true) {
context.save();
context.clearRect(0, 0, width, height);
context.translate(width / 2, height / 2);
context.beginPath();
drawCircle(context, radius);
drawCircle(context, radius / 2);
context.strokeStyle = "#ccc";
context.stroke();
context.rotate((Date.now() / 60000) % 1 * 2 * Math.PI);
context.beginPath();
drawPolygon(context, 6, radius);
drawPolygon(context, 6, radius / 2);
drawPolygon(context, 3, radius);
context.strokeStyle = "#000";
context.stroke();
context.beginPath();
drawPolygonSpokes(context, 3, radius);
context.strokeStyle = "#00f";
context.stroke();
context.beginPath();
drawPolygonSpokes(context, 6, radius / 2);
context.strokeStyle = "#f00";
context.stroke();
context.restore();
yield context.canvas;
}
}