Animated Julia sets and a zoomable Mandelbrot set, implemented in rust and webassembly.
This version is a barebones reworking of a previous implementation that was beset by node.js vulnerabilities.
Based on the tutorial here. Doesn't require node.js or webpack.
First, install
wasm-pack build --target web --no-typescript
Use a proper web server for prod. For local dev:
python3 -m http.server
firefox --private-window localhost:8000
F12
opens debug console
Uses the nginx docker image:
docker build -t julia .
docker run -it -d -p 80:80 julia:latest
- parallelise e.g. https://rustwasm.github.io/docs/wasm-bindgen/examples/raytrace.html