Rust + WebGL Rectangle
Drawing a colored rectangle with Rust, WebAssembly and WebGL. The extensively
commented main code is located in src/draw.rs
.
Usage
Initial setup:
wasm-pack build
cd www
npm install
Compile .wasm
file:
wasm-pack build
Run development server:
cd www
npm run start