i neglected to show where the perlin function came from https://github.com/wwwtyro/perlin.js