Runs the code in draw() once.
By default, draw() tries to run 60 times per second. Calling noLoop() stops draw() from repeating. Calling redraw() will execute the code in the draw() function a set number of times. await the result of redraw to make sure it has finished.
The parameter, n, is optional. If a number is passed, as in redraw(5), then the draw loop will run the given number of times. By default, n is 1.
Examples
Syntax
redraw([n])
Parameters
n
Integer: number of times to run draw(). Defaults to 1.
Returns
Promise<void>:
Notice any errors or typos? Please let us know. Please feel free to edit src/core/structure.js and open a pull request!