Returns a function that samples a noise field in two dimensions.
const f = noise2d(`simplex`);const v = f(0.5, 0.5); // Get noise value at this location Copy
const f = noise2d(`simplex`);const v = f(0.5, 0.5); // Get noise value at this location
Name of noise function to use. Currently only simplex is supported.
simplex
Optional
Random number generator
Function to compute noise
Returns a function that samples a noise field in two dimensions.