“The Beauty In Small Things” #7

The Beauty In Small Things

This collection marks a new page in my collection of rules-based emergent systems. Like my previous projects,it is based on millions of transparent lines interacting in unpredictable ways. This time, the following rules are applied:

  • Place N circles in the canvas and pick a random point on each circle.
  • Assign a color from the current palette to each point
  • At each step, rotate the point along its circle, and draw a segment between the 2 closest points in the set.

Finding the closest points in a set is another classic computer science problem. This implementation uses the sweep line algorithm to avoid the O(n^2) complexity of the naive method.

Rendering still requires a good GPU (with the density at its maximum, it draws 5.7 million lines)

View the full collection (237 editions) on fxhash…