Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenSimplex noise in rust Crates.io Build Status

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."

Releases

Contributors

Languages