gitea/double-pendulum/pipeline/head There was a failure building this commit
33 lines
590 B
Markdown
33 lines
590 B
Markdown
# double-pendulum
|
|
|
|
[Docs](https://zwietering.eu/projects/double-pendulum/doc/double_pendulum_wasm)
|
|
|
|
<!--toc:start-->
|
|
|
|
- [double-pendulum](#double-pendulum)
|
|
- [Prereqs](#prereqs)
|
|
- [Build](#build)
|
|
|
|
<!--toc:end-->
|
|
|
|
Double Pendulum chaotic sim in rust + webassembly (WIP)
|
|
|
|
## Prereqs
|
|
|
|
- Rust toolchain (`rustup`, `cargo`, `rustc`)
|
|
- Install [`wasm-pack`](https://github.com/wasm-bindgen/wasm-pack)
|
|
|
|
## Build
|
|
|
|
Package can be built using:
|
|
|
|
```bash
|
|
wasm-pack build --target web
|
|
```
|
|
|
|
Result can be viewed by hosting the directory, e.g. using:
|
|
|
|
```bash
|
|
cd pkg && python -m http.server 8080
|
|
```
|