VOOZH about

URL: https://www.geeksforgeeks.org/javascript/p5-js-loop-function/

⇱ p5.js loop() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

p5.js loop() Function

Last Updated : 12 Jul, 2025
The loop() function is used to call draw() function continuously. The loop() function can be stopped using noLoop() function. Syntax:
loop()
Below example illustrates the loop() function in p5.js: Example: Output: 👁 Image
Online editor: https://editor.p5js.org/ Environment Setup: https://www.geeksforgeeks.org/javascript/p5-js-soundfile-object-installation-and-methods/
Comment