every-noise

3D every(where) noise javascript class for all your noise needs. 20kb minified, dependency-free.

how to use

import

import Noise from "https://flo-bit.github.io/every-noise/noise.js";

create noise object

// optionally pass in settings object
let noise = new Noise();

get noise value

// z and w are optional
let value = noise.get(x, y, z, w);

OR

// vector has {x, y, (optional) z, (optional) w} properties
let value = noise.get(vector);

also included

current version

this is a work in progress, so expect bugs and changes. until version 1.0.0 is released, the api as well as noise results may change.

v0.0.2 (2022-12-31)

v0.0.1 (2022-12-27)

demos

simple (p5.js)

simple 1D noise simple 2D noise

tileable (p5.js)

fBm (p5.js)

seeded (p5.js)

2D noise

stepped (p5.js)

ridged (p5.js)

billowed (p5.js)

warped (p5.js)

1D noise

advanced (p5.js)

simple 3D noise on sphere (three.js)

performance test

performance test v1

future examples

TODO

License

MIT License, see LICENSE file for details.

Credits

This project uses the following libraries: