From 82b440413fbc0196dfbe8bbd71d2ff0b5a072052 Mon Sep 17 00:00:00 2001 From: Anri Kennel Date: Fri, 22 Sep 2023 12:19:30 +0200 Subject: [PATCH] Actualiser custom.js --- custom.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/custom.js b/custom.js index e97c508..b2baf03 100644 --- a/custom.js +++ b/custom.js @@ -61,12 +61,7 @@ const svgObsidianFix = () => { canvas.height = image.height; const ctx = canvas.getContext("2d"); ctx.drawImage(image, 0, 0); - const imageData = ctx.getImageData( - 0, - 0, - Math.floor(canvas.width), - Math.floor(canvas.height) - ); + const imageData = ctx.getImageData(0, 0, canvas.width, canvas.height); const pixelData = imageData.data; const colors = [];