ArduinoGraphics - ellipse()

Description

Stroke and fill an ellipse, uses the stroke color set in stroke() and the fill color set in fill().

Syntax

YourScreen.ellipse(x, y, width, height)

Parameters

  • x: x center position of the ellipse
  • y: y center position of the ellipse
  • width: width of the ellipse
  • height: height of the ellipse

Returns

Nothing

Example

YourScreen.beginDraw();
YourScreen.clear();
YourScreen.noStroke();
YourScreen.fill(255, 255, 0);
YourScreen.ellipse(YourScreen.width()/2, YourScreen.height()/2, YourScreen.width(), YourScreen.height());
YourScreen.endDraw();