Syntax
DOTCOLOR [xcoordinate ycoordinate]
(DOTCOLOR)
Explanation
DOTCOLOR returns the color of the pixel identified by its argument. The color is identified by a number from 0 to 15 or 255 corresponding to BACKGROUND or PENCOLOR.
(DOTCOLOR) with no arguments enclosed in parentheses returns the color of the pixel under the turtle.
Examples
? (DOTCOLOR)
Result: 15