@mocanvas/mocanvas · function

loadImageTextureSource

declare function loadImageTextureSource(src: string): Promise<TexImageSource>

Decode an image src (URL or data URL) into something the GPU can sample.

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.