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.
예제
구문
redraw([n])
매개변수
n
Integer: number of times to run draw(). Defaults to 1.
반환값
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!