seflless / zig-wasm-webgl

Forked from https://github.com/raulgrell/zig-wasm-webgl.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

zig-wasm-canvas

An example demonstrating Zig interacting with a canvas via JS. It is a port of one of the official mozilla examples.

https://developer.mozilla.org/en-US/docs/WebAssembly

Setup

  1. Install Zig
  2. Install Node.js
  3. Install dependencies npm install

Build

npm run build

Run

npm start
# Then open http://localhost:3000
# You should see a simple triangle in translating horizontally in a loop

About

Forked from https://github.com/raulgrell/zig-wasm-webgl.


Languages

Language:HTML 56.5%Language:Zig 41.7%Language:Shell 1.8%