FabGL
ESP32 Display Controller and Graphics Library

◆ fillPath()

void fillPath ( Point const *  points,
int  pointsCount 
)

Fills the polygon enclosed in 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.setBrushColor(Color::Red);
Canvas.fillPath(points, 3);

Definition at line 532 of file canvas.cpp.