Visualize how social distancing helps flatten the curve and slows down the spread of a fictional disease in a community of little colored dots.
Tweak the sliders below to change the parameters of the simulation. Some parameters may be changed as the simulation runs.
Make some dots stop moving by adjusting the Distancing ratio. Self-isolating dots can still contract the disease from other moving dots, but since they're not moving, their transmission rate is greatly reduced.
Inspired by the Washington Post story about social distancing. Please keep in mind that the simulation is simplified, and does not reflect how diseases spread in real life, not how people move in their communities. It's meant as an illustration of a principle, rather than a predictor of an exact outcome.
Source available on GitHub.