Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

poisson disc sampling of 2-dimensional

Project description

https://travis-ci.org/emulbreh/bridson.svg?branch=master

bridson

Two Dimensional Poisson Disc Sampling using Robert Bridson’s algorithm

https://cdn.rawgit.com/emulbreh/bridson/master/sample.svg

Usage

>>> from bridson import poisson_disc_samples
>>> poisson_disc_samples(width=100, height=100, r=10)
[(18.368737154138397, 0.6537095218417459),
 (31.037620677039477, 0.11127035812202124),
 (42.36176894248073, 7.038053455899708),
 ...
 (39.42578238367568, 99.18831048188478),
 (73.33459914827051, 99.50928386778354),
 (98.09958160385061, 99.1575330533914)]

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
bridson-0.1.0-py3-none-any.whl (4.1 kB) Copy SHA256 hash SHA256 Wheel py3 May 17, 2017
bridson-0.1.0.tar.gz (2.4 kB) Copy SHA256 hash SHA256 Source None May 17, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page