Skip to content

Instantly share code, notes, and snippets.

View edrohler's full-sized avatar
😎

Eric D. Rohler edrohler

😎
View GitHub Profile
@edrohler
edrohler / perlin-noise-classical.js
Created February 10, 2016 20:22 — forked from banksean/perlin-noise-classical.js
two Perlin noise generators in javascript. The simplex version is about 10% faster (in Chrome at least, haven't tried other browsers)
// 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.
*/