will implement later - will be nicer (smooth) background

This commit is contained in:
2025-11-23 20:41:12 +00:00
parent 2c11d724f9
commit 002935a724

View File

@@ -271,7 +271,13 @@ export function cyclicMa(rules, initialState, t) {
return states; 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) { if (sn == 0) {
const min = 1500000; const min = 1500000;
const max = 2000000; const max = 2000000;