Turtle and Observer Command |
pc, patchcolor Reports the color of the patch the turtle is on.
Note: This command can also be executed by patches, for example within an Examples: if pc = red [fd 1] commands the turtle to move forward one unit if the color of the patch the turtle is on is red. Related commands: |