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 redask link-with myself [set color infected-color] End NetLogo code VariantsYou can edit the text area to use a different color. Related behavioursChange my state to infected changes the colour used to display the infected individuals. How this worksThis sets the NetLogo color attribute of the link between this agent and the one that added this behaviour (perhaps indirectly). HistoryThis was implemented by Ken Kahn on 3 February 2011. BehaviourComposer: ignore everything after this. |