Name

circle()

Description

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

Examples

  • size(400, 400);
    circle(224, 184, 220);
    Image output for example 1

Syntax

  • circle(x, y, extent)

Parameters

  • x(float)x-coordinate of the ellipse
  • y(float)y-coordinate of the ellipse
  • extent(float)width and height of the ellipse by default

Return

  • void