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

Patch size

BehaviourComposer: ignore everything before this.
Begin micro-behaviour:
Begin description:
Set the initial size in pixels of each patch of the world.
End description
Patch size
Begin NetLogo code:
substitute-text-area-for initial-patch-size 24  
set-patch-size initial-patch-size
End NetLogo code


The number of pixels per patch can be edited. If, for example, the world is 10x20 patches and the patch size is 12.5 then the world display will be 125x250 pixels.

How this works

Due to current limitations of NetLogo this specifies only the initial size of each patch and cannot be used to change the patch size during execution.

Related micro-behaviours


Patch size was implemented by Ken Kahn.

BehaviourComposer: ignore everything after this.