Particle Flow with Source, Sink & Obstacles

Particles spawn at the source, flow on a wrapping world toward the sink, slow and sidestep around dense clumps, and avoid hand-drawn line obstacles.

The source spawns new particles so the population hovers near this value while the sink removes them.
How close particles need to get before they feel each other.
Higher values = stronger viscosity in tight clusters.
How aggressively particles sidestep around clumps and obstacles.
Cell size: 40px
Approx. buckets in use: 0
Neighbors near center cell: 0
Obstacles: 0
Green dot = source, red ring = sink. Edges wrap (torus world), so no clumping on borders.
Tip: click and drag on the canvas to draw straight-line obstacles.