From e92deb429905073b21312b3f1c72c1206bba180d Mon Sep 17 00:00:00 2001 From: dumorando <144301348+dumorando@users.noreply.github.com> Date: Sat, 4 May 2024 23:43:59 +0000 Subject: [PATCH] fix #80 i think --- editor_new/sketch.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/editor_new/sketch.js b/editor_new/sketch.js index 4e9cce7d..6de6e1e2 100644 --- a/editor_new/sketch.js +++ b/editor_new/sketch.js @@ -29,6 +29,8 @@ function toggleFullscreen() { function loadImg(text) { // Loads the image from the URL img = loadImage(text); + imgWidth = img.width; + imgHeight = img.height; } function setup() {