Skip to content

Generates 2d terrain and heightmap jpeg using Perlin noise. Probably a good place to look in for anyone starting with Nannou.

Notifications You must be signed in to change notification settings

Feldspatt/perlin_builder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Generates 2d terrain and heightmap jpeg using Perlin noise. Probably a good place to look in for anyone starting with Nannou.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages