canvas-app 0.1.2

WASM application for Saorsa Canvas - combines core and renderer for web deployment.
Documentation

Saorsa Canvas WASM Application

This crate provides the WASM bindings for the Saorsa Canvas, enabling the canvas to run in web browsers.

Usage

Build for WASM:

wasm-pack build --target web canvas-app

Then import in JavaScript:

import init, { CanvasApp } from './pkg/canvas_app.js';

await init();
const app = new CanvasApp('main-canvas');

function render() {
    app.render();
    requestAnimationFrame(render);
}
render();