-- Perlin noise for norns
-- author: @naus3a - naus3a@gmail.com
--[[ Credits:
this Perlin noise implementation is basically a lua port of Stefan Gustavon's SimplexNoise1234 c++ version.
I like this code a lot, I used it very often and I ported it to most languages/environments, so kudos and credits to:
(c) Stefan Gustavson 2003-2005
stegu@itn.liu.se
]]--
Noise = {}
-- Permutation table
-- This is just a random jumble of all numbers 0-255,
-- repeated twice to avoid wrapping the index at 255 for each lookup.
-- This needs to be exactly the same for all instances on all platforms,
-- so it's easiest to just keep it as inline explicit data.
-- This also removes the need for any initialisation of this class.
Noise.perm = {151,160,137,91,90,15,
131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,
This file has been truncated. show original