Crates.io | fast_poisson |
lib.rs | fast_poisson |
version | 1.0.1 |
source | src |
created_at | 2021-03-25 23:03:06.125023 |
updated_at | 2023-06-26 16:35:56.960037 |
description | An implementation of Bridson's algorithm for fast Poisson disk sampling |
homepage | |
repository | https://github.com/Kromey/fast_poisson |
max_upload_size | |
id | 373576 |
size | 52,739 |
This is a library for generating Poisson disk distributions using Bridson's algorithm.
Properties of Poisson disk distributions include no two points being closer than a certain radius and the distribution uniformly filling the space. Poisson disk distributions' blue noise properties have a variety of applications in procedural generation, including textures, worlds, meshes, and item placement.
A simple example to generate a Vec
containing a 2D Poisson distribution within [0, 1) in each
dimension:
use fast_poisson::Poisson2D;
fn main() {
let poisson = Poisson2D::new().generate();
}
See the documentation for more.
fast_poisson
is tested and supported for Rust version 1.67 or later.
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.