The constructor for the GraphicsContextHandler class.
{GraphicsContext} - The GraphicsContext to make active by default.
OptionalotherContexts: GraphicsContext[]{GraphicsContext[]} - An optional array of additional GraphicsContext objects to add to the handler.
An array of the p5.Graphics objects associated with all GraphicsContext objects in the handler.
Adds a GraphicsContext to the handler.
{GraphicsContext} - The GraphicsContext to add.
true if the context was added successfully, false otherwise.
Adds multiple GraphicsContext objects to the handler.
{GraphicsContext[]} - The GraphicsContext objects to add.
true if all contexts were added successfully, false otherwise.
Sets the active GraphicsContext to the context with the specified name.
{string} - The name of the GraphicsContext to set as active.
A class for managing multiple GraphicsContext objects.
Since
2.0.0