Py5Graphics.circle()

Draws a circle to the screen.

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

This method is the same as circle() but linked to a Py5Graphics object. To see example code for how it can be used, see circle().

Underlying Java method: PGraphics.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 September 11, 2021 16:51:34pm UTC