Tumult

A Javascript noise library

Philip Scott | ScottyFillups

f(x, y) =

Generate

Tumult is a noise library, supporting simplex[1-2], perlin[1-4], and perlinN (perlin noise in any arbitrary dimension). It provides the following methods:

.gen(x, y...): Generates a noise value

.octavate(octaves, x, y...): Applies fractal Brownian motion, summing iterations of the noise. With each successive iteration, the frequency is doubled and the weight is halved.

.transform(fn): Returns a new transformed noise function given the transformation function. The passed transformation function is bound to the 'this' object of the noise generator, therefore you can call 'this.octavate' and 'this.gen' to generate the noise.

You can try the transform function by entering your own transformation function. Below are some functions and variables you can use:

n(x, y) - The noise function. In this case, it's Simplex2

f(octaves, x, y) - The octavate, or 'F'ractal function.

sin(x)

cos(x)

abs(x)

pow(radix, exponent)

pi

e

Alternatively, you can use vanilla Javascript code (eg. Math.abs() instead of abs(), this.gen() instead of n(), etc.).