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
60KB
1.5K
SLoC
OpenSimplex noise in rust
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:
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"