From 41b6a2343f249667608be5177dc28518929b05ee Mon Sep 17 00:00:00 2001 From: Adam French Date: Fri, 21 Nov 2025 23:43:25 +0000 Subject: [PATCH] copy states first --- html/js/mobile-automata.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/js/mobile-automata.mjs b/html/js/mobile-automata.mjs index d53235a..4389679 100644 --- a/html/js/mobile-automata.mjs +++ b/html/js/mobile-automata.mjs @@ -310,7 +310,7 @@ export function renderToCanvas(canvas, width, height, sn = 0, dn = 0) { } } - ctx.putImageData(img); + ctx.putImageData(img, 0, 0); function step() { // calculate new state