|
FabGL
ESP32 VGA Controller and Graphics Library
|
| void fabgl::CanvasClass::fillEllipse | ( | int | X, |
| int | Y, | ||
| int | width, | ||
| int | height | ||
| ) |
Fill an ellipse specifying center and size, using current brush color.
| X | Horizontal coordinate of the ellipse center. |
| Y | Vertical coordinate of the ellipse center. |
| width | Ellipse width. |
| height | Ellipse height. |
Example:
// Paint a filled yellow ellipse Canvas.setBrushColor(Color::BrightYellow); Canvas.fillEllipse(100, 100, 40, 40); // Paint a yellow ellipse with blue border Canvas.setPenColor(Color::BrightBlue); Canvas.setBrushColor(Color::BrightYellow); Canvas.fillEllipse(100, 100, 40, 40); Canvas.drawEllipse(100, 100, 40, 40);