Libraries‎ > ‎Library‎ > ‎Images‎ > ‎

Import drawing

BehaviourComposer: ignore everything before this.

Begin micro-behaviour:

Begin description:

Import drawing from an image file.

End description

Import drawing

Begin NetLogo code:

substitute-text-area-for image-file-name NetLogoData/yourfilehere.png
run-in-observer-context 
  task [import-drawing "image-file-name"]

End NetLogo code

This covers the patches with an image. See NetLogo's documentation of  import-drawing

Please note that for this to run in an applet the image needs to be uploaded to the server. Please send any such files to info@modelling4all.org.

BehaviourComposer: ignore everything after this.

Comments