Start from a small ring of points forming a closed loop. Each step applies two forces at once: nearby points repel each other (so they don't bunch up), while points adjacent along the curve pull toward each other (so the line stays smooth and unbroken). One more rule is added on top: whenever the gap between two neighbouring points exceeds a threshold, a new point is inserted between them.
Repeat this "push apart while growing" long enough and the ring can no longer stay round — it starts folding into wrinkles. The curve's length (its points) keeps increasing while the space it occupies stays bounded, so packing more line into the same area forces it to crumple. That's why coral surfaces, brain folds and leaf edges get their shape through a related mechanism — creative coders reach for it specifically because it mimics that biological growth pattern.
Use it for organic poster outlines, coral- or brain-fold-style textures, and logo animations that should feel like they're growing on their own. Since the point count only ever increases, cap it or the simulation keeps slowing down.
When to use
Use it when an outline or texture needs to feel like it is organically growing. Balance the point cap and repulsion radius together to keep performance and density in check.