Sets a custom loading animation for the current sketch.
Calling loadingAnimation() without a callback disables the loading animation. Calling it with a callback replaces the default animation. The callback receives the overlay's 2D rendering context, its width, its height, and the current animation frame. The callback's this value is the current p5 instance.
Examples
Syntax
loadingAnimation([callback])
Parameters
callback
Function: Function used to draw each animation frame.
Notice any errors or typos? Please let us know. Please feel free to edit src/core/loading.js and open a pull request!
Related References
textToContours
Returns an array of arrays of points outlining a string of text written using the font.
textToModel
Converts text into a 3D model that can be rendered in WebGL mode.
textToPaths
Returns a flat array of path commands that describe the outlines of a string of text.
textToPoints
Returns an array of points outlining a string of text written using the font.