|
FabGL
ESP32 Display Controller and Graphics Library
|
| void fillPath | ( | Point const * | points, |
| int | pointsCount | ||
| ) |
Fills the polygon enclosed in a sequence of lines.
| points | A pointer to an array of Point objects. Points array is copied to a temporary buffer. |
| pointsCount | Number 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.