AbstractProtectedconstructorProtectedThe constructor for the Context class.
{ContextConfig} - The configuration for the context.
StaticMIN_ProtectedSet the AspectRatio of the context.
{AspectRatio} - The new AspectRatio of the context.
ProtectedSet the resolution of the context.
{number} - The new resolution of the context.
AbstractresizeAbstractupdateUpdate the AspectRatio of the context.
{AspectRatio} - The new AspectRatio of the context.
Abstractupdate
Abstract base class for managing rendering contexts in generative art sketches. Provides configuration for RenderType, AspectRatio, resolution, and CoordinateRatioMapper, supporting both 2D and WebGL modes with responsive resizing and aspect ratio control.
Since
2.0.0