#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

#2465 in Algorithms

Download history 112/week @ 2024-10-07 244/week @ 2024-10-14 311/week @ 2024-10-21 406/week @ 2024-10-28 346/week @ 2024-11-04 255/week @ 2024-11-11 364/week @ 2024-11-18 319/week @ 2024-11-25 557/week @ 2024-12-02 523/week @ 2024-12-09 471/week @ 2024-12-16 214/week @ 2024-12-23 218/week @ 2024-12-30 515/week @ 2025-01-06 748/week @ 2025-01-13 586/week @ 2025-01-20

2,076 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