DOT?
Syntax DOT?
 
Explanation DOT? reports TRUE if a dot is present at the turtle's position; otherwise it reports FALSE. A dot is present if the color under the turtle is not the same as the background color reported by BACKGROUND.
 
 
 
 
Examples (The first instruction below places 100 dots randomly in an area. The second instruction moves the turtle randomly in the same area and prints a message each time it detects the presence of a dot.)

REPEAT 500 [DOT LIST RANDOM 50 RANDOM 50]
PU SETXY LIST RANDOM 50 RANDOM 50 
DOT? 
Result: FALSE 
PU SETXY LIST RANDOM 50 RANDOM 50 
DOT? 
Result: TRUE 

TopIndex