[][src]Crate bluenoise

bluenoise-rs

bluenoise provides an implementation of poisson disk sampling in two dimensions, with glam as the underlying maths library. It aims to be fast, well documented and easy to use, taking advantage of a few optimisations to dramatically speed up compute speed.

Examples

use bluenoise::BlueNoise;

let mut noise = BlueNoise::new(50, 50, 10.0);
let noise = noise.with_samples(10).with_seed(10);

for point in noise.take(10) {
    println!("{}, {}", point.x(), point.y());
}

Structs

BlueNoise

Provides a source of BlueNoise in a given area at some density.