bluenoise_sampler 0.1.0

Precomputed blue noise for fast sampling
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Precomputed blue noise for fast sampling


This crate provides precomputed blue noise for fast sampling. The blue noise is generated with the
[`bluenoise`](https://docs.rs/bluenoise) crate and is stored in an array for later use.

# Scaling


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.

# Example


```rs
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)>
```