Initialize the ASCIIGround instance with a canvas, a pattern and renderer options.
The HTML canvas element to render on.
The pattern to use for rendering.
Optional
options: Partial<ASCIIRendererOptions>Optional renderer options.
Set a new pattern generator for the renderer.
The new pattern to set.
The current ASCIIGround instance.
Set new options for the renderer.
The new options to set.
The current ASCIIGround instance.
Destroy the ASCIIGround instance, cleaning up resources. This will stop the animation and nullify the renderer.
The main ASCIIGround class that orchestrates pattern generation and rendering.
This class provides a high-level interface for creating animated ASCII backgrounds. It manages the lifecycle of patterns and renderers, offering methods for initialization, animation control, and configuration updates.
Example: Creating and controlling an ASCII animation