| Crates.io | bluenoise_sampler |
| lib.rs | bluenoise_sampler |
| version | 0.1.0 |
| created_at | 2025-02-22 10:25:40.340161+00 |
| updated_at | 2025-02-22 10:25:40.340161+00 |
| description | Precomputed blue noise for fast sampling |
| homepage | |
| repository | https://github.com/ad-kr/bluenoise_sampler |
| max_upload_size | |
| id | 1565287 |
| size | 40,751 |
This crate provides precomputed blue noise for fast sampling. The blue noise is generated with the
bluenoise crate and is stored in an array for later use.
The blue noise can be scaled based on a desired radius. The radius is the distance between each sample, just like in a regular Poisson disk sampling algorithm.
use bluenoise_sampler::BlueNoiseSampler;
let noise_sampler = BlueNoiseSampler::new(512.0, 256.0, 4.0);
let samples = noise_sampler.get_samples(); // Returns Vec<(f32, f32)>