#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 32/week @ 2024-07-22 26/week @ 2024-07-29 23/week @ 2024-08-05 47/week @ 2024-08-12 14/week @ 2024-08-19 24/week @ 2024-08-26 23/week @ 2024-09-02 13/week @ 2024-09-09 24/week @ 2024-09-16 47/week @ 2024-09-23 27/week @ 2024-09-30 16/week @ 2024-10-14 15/week @ 2024-10-21 18/week @ 2024-10-28 24/week @ 2024-11-04

73 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

~400KB