Skip to content

Latest commit

 

History

History
39 lines (24 loc) · 1.1 KB

readme.md

File metadata and controls

39 lines (24 loc) · 1.1 KB

Perlin Builder

Generates 2d terrain and heightmap jpeg using Perlin noise.

Probably a good place to look in for anyone starting with Nannou.

I wrote this project to learn about Nannou and Rust. Constructive criticism is more than welcome.

Controls

  • 'O' && ( '+' || '-' ) : Adjust the octaves.
  • 'Z' && ( '+' || '-' ) : Zoom in and out
  • 'W' && ( '+' || '-' ) - 'H' && ( '+' || '-' ) : Adjust the image dimensions.
  • 'S' Save the image to the current directory.
  • 'R' Get a new random seed.
  • 'M' Toggle between the two modes, colored terrain or heightmap.

Some examples

A typical view when the program starts:

Example 6

The same view with 4 octaves:

Example 5

And with 1 octave:

Example 4

An heightmap with 12 octaves:

Heightmap

Zoomed out:

Example 2

Zoomed out with 1 octave:

Example 3