Libraries‎ > ‎Library‎ > ‎Environment‎ > ‎

World location

BehaviourComposer: ignore everything before this.

Begin micro-behaviour:

Begin description:

Set the location of the display of the world.

End description

World location

Begin NetLogo code:

substitute-text-area-for upper-left-world-x 200 
substitute-text-area-for upper-left-world-y 10
substitute-text-area-for lower-right-world-x 0 
substitute-text-area-for lower-right-world-y 0
set-world-location upper-left-world-x

End NetLogo code


You can edit the first two text areas to change where the upper left corner of the world is. The next two text areas can be set to larger numbers to make the applet appear surrounded by white space.

How this works

Due to current limitations of NetLogo this specifies only the initial location of the world display and cannot be used to change the world location during execution.

Related micro-behaviours


World location was implemented by Ken Kahn.

BehaviourComposer: ignore everything after this.