Preset backgrounds
Four presets are available out of the box:| Preset | Description |
|---|---|
blank | No background pattern (default) |
lines | Horizontal lines |
grid | Square grid |
dots | Dot pattern |
Custom backgrounds
For full control, pass a custom render function:render function receives a CanvasRenderingContext2D, the current Viewport, and the canvas dimensions. It’s called every frame, so keep it efficient.