2 releases
0.5.1 | Jul 12, 2022 |
---|---|
0.5.0 | Jul 12, 2022 |
#22 in #perlin-noise
12KB
110 lines
Noilib simple
This is just a simple implementation of perlin noise and value noise made in rust.
A simple example
use noilib_simple::NoiseGenerator;
fn main() {
let seed = 123;
let noise = NoiseGenerator::new(seed); // Initializing noise generator
let x = 1.0;
let y = 5.5;
println!("{}", noise.perlin(x, y)); // Print the noise value at x and y coordinates
}