In this Coding Challenge, I implement a “Poisson-disc Sampling” algorithm to evenly (but randomly) distribute a set of seed points throughoutt a canvas. The algorithm is implemented in JavaScript using p5.js.

Support this channel on Patreon:

Send me your questions and coding challenges!:

Contact:

Links discussed in this video:
Jason Davies’ reference:
Robert Bridson’s paper on the subject:

Source Code for the Video Lessons:

p5.js:
Processing:

For More Coding Challenges:

Help us caption & translate this video!