Crates.io | hxgm30-noise |
lib.rs | hxgm30-noise |
version | 0.3.0 |
source | src |
created_at | 2020-04-26 01:06:12.329992 |
updated_at | 2020-04-29 16:32:27.786678 |
description | Noise-generation for use in hexagram30 projects |
homepage | |
repository | https://github.com/hexagram30/noise |
max_upload_size | |
id | 234144 |
size | 587,150 |
Noise-generation for use in hexagram30 projects
Based on the noise-rs project. Implements two custom noise
modifiers used for cave generation: threshold
and invert
.
Currently supports cave-like noise generation via the CLI cave
subcommand,
with six different cave types to choose from.
To see the (small) examples, run make examples
. Images will be generated in
the ./example_images
directory.
Run make
.
After building, run the following for detailed option and flag info:
./bin/hxgm30-noise help
./bin/hxgm30-noise -h
./bin/hxgm30-noise cave -h
The following will generate a test.png
image in the ./example_images
directory:
./bin/hxgm30-noise -s 2 -r 800,800 -t -0.2 -o test.png cave complex
Here's a thumnail of six different cave systems generated with this tool (click to see large image):
Here's one of them generated with the ASCII output option:
And here's another one colored for land and sea:
Here's one generated with more than two levels (and colors), useful for things like land cover: