cosiest_noisiest

Crates.iocosiest_noisiest
lib.rscosiest_noisiest
version0.1.1
sourcesrc
created_at2024-05-23 18:00:00.454279
updated_at2024-05-25 09:01:41.140634
descriptioncosiest_noisiest allows generating 1d noise at arbitrary points
homepage
repositoryhttps://github.com/cosiestdevil/cosiest_noisiest
max_upload_size
id1249846
size26,896
Justin Wiblin (Thelonedevil)

documentation

README

Cosiest Noisiest

cosiest_noisiest allows generating 1d noise at arbitrary points

Usage

Add this to your Cargo.toml

[dependencies]
cosiest_noisiest = "0.1.0"

Examples

use cosiest_noisiest::NoiseGenerator;
let mut noise_generator = NoiseGenerator::from_u64_seed(2, 1. / 32., 128., 3);
let noise:f64 = noise_generator.sample(1024);
use cosiest_noisiest::NoiseGenerator;
let mut noise_generator = NoiseGenerator::from_u64_seed(2, 1. / 32., 128., 3);
let noise = [0.0;1024];
noise_generator.fill(noise);

Crate Features

f32 - Enables using f32 when interpolating between noise values instead of the default f64.

Commit count: 8

cargo fmt