#simplex-noise #simplex #perlin-noise #noise #rogue-like #perlin #gamedev

bracket-noise

Rust port of Auburn's amazing FastNoise library. Part of the bracket-lib family.

6 releases

0.8.7 Oct 4, 2022
0.8.2 Feb 10, 2021
0.8.1 Apr 29, 2020
0.7.0 Feb 22, 2020
0.1.0 Feb 21, 2020

#964 in Game dev

Download history 1150/week @ 2024-07-21 1135/week @ 2024-07-28 1047/week @ 2024-08-04 2058/week @ 2024-08-11 1156/week @ 2024-08-18 1588/week @ 2024-08-25 1433/week @ 2024-09-01 1102/week @ 2024-09-08 1068/week @ 2024-09-15 1418/week @ 2024-09-22 1043/week @ 2024-09-29 327/week @ 2024-10-06 957/week @ 2024-10-13 881/week @ 2024-10-20 1059/week @ 2024-10-27 1061/week @ 2024-11-03

3,978 downloads per month
Used in 9 crates (4 directly)

MIT license

155KB
4.5K SLoC

bracket-noise

Auburn's FastNoise library is amazing - it's fast, covers all the commonly used types of noise, and has been ported to many systems. This crate ports much of that functionality (more is being ported in each version) to Rust. It is part of the bracket-lib family of crates.

Using bracket-noise

To obtain bracket-noise, include the following in your Cargo.toml file:

[dependencies]
bracket-noise = "~0.8"

Examples

You may run examples with cargo run --example <name>. The examples use crossterm for easy terminal output.

  • simplex_fractal uses Fractal Simplex Noise to make a heightmap, and outputs it to your terminal.
  • perlin_fractal uses Fractal Perlin Noise to make a heightmap, and outputs it to your terminal.
  • white_noise outputs a randomized white noise sample to your terminal.
  • value outputs "value noise" to your terminal. This is a bit like white noise but smoother.
  • value_fractal outputs "fractal value noise" to your terminal.
  • cellular provides a dump of cellular noise. Until the functions to look up the base noise layer from another noise generator are implemented, this is of limited utility.
  • simplex_billow_quintic and simplex_rigid_hermite demonstrate some noise tweaking options.

Dependencies

~250–680KB
~12K SLoC