opensimplex_noise_rs

Crates.ioopensimplex_noise_rs
lib.rsopensimplex_noise_rs
version0.3.0
sourcesrc
created_at2020-08-03 20:23:49.042936
updated_at2020-08-09 09:09:57.759422
descriptionOpenSimplex noise algorithm implementation in Rust
homepagehttps://github.com/Mapet13/opensimplex_noise_rust/
repositoryhttps://github.com/Mapet13/opensimplex_noise_rust/
max_upload_size
id272654
size60,888
(Mapet13)

documentation

README

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."
Commit count: 64

cargo fmt