FabGL
ESP32 Display Controller and Graphics Library

◆ moveTo()

void moveTo ( int  X,
int  Y 
)

Moves current pen position to the spcified coordinates.

Some methods expect initial pen position to be specified, like Canvas.lineTo().

Parameters
XHorizontal pen position.
YVertical pen position.

Example:

// Paint a triangle
Canvas.moveTo(10, 12);
Canvas.lineTo(30, 40);
Canvas.lineTo(10, 12);

Definition at line 178 of file canvas.cpp.