#noise #simplex-noise #open-simplex #graphics #2d-3d

opensimplex_noise_rs

OpenSimplex noise algorithm implementation in Rust

4 releases (2 breaking)

0.3.0 Aug 9, 2020
0.2.1 Aug 7, 2020
0.2.0 Aug 5, 2020
0.1.0 Aug 3, 2020

#132 in Rendering

31 downloads per month

Custom license

60KB
1.5K SLoC

OpenSimplex noise in rust Crates.io

OpenSimplex noise is a random noise algorithm by Kurt Spencer, made as a patent-free alternative to Perlin and Simplex noise.

This Rust port currently supports 2D, 3D and 4D noise.

Examples:

example

Usage:

let noise_generator = OpenSimplexNoise::new(Some(883_279_212_983_182_319)); // if not provided, default seed is equal to 0
let scale = 0.044;
let value = noise_generator.eval_2d(x * scale, y * scale); // generates value in range (-1, 1)

Instalation

Just add this line to Cargo.toml file in your Rust project
[dependencies]
opensimplex_noise_rs = "0.3.0"

Code Examples:

License

This code is under the same "license" as Kurt's OpenSimplex - the public domain "unlicense."

No runtime deps