GitXplorerGitXplorer
A

poisson_disc

public
1 stars
1 forks
0 issues

Commits

List of commits on branch master.
Unverified
9cf12e4007b1bd3652b69de83e58433623e9f921

Completion of 2.0

AArgentiApparatus committed 9 years ago
Unverified
2f0136b3c498039d35ee94fec08441e51fd24aea

Bulk of major-ish changes for new release

AArgentiApparatus committed 9 years ago
Unverified
d42179f171b6ca8a28516d6883ef6825d8a1d0ae

Initial Commit

AArgentiApparatus committed 10 years ago

README

The README file for this repository.

Dart Poisson Disc

Generators of Poisson Disc point distributions.

Current Features

See these two pages for easy to digest explainations of the algorithm:

Getting started

  1. Add the following to your project's pubspec.yaml and run pub get:

    dependencies:
      poisson_disc: '^2.0.0'
  2. Add the correct import for your project:

    import 'package:poisson_disc/bridson2.dart' as bridson2;
  3. Invoke:

    for (Vector2 v in bridson2.generate(wdth: 256, hght: 128, toroidal: true)) {
      // Do something with points here
    }

Examples

  1. ./example/bridson2

    Demonstrates toroidal and non-toroidal Poisson Disc distributions an compares probability distributions of points for each.