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

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

#248 in Rendering

Download history 7/week @ 2024-10-16 6/week @ 2024-10-23 8/week @ 2024-10-30 6/week @ 2024-11-06 1/week @ 2024-11-13 5/week @ 2024-11-20 12/week @ 2024-11-27 14/week @ 2024-12-04 51/week @ 2024-12-11 12/week @ 2024-12-18 10/week @ 2025-01-01 13/week @ 2025-01-08 30/week @ 2025-01-15 19/week @ 2025-01-22 19/week @ 2025-01-29

83 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