Back to archiveGenerative Experiments
Canvas 2D

Particle Swarm Attractors

Organic particle motion driven by moving attractors, soft center repulsion, and line-link geometry.

How It Works

  • Particles start in a ring around center with randomized velocity.
  • Three sinusoidal attractors move continuously and pull particles across the canvas.
  • A center repulsion zone avoids total collapse while damping keeps motion smooth.
  • Nearby particles are connected with low-alpha strokes to create network texture.

Source Code

tsx