NetLogo Dictionary

Below you will find video tutorials for each of the keywords in NetLogo. The keywords below are organized overall by which agents can perform or use the keyword, thus, you’ll notice some keywords are listed twice or more.

Additionally, the logic, input, and output keywords are listed at the end. These are more complex and allow for more flexibility in your programming. If you would like to learn more about a keyword, find a keyword that isn’t listed, or would like to create your own keyword tutorials, please don’t hesitate to contact our webmaster.

You can find the official NetLogo User Dictionary here.

pgbrk2

pagebreakThe Observerpagebreak

Observer Actions

to ____ // end – skeleton video

clear-all – skeleton video

clear-drawing – video

wait n – skeleton video

ask ____ – patches video 1

stop – turtles video 3

create-turtles n – turtles video 1

create-ordered-turtles (cot) – video

reset-ticks // tick – ticks video 1

reset-perspective – video

inspect – video

print – turtles video 3

import-drawing – importing backgrounds video – model and video zipped

import-patches – importing backgrounds video – model and video zipped

pgbrk2

pagebreak

Patchespagebreak

Patch Actions

set ____ – patches video 1

ask ____– turtles video 4

sprout n- hatch and sprout video – video and model zipped

pagebreak

Patch Properties

pcolor – patches video 1

pxcor // pycor – patches video 1

random-pxcor random-pycor – video

color swatches tool – patches video 2

patches-own – video

pagebreak

Patch Vision

neighbors – neighbors video

in-radius n –  in-radius video – model and video zipped

pgbrk2

pagebreak

Turtlespagebreak

Turtle Actions

face – face video 1

set ____ – turtles video 1

ask ____ – turtles video 2

setxy x y – turtles video 1

forward n – turtles video 2

back n – turtles video 4

right θ // left θ – turtles video 2

hatch n – hatch and sprout video – video and model zipped

die – turtles video 3

show “____” – turtles video 4

show-turtles // hide-turtles – video

pen-down (pd) – video

pen-erase – video

stamp // stamp-erase – video

who – video

home – video

follow-me – video

layout-circle – video

create-link-with – video

link-neighbors – video

move-to – video

one-of – video

myself – video

towards – video

towardsxy – video

follow – follow video + model

simple flee – turtles video 4

robust flee

simple bounce – simple bounce video + model

robust bounce – model

pagebreak

Turtle Properties

breed – breed video 1

of – video

who – video

color – turtles video 1

color swatches tool – patches video 2

xcor // ycor – turtles video 1

pen-up // pen-down

shape “____” – turtles video 1

turtle shapes editor tool – turtle shapes editor video

turtles-own – video

pagebreak

Turtle Vision

in-radius n – in-radius video – model and video zipped

in-radius n – turtles video 3

in-cone n θ – turtles video 4

pgbrk2

pagebreakAdvanced Keywordspagebreak

Logic

if [____] – turtles video 3

ifelse [____] – ifelse video – video and model zipped

and // or – patches video 3

any? // not any? – turtles video 3

other

towards

min-one-of ____ [____]

max-one-of ____ [____]

distance myself

sort // sort-by- video

with [____] – patches video 1

[____] of

repeat – video

globals – video

sliders – video

pagebreak

Math

+ – * / ^ – math operators – video

n-of n – patches video 1

random n – turtles video 2

mod – mod video

sqrt – video

abs – video

=  – patches video 1

!=

<  – patches video 2

>  – patches video 2

<=

>=

random-xcor // random-ycor – turtles video 1

 distance – video

distancexy – video

dx dy – video

tables – video 1video 2

array – video 1video 2

count – turtles video 3

pagebreak

Inputs

buttons

sliders – sliders and choosers video – video and model zipped

switch

choosers – sliders and choosers video – video and model zipped

input

mouse – mouse input video – video and model zipped

pagebreak

Outputs

monitor – turtles video 3

plot – see the Plotting section

output

note

pagebreak

Links

create-link-with – video

tie // untie – video

hide – video

pagebreak

CCM Logo Animated

pgbrk2