|
|
|
@ -69,7 +69,7 @@ function updateCanvasDimensions() {
|
|
|
|
|
|
|
|
|
|
$canvas.width = WIDTH * devicePixelRatio;
|
|
|
|
|
$canvas.height = HEIGHT * devicePixelRatio;
|
|
|
|
|
g.scale(2, 2);
|
|
|
|
|
g.scale(devicePixelRatio, devicePixelRatio);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
window.addEventListener('resize', () => updateCanvasDimensions());
|
|
|
|
|