Libraries‎ > ‎Library‎ > ‎Layout‎ > ‎

Layout circle

BehaviourComposer: ignore everything before this.
Begin micro-behaviour:
Begin description:
Place a set of agents on a circle.
End description

Circle layout

Begin NetLogo code:
substitute-text-area-for radius 8               
substitute-text-area-for agents-to-put-in-a-circle all-individuals                        
  radius ; the radius of the circle
End NetLogo code


You can change the radius of the circle by editing the second text area. If you want separate circles for different kinds of agents, e.g. "Sheep" then replace the first text area with all-of-kind "Sheep" inside the square brackets.

How this works

This uses the NetLogo layout-circle primitive to place the agents in a circle.

Related micro-behaviours

Other layouts are supported by Lay out grid and Lay out linked agents.


Circle layout was implemented by Ken Kahn

BehaviourComposer: ignore everything after this.