run-at-fps
v0.0.1
Published
```js import {runAtFps} from 'run-at-fps'; let runner = runAtFps(60); let i = 0; let stop = runner(() => { i++; i > 10 && stop(); // code here, call 10 times at 60fps. }); ```
Downloads
2
Readme
run-at-fps
import {runAtFps} from 'run-at-fps';
let runner = runAtFps(60);
let i = 0;
let stop = runner(() => {
i++;
i > 10 && stop();
// code here, call 10 times at 60fps.
});