Add each ball's distance falloff (radius² ÷ distance²) into a grid to build a scalar field, then fill only the cells above threshold — a bridge grows between two balls as they draw close

5balls · falloff field threshold canvas · getImageData · putImageData