Simulation viewport2D / REAL-TIME
DRAG SLIDERS TO EXPERIMENT
Change the occupancy of random cells and watch connected clusters appear.
In site percolation on a square grid, each cell is open with probability p. A flood-fill algorithm detects clusters. Near p ≈ 0.5927, a spanning cluster becomes likely in large grids.