Numbers as Colors, Agents and Patches


In Starlogo, a number can be a number, but a number can also be a color, an agent, or a patch. What makes a number not only a number is context. You can say someone tied a bow, took a bow, strung a bow, or trimmed a bow. Likewise, you can say set color 15, ask agent ID 57..., or set xcor/ycor 27/-5.

Submitted by talaya on 8. March 2009 - 12:49