From 1d944d8ba9c057a7cd80b0e8025966a3351181ec Mon Sep 17 00:00:00 2001 From: dkaraush Date: Tue, 12 Sep 2023 21:20:48 +0400 Subject: [PATCH] smaller area in demo --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index 1b60394..36b6d94 100644 --- a/main.js +++ b/main.js @@ -4,7 +4,7 @@ const canvas = document.querySelector('canvas') let W, H const resize = () => { - const sz = Math.min(700, Math.min(canvasParent.clientWidth, canvasParent.clientHeight) * .9) + const sz = Math.min(700, Math.min(canvasParent.clientWidth, canvasParent.clientHeight) * .6) canvas.style.width = canvas.style.height = sz + 'px' canvas.width = W = Math.floor(sz * window.devicePixelRatio) canvas.height = H = Math.floor(sz * window.devicePixelRatio)