Static
hasStatic
initSet the p5.js context. This will reset the current context with P5Context.reset.
The p5.js context instance to use.
If true, the current context will be replaced. If false, the given p5Instance will only be used if no context has been initialized. This parameter defaults to false.
True if the given p5Instance was successfully applied, false otherwise.
Static
reset
P5Context provides static access to the p5.js context. This context allows access to all methods and variables of the p5.js library.
Since
2.0.0