#perlin #noise #random

perlin_noise

A simple perlin noise implementation in Rust

2 stable releases

Uses old Rust 2015

1.0.1 May 26, 2018

#17 in #perlin

Download history 34/week @ 2024-03-18 35/week @ 2024-03-25 83/week @ 2024-04-01 26/week @ 2024-04-08 33/week @ 2024-04-15 38/week @ 2024-04-22 26/week @ 2024-04-29 29/week @ 2024-05-06 36/week @ 2024-05-13 44/week @ 2024-05-20 30/week @ 2024-05-27 24/week @ 2024-06-03 18/week @ 2024-06-10 35/week @ 2024-06-17 25/week @ 2024-06-24

79 downloads per month

MIT license

8KB
189 lines

A simple perlin noise implementation in Rust

Build Status

Crates.io Documentation

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

~385KB