Reference loading()

loading()

Creates a loading indicator when the sketch's setup() function is running. It is called and removed automatically using the presetup and postsetup lifecycles hooks.

Examples

Syntax

loading(p5, fn, lifecycles)

Parameters

p5
The p5 constructor
fn
The p5 prototype object
lifecycles
Lifecycle hooks for the sketch

Related References