Create a new disc sampler
Size of the display in pixels
The minimum distance between points
Number of tries to make a new point before giving up
n-dimensional grid
OptionalfirstPoint: ICoordinatesThe first point position (optional)
Array of active points indices
The size of the grid cell = radius / sqrt(dimensions)
Number of columns in the grid
n-dimensional grid
Grid array of point indices
Array of points already plotted
The minimum distance between points
Number of tries to make a new point before giving up
Number of rows in the grid
Size of the display in pixels
Add a new point to the points, grid and active arrays. Points array holds the point data and grid / active hold indices to the points array.
The pixel position of the point
Get a random integer between min and max
The minimum value
The maximum value
Random number from min to max
Initialise the empty background grid array
Reset the algorithm and data
Run the algorithm till the end
Take a single or n steps through the algorithm
Number of steps to take
A Poisson Disc Sampling routine - randomly but evenly place dots on the screen..