Rusty Dusty is a Rust WASM web app that runs a simulation of different grid-bound particles. You can try it out at dust.findlayroyds.com.
The blue square is the canvas, where the particles exist. You can click and drag to place particles. On the right is the toolbar, where you can use the slider to change the brush size and select the type of particle.
The frontend is written in Svelte + TypeScript, and makes function calls to WASM functions written in Rust.
cargo install wasm-pack
.npm install --include=dev
(in the project's root directory)../build-wasm.sh
.npm run dev
to start a local server, and visit the specified localhost link
(probably localhost:5173).