Skip to content

Instantly share code, notes, and snippets.

View clexmond's full-sized avatar

Chris Lexmond clexmond

  • Unstoppable Games
  • Atlanta, GA
View GitHub Profile
@clexmond
clexmond / perlin-noise-classical.js
Created May 1, 2012 23:32 — forked from banksean/perlin-noise-classical.js
Two CommonJS compatible Perlin noise generator modules
// Ported from Stefan Gustavson's java implementation
// http://staffwww.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf
// Read Stefan's excellent paper for details on how this code works.
//
// Sean McCullough banksean@gmail.com
/**
* You can pass in a random number generator object if you like.
* It is assumed to have a random() method.
*/