MCPcopy Create free account
hub / github.com/MultithreadedJSBook/code-samples / iterate

Function iterate

ch5-game-of-life/gol.js:73–78  ·  view source on GitHub ↗
(...args)

Source from the content-addressed store, hash-verified

71
72let iteration = 0;
73function iterate(...args) {
74 grid.iterate(...args);
75 ctx.putImageData(data, 0, 0);
76 iterationCounter.innerHTML = ++iteration;
77 window.requestAnimationFrame(() => iterate(...args));
78}
79
80iterate(0, 0, SIZE, SIZE);

Callers 1

gol.jsFile · 0.85

Calls 1

iterateMethod · 0.45

Tested by

no test coverage detected