B:BD[
3.958] → [
3.958:1010]
B:BD[
3.1010] → [
2.383:456]
∅:D[
2.456] → [
3.1073:1091]
B:BD[
3.1073] → [
3.1073:1091]
B:BD[
3.1091] → [
2.457:474]
∅:D[
2.474] → [
3.1116:1117]
B:BD[
3.1116] → [
3.1116:1117]
B:BD[
3.1117] → [
2.475:774]
ctx.strokeStyle = "black";
ctx.beginPath();
ctx.arc(width / 2 + counter, height / 2, width / 4, 0, Math.PI * 2);
ctx.stroke();
}, [counter]);
const initialBackground = () => {
const canvas: HTMLCanvasElement = canvasRef.current as any;
const ctx = canvas.getContext("2d")!;
ctx.save();
ctx.scale(pixelRatio, pixelRatio);
ctx.fillStyle = "hsl(0, 0%, 95%)";
ctx.fillRect(0, 0, width, height);
ctx.restore();
};