rust-webgl-rectangle/README.md

28 lines
332 B
Markdown
Raw Permalink Normal View History

2023-06-18 18:33:06 +02:00
# 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:
```sh
wasm-pack build
cd www
npm install
```
Compile `.wasm` file:
```sh
wasm-pack build
```
Run development server:
```sh
cd www
npm run start
```