noLoop()

Stops the code in draw() from running repeatedly.

By default, draw() tries to run 60 times per second. Calling noLoop() stops draw() from repeating. The draw loop can be restarted by calling loop(). draw() can be run once by calling redraw().

The isLooping() function can be used to check whether a sketch is looping, as in isLooping() === true.

उदाहरण

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

संबंधित संदर्भ