ReadonlycanvasThe HTML canvas element used for rendering.
ReadonlytypeThe rendering backend type.
Begin a new render frame.
Bind a framebuffer as the render target, or null for the main canvas.
Create an offscreen framebuffer of the given size.
Draw a framebuffer's contents to the screen.
Draw an image or sprite sheet frame.
Optionalsize: Vec2Optionaloptions: SpriteOptionsEnd the current render frame and flush pending draws.
Return the underlying rendering context (CanvasRenderingContext2D or WebGL2RenderingContext).
Return per-frame renderer instrumentation counters.
Reset to the default (identity) transform.
Configure post-processing. Unsupported backends may ignore this.
Optionalconfig: PostProcessingConfig
Backend-agnostic 2D renderer interface.