The P5Context provides static access to the p5.js sketch context. This context allows access to all methods and variables of the p5.js library.
Static
The current sketch context. If no context has been initialized, the method will return an "empty" sketch context (0x0 canvas; no loop).
Initializes the sketch context to allow other accessors to have accurate canvas, environment, and runtime information.
The sketch context of the running p5.js script.
The P5Context provides static access to the p5.js sketch context. This context allows access to all methods and variables of the p5.js library.