draw = (context, width, height, time = 0) => {
context.fillStyle = 'black';
context.fillRect(0, 0, width, height);
const radiusOffset = Math.sin(time) * 10;
const radius = width * 0.33 + radiusOffset;
const steps = 9;
const spin = time * 0.15;
context.beginPath();
for (let i = 0; i < steps; i++) {
const t = i / steps;
const angle = t * Math.PI * 2 + spin;
const cx = Math.cos(angle) * radius;
const cy = Math.sin(angle) * radius;
const x = cx + width / 2;
const y = cy + height / 2;
context.lineTo(x, y);
}
context.closePath();
context.strokeStyle = 'white';
context.lineWidth = 8;
context.stroke();
}