/blob

A simple 2D fluid and gravity simulation, written in Rust and rendered with WebGL

Primary LanguageTypeScriptMIT LicenseMIT

blob

A simple 2D fluid and gravity simulation, written in Rust and rendered with WebGL: https://aestuans.github.io/blob/

Build

  1. Install wasm-pack
cargo install wasm-pack
  1. Generate the wasm module
wasm-pack build --release --target web --out-dir dist/
  1. Generate JS
tsc
  1. Run with a simple http server. Such as:
python -m http.server