Turtle Command
pc

Reports the color of the patch the turtle is on.


Example:

if pc = red [fd 1] commands the caller to move forward one if the patch that it is on is red.

Related commands:
stamp pc-at pc-towards