| 1 |
# Julia Set |
| 2 |
|
| 3 |
[View full source code][code] or [view the compiled example online][online] |
| 4 |
|
| 5 |
[online]: https://rustwasm.github.io/wasm-bindgen/exbuild/julia_set/ |
| 6 |
[code]: https://github.com/rustwasm/wasm-bindgen/tree/master/examples/julia_set |
| 7 |
|
| 8 |
While not showing off a lot of `web_sys` API surface area, this example shows a |
| 9 |
neat fractal that you can make! |
| 10 |
|
| 11 |
## `index.js` |
| 12 |
|
| 13 |
A small bit of glue is added for this example |
| 14 |
|
| 15 |
```js |
| 16 |
{{#include ../../../examples/julia_set/index.js}} |
| 17 |
``` |
| 18 |
|
| 19 |
## `src/lib.rs` |
| 20 |
|
| 21 |
The bulk of the logic is in the generation of the fractal |
| 22 |
|
| 23 |
```rust |
| 24 |
{{#include ../../../examples/julia_set/src/lib.rs}} |
| 25 |
``` |