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.
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.
This page is generated from the comments in src/core/structure.js . Please feel free to edit it and submit a pull request!