Update recordFrames.md
This commit is contained in:
@ -2,9 +2,8 @@
|
|||||||
|
|
||||||
Invokes the provided callback on each animation frame.
|
Invokes the provided callback on each animation frame.
|
||||||
|
|
||||||
Use recursion. Provided that `running` is `true`, continue invoking `window.requestAnimationFrame`. Return an object
|
Use recursion. Provided that `running` is `true`, continue invoking `window.requestAnimationFrame()` and invoking the
|
||||||
with two methods `start` and `stop` to allow manual control of the recording. Omit the second argument, `autoStart`,
|
provided callback. Return an object with two methods `start` and `stop` to allow manual control of the recording. Omit the second argument, `autoStart`, to implicitly call `start` when the function is invoked.
|
||||||
to implicitly call start when the function is invoked.
|
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const recordFrames = (callback, autoStart = true) => {
|
const recordFrames = (callback, autoStart = true) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user