stelonix / mapgen

Pseudo-random map generator through OpenSimplex noise algorithm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Map Generator

Create beautiful and pseudo-random terrain-like maps.

a sample mat bit

Build Go Report Card Documentation

Install

To use it as a library, you need to get it through:

go get github.com/hacdias/mapgen

Soon, more documentation will be added about the final executable.

Usage

Documentation about using it as a library can be found on godoc.

Usage of mapgen:
  -t, --color transition         Color Transition in map generation overrites color palette transition
  -c, --colors filename string   File name with the color palette (default "defaultPalette.txt")
  -f, --filename string          File name to output (default "img.png")
  -h, --height int               Height of image (default 100)
  -l, --lacunarity float         Lacunarity (default 2.5)
  -o, --octaves int              Number of octaves (default 5)
  -p, --persistence float        Persistence (default 0.5)
  -x, --scale float              Scale (default 20)
  -s, --seed int                 Seed to generate the map (default random)
  -w, --width int                Width of image (default 100)

Contributing

PRs accepted.

License

MIT © All Contributors

About

Pseudo-random map generator through OpenSimplex noise algorithm

License:MIT License


Languages

Language:Go 100.0%