circle()

Examples

circle() example
void draw() {
  circle(56, 46, 55);
}

Description

Draws a circle to the screen. By default, the first two parameters set the location, and the third parameters set the shape's width and height. The origin may be changed with the ellipseMode() function.

Syntax

circle(a, b, c)

Parameters

a float: x-coordinate of the circle
b float: y-coordinate of the circle
c float: width and height of the circle by default

Returns

void

Related

ellipse()
ellipseMode()

Back to index