patchcolor (pc)
Description:
Reports the color of the patch the turtle is on.
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.
Notes:
This command can also be executed by patches, for example within an ask-patches
statement.
Related Commands:
pc-ahead
pc-ahead-one-patch
pc-at
pc-towards
setbg
setpc
stamp