@mocanvas/editor · function

createBackend

declare function createBackend(canvas: HTMLCanvasElement): RenderBackend

Create the synchronous WebGL2 backend. For WebGPU (async device setup) or automatic selection use createBackendAsync from ./createBackend.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.