My attempt at re-creating perlin-noise to better understand it.
I found this article about Perlin noise and wanted to implement something like it.
noise.js
is the library containing the noise functionsindex.js
is a test that runs noise.js for 10 million times to get an idea of its boundsindex.html
is a web-based demo of what 2d perlin noise can look like when used as a height mapapp.js
is the js for the demo (manages the canvas and runs the noise functions)
NOTE: noise.js is a commonJS module, so I used a hack to load it in the browser (y creating a global variable called module).