2 stable releases
Uses old Rust 2015
1.0.1 | May 26, 2018 |
---|
#17 in #perlin
73 downloads per month
8KB
189 lines
A simple perlin noise implementation in Rust
Example
extern crate perlin_noise as perlin;
use perlin::PerlinNoise
fn main() {
let perlin = PerlinNoise::new();
println!("{}",perlin.get(132.2));
println!("{}",perlin.get2d([12.0,32.0]));
println!("{}",perlin.get3d([12.0,32.0,25.0]));
}
lib.rs
:
A simple perlin noise implementation in Rust
Example
extern crate perlin_noise as perlin;
use perlin::PerlinNoise;
fn main() {
let perlin = PerlinNoise::new();
println!("{}",perlin.get(132.2));
println!("{}",perlin.get2d([12.0,32.0]));
println!("{}",perlin.get3d([12.0,32.0,25.0]));
}
Dependencies
~400KB