FANDOM


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

Pc logo 15

This is a DOTCOLOR command example. Its executes the "(DOTCOLOR)" command.

? (DOTCOLOR)

Result: 15