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 4a4824e268
🎉 Setup solid.js and rust wasm
2 years ago
simulator 🎉 Setup solid.js and rust wasm 2 years ago
src 🎉 Setup solid.js and rust wasm 2 years ago
.gitignore 🎉 Setup solid.js and rust wasm 2 years ago
LICENSE Initial commit 2 years ago
README.md 🎉 Setup solid.js and rust wasm 2 years ago
index.html 🎉 Setup solid.js and rust wasm 2 years ago
package-lock.json 🎉 Setup solid.js and rust wasm 2 years ago
package.json 🎉 Setup solid.js and rust wasm 2 years ago
tsconfig.json 🎉 Setup solid.js and rust wasm 2 years ago
vite.config.ts 🎉 Setup solid.js and rust wasm 2 years 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.