Skip to content

Instantly share code, notes, and snippets.

@kymckay
kymckay / perlin.lua
Last active July 16, 2024 09:18
Perlin Noise in Lua
--[[
Implemented as described here:
http://flafla2.github.io/2014/08/09/perlinnoise.html
]]--
perlin = {}
perlin.p = {}
-- Hash lookup table as defined by Ken Perlin
-- This is a randomly arranged array of all numbers from 0-255 inclusive