Referencia redraw()

redraw()

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.

Ejemplos

Sintaxis

redraw([n])

Parámetros

n

number of times to run draw(). Defaults to 1.

Notice any errors or typos? Please let us know. Please feel free to edit src/core/structure.js and open a pull request!

Referencias Relacionadas