Skip to content

Commit

Permalink
Add complexplanet example
Browse files Browse the repository at this point in the history
  • Loading branch information
attackgoat committed Dec 28, 2023
1 parent f140784 commit 30ded6f
Show file tree
Hide file tree
Showing 4 changed files with 8,982 additions and 0 deletions.
Binary file added .github/img/complexplanet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ A graphical user interface for [Noise-rs](https://github.com/Razaekel/noise-rs).
- [x] Allow saving the graph project to a file[^1]
- [x] Allow noise function export[^1]
- [ ] Automatic `NoiseFn` cached values
- [ ] Subroutine blocks, comment blocks, node descriptors, etc.
- [x] WASM support using [Trunk](https://trunkrs.dev/)

[^1]: Available on desktop only
Expand Down
30 changes: 30 additions & 0 deletions examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Examples

## Read Expression File

```bash
cargo run --example read_file
```

This example reads an exported expression `.ron` file and returns `NoiseFn` implementations with
different variable values. You may export any expression in the desktop app by right-clicking on the
node.

## Complex Planet (stress test)

The included `complexplanet.ron` file is a project file which may be opened in the desktop app. It
is a recreation of
[`complexplanet.rs`](https://github.com/Razaekel/noise-rs/blob/develop/examples/complexplanet.rs)
from [Noise-rs](https://github.com/Razaekel/noise-rs).

Opening the project will take a few minutes while all the preview images are recreated. Any changes
to the final nodes will also cause lots of computation and slow down the UI a little, although it
should remain responsive.

> [!NOTE]
> Future changes to `noise_gui` will focus on making files of this size easier to understand and
> edit.
Once loaded it should look like this:

![Screenshot of a project loaded in the noise_gui program](../.github/img/complexplanet.png)
Loading

0 comments on commit 30ded6f

Please sign in to comment.