A small web app to play around with your own rules for chaos game
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Shad Amethyst b6f3a2b858
Scaffolding for programs and runners
1 year ago
simulator Scaffolding for programs and runners 1 year ago
src Scaffolding for programs and runners 1 year ago
.gitignore Scaffolding for programs and runners 1 year ago
LICENSE Initial commit 1 year ago
README.md 🎉 Setup solid.js and rust wasm 1 year ago
index.html 🎉 Setup solid.js and rust wasm 1 year ago
package-lock.json 🎉 Setup solid.js and rust wasm 1 year ago
package.json 🎉 Setup solid.js and rust wasm 1 year ago
tsconfig.json Scaffolding for programs and runners 1 year ago
vite.config.ts 🎉 Setup solid.js and rust wasm 1 year ago

README.md

chaos-toy

A small web app to play around with your own rules for chaos game

Building

To build this project, you will need the rust toolchain and wasm-pack, which you can download here (or just run cargo install wasm-pack).

Then, run wasm-pack build simulator to build the rust simulator.

If you wish to build the simulator with the debug profile, then run wasm-pack build simulator --dev or npm run prepare-dev. Re-running these commands should work with Vite's auto-reload.

If wasm-pack fails to download wasm-opt, then you can try installing it manually (brew install binaryen, pacman -S binaryen). Alternatively, you can disable wasm-opt by uncommenting the relevant lines in simulator/Cargo.toml.

At this point, you can now run npm install, which will symlink simulator/pkg/ to node_modules/chaos-toy-rs.

Running

To run in development mode, simply run npm run dev or yarn dev.