bluenoise_sampler 0.1.0

Precomputed blue noise for fast sampling
Documentation
  • Coverage
  • 25%
    1 out of 4 items documented1 out of 4 items with examples
  • Size
  • Source code size: 40.75 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 442.8 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 16s Average build duration of successful builds.
  • all releases: 16s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • ad-kr/bluenoise_sampler
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ad-kr

Precomputed blue noise for fast sampling

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.

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

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