FabGL
ESP32 Display Controller and Graphics Library

◆ fillEllipse()

void fillEllipse ( int  X,
int  Y,
int  width,
int  height 
)

Fills an ellipse specifying center and size, using current brush color.

Parameters
XHorizontal coordinate of the ellipse center.
YVertical coordinate of the ellipse center.
widthEllipse width.
heightEllipse 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);

Definition at line 312 of file canvas.cpp.