Skip to content

Commit 75f6cc9

Browse files
authored
Merge pull request #1289 from crh82/main
Adjusting frame rate for Game of Life example
2 parents f6e59d5 + 0a7605b commit 75f6cc9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/data/examples/en/09_Simulate/04_GameOfLife.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ let board;
1212
let next;
1313

1414
function setup() {
15+
// Set simulation framerate to 10 to avoid flickering
16+
frameRate(10);
1517
createCanvas(720, 400);
1618
w = 20;
1719
// Calculate columns and rows

0 commit comments

Comments
 (0)