Skip to content

Commit 4507f95

Browse files
committed
update engine
1 parent e4e9364 commit 4507f95

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

public/js/litecanvas.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
var assert = (condition, message = "Assertion failed") => {
2828
if (!condition) throw new Error(message);
2929
};
30-
var version = "0.98.1";
30+
var version = "0.98.3";
3131
function litecanvas(settings = {}) {
3232
const root = window, math = Math, TWO_PI = math.PI * 2, raf = requestAnimationFrame, _browserEventListeners = [], on = (elem, evt, callback) => {
3333
elem.addEventListener(evt, callback, false);
@@ -635,9 +635,9 @@
635635
const chars = pixels.replace(/\s/g, "");
636636
for (let gridx = 0; gridx < width; gridx++) {
637637
for (let gridy = 0; gridy < height; gridy++) {
638-
const char = chars[height * gridy + gridx] || ".";
638+
const char = chars[width * gridy + gridx] || ".";
639639
if (char !== ".") {
640-
instance.rectfill(x2 + gridx, y2 + gridy, 1, 1, parseInt(char, 16) || 0);
640+
instance.rectfill(x2 + gridx, y2 + gridy, 1, 1, parseInt(char, 36) || 0);
641641
}
642642
}
643643
}

public/sw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const cacheName = "luizbills.litecanvas-editor-v1";
2-
const version = "2025.8.7.2";
2+
const version = "2025.8.8.0";
33

44
const precacheResources = [
55
"/",

0 commit comments

Comments
 (0)