This application was made to simulate how sickness spreads by proximity.
Here are all of the different agent types.
Completely normal person with no immunity. These are the blue ones.
A person who carries the disease. These are the red ones.
Has developed immunity after being infected. These are the cyan ones.
Is temporarily immune to prevent being infected just after healing. These are the yellow ones.
Has died. These are the black ones.
Here is a list of all the parameters and a description of them.
Decides the width of the canvas. Default value is 500.
Decides the height of the canvas. Default value is 500.
Decides how many agents should be made. Default is 100.
Decides how likely it is for an infected person to die. Default value is 0.01.
Decides how likely it is for an infected person to become immune. Default value is 0.05.
Decides how likely it is for an infected person to become healthy. Default value is 0.1.
Decides how far an agent moves each frame. Default value is 30.
Decides how big the agent is. Default value is 5.
Decides how far an infected agent can infect
Decides minimum time that a agent can be temporarily imune. Default value is 0.
Decides maximum time that a agent can be temporarily imune. Default value is 5.
Decides how the disease is spread currently only distance is supported. Default value is 0.
Decides minimum time in seconds it can take for an agent to change direction. Default value is 15.
Decides maximum time in seconds it can take for an agent to change direction. Default value is 15.
Decides what color sick agents are. Default value is "red".
Decides what color healthy agents are. Default value is "blue".
Decides what color permanently immune agents are. Default value is "cyan".
Decides what color dead agents are. Default value is "black"
Decides what color temporarily immune agents are. Default value is "yellow".
Decides how many sick people are initialy added. They are added at random locations. They are added to the total number of people. Default value is 2.