mirror of
https://github.com/LJ5O/website.git
synced 2026-08-11 22:54:46 +02:00
Worked on svg files
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user