SteevePommier
Theme
Menu background
Background pattern
Reveal
Reveal size 10
Density 50
Colour
Menu position
Analytics

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.

2dinteractiveiridescent

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.