hxgm30-noise

Crates.iohxgm30-noise
lib.rshxgm30-noise
version0.3.0
sourcesrc
created_at2020-04-26 01:06:12.329992
updated_at2020-04-29 16:32:27.786678
descriptionNoise-generation for use in hexagram30 projects
homepage
repositoryhttps://github.com/hexagram30/noise
max_upload_size
id234144
size587,150
Duncan McGreggor (oubiwann)

documentation

https://docs.rs/hxgm30-noise/

README

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

Commit count: 73

cargo fmt