Demo showing how to call HTML canvas from zig via WebAssembly.
- Shim that makes it appear canvas ctx is in zig
- Shows how to pass strings from zig to JavaScript and vice versa
- @panic in zig throws an error in JavaScript
- Download
zig 0.12.0
- Add
zig
to path. npm run build:zig
npm run start
- Re-run
npm run build:zig
whenever zig files are changed.