레퍼런스 remove()

remove()

Removes the sketch from the web page.

Calling remove() stops the draw loop and removes any HTML elements created by the sketch, including the canvas. A new sketch can be created by using the p5() constructor, as in new p5().

예제

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

관련 레퍼런스