Drawing a colored rectangle with Rust, WebAssembly and WebGL.
Go to file
thetek 44859624a3 chore: update readme 2023-06-18 18:33:06 +02:00
src init: ready, set, go! 2023-06-18 16:36:20 +02:00
www init: ready, set, go! 2023-06-18 16:36:20 +02:00
.gitignore init: ready, set, go! 2023-06-18 16:36:20 +02:00
Cargo.toml init: ready, set, go! 2023-06-18 16:36:20 +02:00
LICENSE init: ready, set, go! 2023-06-18 16:36:20 +02:00
README.md chore: update readme 2023-06-18 18:33:06 +02:00

README.md

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