Libraries‎ > ‎Epidemics‎ > ‎

Change colour of link with infector

BehaviourComposer: ignore everything before this.
Begin micro-behaviour
Begin description:
Change the colour of the link from me to the one who infected me.
End description

Change colour of link with infector

Begin NetLogo code:
substitute-text-area-for infected-color red
ask link-with myself [set color infected-color]
End NetLogo code


You can edit the text area to use a different color.

Related behaviours

Change my state to infected changes the colour used to display the infected individuals.

How this works

This sets the NetLogo color attribute of the link between this agent and the one that added this behaviour (perhaps indirectly).


This was implemented by Ken Kahn on 3 February 2011.

BehaviourComposer: ignore everything after this.