ArduinoGraphics - circle()

Description

Stroke and fill a circle, uses the stroke color set in stroke() and the fill color set in fill().

Syntax

YourScreen.circle(x, y, diameter)

Parameters

  • x: x center position of the circle
  • y: y center position of the circle
  • diameter: diameter of the circle

Returns

Nothing

Example

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