Agents follow the model of Jones (2010), inspired by Physarum polycephalum. Each agent senses the pheromone field at three points a distance d ahead (left, centre, right, at ±θ = 0.5 rad), turns toward the strongest and moves a fixed step, depositing pheromone. The field then diffuses with a 3x3 weighted filter (weights 4 centre, 1 for the 8 neighbours, sum 12) and decays: c' = λ · K(c). The 2D twin uses the same agent rules and a 3x3 box filter on a flat canvas.
Two exact properties are tested on load, using this page's own filter: (1) filter + decay on the periodic grid keeps total mass Σc' = λ Σc; (2) each filter step adds variance σ² = 1/2 cell² per axis, so σ² = n/2 after n steps.
Simplifications: a discrete periodic grid, one pheromone species, no food sources or cytoplasm flow, a height-less plane. Real slime molds solve path problems by thickening tubes, not only by following trails. Illustrative, not a biological measurement. The petri dish, agar, bench and oat flakes are Blender 5.2 assets (decorative; the model is the same flat grid).