From bc7afbd59f7b909f1be41bfedfa9f648287efece Mon Sep 17 00:00:00 2001 From: Warr1024 Date: Wed, 30 Aug 2023 22:30:39 -0400 Subject: [PATCH] Fix image bounds offset --- utils/html_viewer/viewer.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/html_viewer/viewer.html b/utils/html_viewer/viewer.html index 5db598d..f2c1ffa 100644 --- a/utils/html_viewer/viewer.html +++ b/utils/html_viewer/viewer.html @@ -62,7 +62,7 @@ for (let j = 0; j < data.x_axis; j++) { const c = "000000" + Math.floor(data.map[i][j]).toString(16); ctx.fillStyle = "#" + c.substring(c.length - 6); - ctx.fillRect(data.x_axis - j, data.z_axis - i, 1, 1); + ctx.fillRect(data.x_axis - j - 1, data.z_axis - i - 1, 1, 1); } } });