Reference circle()

circle()

Draws a circle.

A circle is a round shape defined by the x, y, and d parameters. x and y set the location of its center. d sets its width and height (diameter). Every point on the circle's edge is the same distance, d, from its center. See ellipseMode() for other ways to set its position.

Examples

Syntax

circle(x, y, d)

Parameters

x

x-coordinate of the center of the circle.

y

y-coordinate of the center of the circle.

d

diameter of the circle.


Related References