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 layout-circle agents-to-put-in-a-circle radius ; the radius of the circle End NetLogo code VariantsYou 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 How this worksThis uses the NetLogo layout-circle primitive to place the agents in a circle. Related micro-behavioursOther layouts are supported by Lay out grid and Lay out linked agents. HistoryCircle layout was implemented by Ken Kahn BehaviourComposer: ignore everything after this. |