tv_GetPixelLayer layer x y
Indicates the color of a pixel on a layer. The layer argument defines what layer to look at. "BRUSH" looks at the custom brush. "SPARE" looks at the spare image. "UNDO" looks at the undo buffer (that is, what would appear if you clicked undo). "FRONT" looks at all layers above the current layer, as if they were merged. "BACK" looks at all layers below the current layer, as if they were merged. "CURRENT" looks at the current layer. The x and y arguments are the coordinates of this pixel. This command returns red, green, blue and alpha information, defining the values of the color components used by the pixel. Each value is between 0 and 255.