Skip to content

Commit

Permalink
smaller area in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
dkaraush committed Sep 12, 2023
1 parent 42201ad commit 1d944d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1d944d8

Please sign in to comment.