@sposhe/poisson
Generates a random distribution of one or more elements a minimum distance apart.
Plugin Preview
About this plugin
PoissonGenerates a random distribution of one or more elements a minimum distance apart. Optionally randomizes rotation.How to UseCreate a frameAdd one or more elements to the frame (these can be shapes, component instances, or other frames)Select the frameRun the pluginSet a minimum distance threshold (and optionally set if rotation should be randomized)Press the "Create" buttonHow it WorksThe plugin creates a new frame beside the source frame, and draws copies of the source element(s) using the poisson-disc distribution algorithm until the frame is filled. If more than one source element is used, the source element for each node is chosen randomly.Under the HoodThe plugin uses Beau Gunderson's poisson-disk-sampler javascript package, which is based on Mike Bostock's implementation of Jason Davies' implementation of Bridson's algorithm. View Mike Bostock's great explanation of how poisson-disc sampling works.
Plugin Details
| Version | 1 |
|---|---|
| Created | March 14, 2021 |
| Last Updated | March 31, 2021 |
| Category | editing & effects plugins |
| Creator | Sean O'Shea |
| Stats | 1229 installs, 50 likes |
| Pricing | Free |
Technical Details
- API:1.0.0
- UI:ui.html
- main:code.js
More Like This
Discover other plugins in the editing & effects plugins category.