Crate noise [−] [src]
A procedural noise generation library for Rust.
Example
use noise::{Brownian3, PermutationTable}; let perm_table = PermutationTable::new(12); let noise = Brownian3::new(noise::perlin3, 4).wavelength(32.0); let val = noise.apply(&perm_table, &[42.0, 37.0, 2.0]);
Reexports
pub use modules::NoiseModule; |
Modules
modules |
Structs
Brownian2 |
A callable struct for applying 2-dimensional fractional Brownian motion. |
Brownian3 |
A callable struct for applying 3-dimensional fractional Brownian motion. |
Brownian4 |
A callable struct for applying 4-dimensional fractional Brownian motion. |
PermutationTable |
A seed table, required by all noise functions. |
Traits
GenFn2 |
A trait alias for a 2-dimensional noise function. |
GenFn3 |
A trait alias for a 3-dimensional noise function. |
GenFn4 |
A trait alias for a 4-dimensional noise function. |
Functions
Type Definitions
Point2 |
A 2-dimensional point. This is a fixed sized array, so should be compatible with most linear algebra libraries. |
Point3 |
A 3-dimensional point. This is a fixed sized array, so should be compatible with most linear algebra libraries. |
Point4 |
A 4-dimensional point. This is a fixed sized array, so should be compatible with most linear algebra libraries. |