Marching Squares Field Visualizer

This sketch uses the Marching Squares algorithm to generate and display contour boundaries on a grid. Each cell is either active or inactive, the algorithm determines the correct line or triangle to draw based on the surrounding corners.

Left-click toggles a cell between the two states.

Right‑click shows or hides the contour lines produced by the algorithm.