circle()#

Draws a circle to the screen.

Examples#

example picture for circle()
def setup():
    py5.circle(56, 46, 55)

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 ellipse_mode() function.

Underlying Processing method: circle

Signatures#

circle(
    x: float,  # x-coordinate of the ellipse
    y: float,  # y-coordinate of the ellipse
    extent: float,  # width and height of the ellipse by default
    /,
) -> None

Updated on September 01, 2022 16:36:02pm UTC