copy states first

This commit is contained in:
2025-11-21 23:43:25 +00:00
parent c1f8fd77a8
commit 41b6a2343f

View File

@@ -310,7 +310,7 @@ export function renderToCanvas(canvas, width, height, sn = 0, dn = 0) {
} }
} }
ctx.putImageData(img); ctx.putImageData(img, 0, 0);
function step() { function step() {
// calculate new state // calculate new state