FabGL
ESP32 Display Controller and Graphics Library
|
void lineTo | ( | int | X, |
int | Y | ||
) |
Draws a line starting from current pen position.
Starting pen position is specified using Canvas.moveTo() method or from ending position of the last call to Canvas.lineTo().
The line has the current pen color.
X | Horizontal ending line position. |
Y | Vertical ending line position. |
Example:
// Paint white a triangle Canvas.setPenColor(Color::BrightWhite); Canvas.moveTo(10, 12); Canvas.lineTo(30, 40); Canvas.lineTo(10, 12);
Definition at line 247 of file canvas.cpp.