FabGL
ESP32 Display Controller and Graphics Library

◆ getPixel()

RGB888 getPixel ( int  X,
int  Y 
)

Reads the pixel at specified position.

Screen reading may occur while other drawings are in progress, so the result may be not updated. To avoid it, call getPixel() after waitCompletion() or disable background drawings.

Parameters
XHorizontal coordinate.
YVertical coordinate.
Returns
Pixel color as RGB888 structure.

Definition at line 543 of file canvas.cpp.