circle()

Draws a circle to the screen.

Examples

example picture for circle()
1
2
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

Syntax

circle(x: float, y: float, extent: float, /) -> None

Parameters

  • extent: float - width and height of the ellipse by default

  • x: float - x-coordinate of the ellipse

  • y: float - y-coordinate of the ellipse

Updated on November 12, 2021 11:30:58am UTC