noise_fn

Crates.ionoise_fn
lib.rsnoise_fn
version0.2.0
sourcesrc
created_at2020-09-11 17:19:01.020898
updated_at2022-06-27 14:34:03.519928
descriptionSome simple noise functions and traits to allow easy integration with your own
homepagehttps://github.com/LukeMiles49/noise-fn-rs
repositoryhttps://github.com/LukeMiles49/noise-fn-rs
max_upload_size
id287453
size28,478
Luke Miles (LukeMiles49)

documentation

https://docs.rs/noise_fn

README

noise_fn

Crate

Documentation

Repository

Changelog

Some simple noise functions and traits to allow easy integration with your own.

use noise_fn::{Seedable, NoiseDomain, Octaves, Simplex};
use sized_matrix::Vector;

let seed = 12345;

let octaves = Octaves::<_, 4>::new(Simplex::new(), 0.5, 0.5).seed(seed);

let value2D = octaves.noise(Vector::vector([1.2, -3.5]));
let value3D = octaves.noise(Vector::vector([1.2, -3.5, 2.8]));

To use this, add it as a dependency to your Cargo.toml:

[dependencies]
noise_fn = "^0.2.0"
Commit count: 4

cargo fmt