Skip to content

hexagram30/noise

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

License

Copyright 2020-2022, Hexagram30 hexagram30@cnbb.games

Apache License, Version 2.0