Crates.io | opensimplex_noise_rs |
lib.rs | opensimplex_noise_rs |
version | 0.3.0 |
source | src |
created_at | 2020-08-03 20:23:49.042936 |
updated_at | 2020-08-09 09:09:57.759422 |
description | OpenSimplex noise algorithm implementation in Rust |
homepage | https://github.com/Mapet13/opensimplex_noise_rust/ |
repository | https://github.com/Mapet13/opensimplex_noise_rust/ |
max_upload_size | |
id | 272654 |
size | 60,888 |
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.
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)
[dependencies]
opensimplex_noise_rs = "0.3.0"