#perlin-noise #perlin #rand #2d #generate

perlin2d

Lightning fast 2D Perlin Noise generator

1 unstable release

0.2.6 Apr 22, 2021
0.2.5 Apr 22, 2021
0.2.0 Apr 18, 2021
0.1.0 Apr 18, 2021

#2307 in Algorithms

Download history 272/week @ 2024-07-20 292/week @ 2024-07-27 336/week @ 2024-08-03 422/week @ 2024-08-10 230/week @ 2024-08-17 288/week @ 2024-08-24 317/week @ 2024-08-31 233/week @ 2024-09-07 301/week @ 2024-09-14 349/week @ 2024-09-21 301/week @ 2024-09-28 154/week @ 2024-10-05 243/week @ 2024-10-12 275/week @ 2024-10-19 410/week @ 2024-10-26 367/week @ 2024-11-02

1,302 downloads per month
Used in 8 crates (2 directly)

Apache-2.0

10KB
141 lines

perlin2d

GitHub

Status GitHub Issues GitHub Pull Requests Crates.io (recent) Github Workflow


A small, fast and efficient two dimensional Perlin noise generation library with zero dependencies.

Example usage

  // For example, to generate a Perlin noise 2D terrain:
  use perlin2d::PerlinNoise2D;

  let perlin = PerlinNoise2D::new(6, 10.0, 0.5, 1.0, 2.0, (100.0, 100.0), 0.5, 101);
  let noise = perlin.get_noise(5.0, 10.0);

No runtime deps