#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

#165 in Rendering

Download history 7/week @ 2023-12-18 10/week @ 2023-12-25 120/week @ 2024-01-08 1/week @ 2024-01-15 5/week @ 2024-01-22 37/week @ 2024-02-05 5/week @ 2024-02-12 55/week @ 2024-02-19 25/week @ 2024-02-26 38/week @ 2024-03-04 20/week @ 2024-03-11 15/week @ 2024-03-18 7/week @ 2024-03-25 102/week @ 2024-04-01

153 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