FabGL
ESP32 Display Controller and Graphics Library

◆ drawPath()

void drawPath ( Point const *  points,
int  pointsCount 
)

Draws a sequence of lines.

Parameters
pointsA pointer to an array of Point objects. Points array is copied to a temporary buffer.
pointsCountNumber of points in the array.

Example:

Point points[3] = { {10, 10}, {20, 10}, {15, 20} };
Canvas.setPenColor(Color::Red);
Canvas.drawPath(points, 3);

Definition at line 513 of file canvas.cpp.