BehaviourComposer: ignore everything before this.
I set my size proportional to the number of my acquaintances.
Begin micro-behaviour
Size proportional to number of acquaintances
Begin NetLogo code:
substitute-text-area-for scaling-factor-number-of-acquaintances 0.1
substitute-text-area-for extra-acquaintance-count-for-scaling 5
do-after .01
[set size scaling-factor-number-of-acquaintances * (extra-acquaintance-count-for-scaling + count link-neighbors)]
End NetLogo code
Variants
You can edit the text areas to change the way the size is computed.
How this works
This counts the number of acquaintances and adds a constant (so those with no or few acquaintances aren't too small to see) and scales it to determine the size of the individual.
History
This was implemented by Ken Kahn on 3 February 2011.
BehaviourComposer: ignore everything after this. |