Disease Spread Simulation
The following canvas simulates how a disease spreads through a population.
The simulation is based on the SIR Model.
The settable parameters are the population size - between 3 and 300, the probability of being
the recovery time, and the speed at which the dots move - the higher the speed, the higher the
collisions between the dots, and the faster the disease spreads. The disease is spread by the
by the collision with a susceptible.
Once recovered, one cannot be affected again by the disease.
The simulation starts with one infectious and all the others susceptible.
New features, bug fixes, and better style will be released soon, stay tuned!
Source code available at this link.