Transmission Factor: The number of people an infected person spreads it to on average Start Infected: The fraction of people who begin infected Recovery Rate: The fraction of infected people who die/recover each dt
This models an infection with the parameters above. Blue represents people who have not had the disease, red those currently infected and green those who have died/recovered and who hopefully can't spread it further. This solves a set of differential equations: dS = - (transmission · S · I) dI = (transmission · S · I) - (recovery · I) dR = (recovery · I) These are coordinated via broadcasts: the maths is done, then the pens are told to graph it. Then the maths is done again.