Crates.io | noilib-simple |
lib.rs | noilib-simple |
version | 0.5.1 |
source | src |
created_at | 2022-07-12 18:21:44.171857 |
updated_at | 2022-07-12 18:32:27.280405 |
description | A simple noise library |
homepage | https://github.com/engusmaze/noilib-simple-rs |
repository | https://github.com/engusmaze/noilib-simple-rs |
max_upload_size | |
id | 624571 |
size | 38,171 |
This is just a simple implementation of perlin noise and value noise made in rust.
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
}