# Metaballs v2 — Marching squares Marching squares live: the field sampled on a grid, every 2×2 cell classified into one of 16 cases, and the interpolated iso-line stroked around the blobs. Source: https://steevepommier.com/motion/metaballs-v2-marching-squares/ Section: Motion Published: 2026-07-07 Tags: 2d, interactive, iridescent --- The centrepiece of the article: sample the field on a grid, classify every 2×2 cell into one of 16 cases and stroke the iso-contour, with optional linear interpolation of the crossing points. Toggle the grid, the inside/outside sample dots and the source balls to see exactly how the algorithm works.