This is a library to generate simplex noise in Elm.
The code is a port of the simplex noise JavaScript version by Jonas Wagner.
( perm, newSeed ) =
permutationTable (initialSeed 42)
-- generate the permutation table
noiseValue =
noise3d perm 1 1 1Generate the permutation tables that are needed to calculate the noise value.
Convenience function to generate a PermutationTable using an Int as a seed
Generates a noise value between -1 and 1 based on the given x, y, z and w value and a seeded permutation table.
Generates a noise value between -1 and 1 based on the given x, y and z value and a seeded permutation table.
Generates a noise value between -1 and 1 based on the given x and y value and a seeded permutation table.
Permutation table that is needed to generate the noise value.