Module ROT.Noise.Simplex

Simplex Noise Generator.

Based on a simple 2d implementation of simplex noise by Ondrej Zara Which is based on a speed-improved simplex noise algorithm for 2D, 3D and 4D in Java. Which is based on example code by Stefan Gustavson (stegu@itn.liu.se). With Optimisations by Peter Eastman (peastman@drizzle.stanford.edu). Better rank ordering method by Stefan Gustavson in 2012.

Functions

init (gradients) Constructor.
get (xin, yin) Get noise for a cell Iterate over this function to retrieve noise values


Functions

init (gradients)
Constructor. 2D simplex noise generator.

Parameters:

  • gradients int The random values for the noise.
get (xin, yin)
Get noise for a cell Iterate over this function to retrieve noise values

Parameters:

  • xin int x-position of noise value
  • yin int y-position of noise value
generated by LDoc 1.4.6 Last updated 2017-07-19 18:43:03