From 002935a724006ca6ad9323b19fe83ed6482fb644 Mon Sep 17 00:00:00 2001 From: Adam French Date: Sun, 23 Nov 2025 20:41:12 +0000 Subject: [PATCH] will implement later - will be nicer (smooth) background --- html/js/mobile-automata.mjs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/html/js/mobile-automata.mjs b/html/js/mobile-automata.mjs index 7c81e40..da93985 100644 --- a/html/js/mobile-automata.mjs +++ b/html/js/mobile-automata.mjs @@ -271,7 +271,13 @@ export function cyclicMa(rules, initialState, t) { return states; } -export function renderToCanvas(canvas, width, height, sn = 0, dn = 0) { +// export function renderToCanvas(canvas, width, height) { +// let states = Array.from({ length: height }, () => +// Array.from({ length: width }, () => Math.round(Math.random() + 0.4)), +// ); +// } + +export function renderMaToCanvas(canvas, width, height, sn = 0, dn = 0) { if (sn == 0) { const min = 1500000; const max = 2000000;