Worked on svg files

This commit is contained in:
2025-02-13 22:43:43 +01:00
parent 7a81db0bae
commit 573abe404d
4 changed files with 2291 additions and 23 deletions

View File

@@ -91,7 +91,7 @@
for (let dx = -2; dx <= 2; dx++) {
let ny = (y + dy + rows)%rows; // We find here the real coords in the grid
let nx = (x + dx + cols)%cols;
if(Math.random()<0.7) grid[ny][nx] = 1; // 50% of chance to be alive
if(Math.random()<0.7) grid[ny][nx] = 1; // 70% of chance to be alive
}
}