ellipse()

Draws an ellipse (oval) to the screen.

Examples

example picture for ellipse()
1
2
def setup():
    py5.ellipse(56, 46, 55, 55)

Description

Draws an ellipse (oval) to the screen. An ellipse with equal width and height is a circle. By default, the first two parameters set the location, and the third and fourth parameters set the shape’s width and height. The origin may be changed with the ellipse_mode() function.

Underlying Java method: ellipse

Syntax

ellipse(a: float, b: float, c: float, d: float, /) -> None

Parameters

  • a: float - x-coordinate of the ellipse

  • b: float - y-coordinate of the ellipse

  • c: float - width of the ellipse by default

  • d: float - height of the ellipse by default

Updated on September 11, 2021 16:51:34pm UTC