Simplex noise

Credit to nXIII on Scratch.