Crates.io | cosiest_noisiest |
lib.rs | cosiest_noisiest |
version | 0.1.1 |
source | src |
created_at | 2024-05-23 18:00:00.454279 |
updated_at | 2024-05-25 09:01:41.140634 |
description | cosiest_noisiest allows generating 1d noise at arbitrary points |
homepage | |
repository | https://github.com/cosiestdevil/cosiest_noisiest |
max_upload_size | |
id | 1249846 |
size | 26,896 |
cosiest_noisiest
allows generating 1d noise at arbitrary points
Add this to your Cargo.toml
[dependencies]
cosiest_noisiest = "0.1.0"
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);
f32 - Enables using f32 when interpolating between noise values instead of the default f64.