#projects #noise #cave #generation #output #hexagram30 #noise-generation

bin+lib hxgm30-noise

Noise-generation for use in hexagram30 projects

3 releases (breaking)

0.3.0 Apr 29, 2020
0.2.0 Apr 26, 2020
0.1.0 Apr 26, 2020

#1355 in Text processing

21 downloads per month
Used in hxgm30-eco

Apache-2.0

545KB
1K SLoC

noise

Noise-generation for use in hexagram30 projects

Project Logo

Based on the noise-rs project. Implements two custom noise modifiers used for cave generation: threshold and invert.

Features

Currently supports cave-like noise generation via the CLI cave subcommand, with six different cave types to choose from.

Examples

To see the (small) examples, run make examples. Images will be generated in the ./example_images directory.

Building

Run make.

Usage

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

Example Output

Here's a thumnail of six different cave systems generated with this tool (click to see large image):

Example Outputs

Here's one of them generated with the ASCII output option:

Cave ASCII Output

And here's another one colored for land and sea:

Land/Sea ASCII Output

Here's one generated with more than two levels (and colors), useful for things like land cover:

Land Cover ASCII Output

Dependencies

~9–21MB
~203K SLoC