Skip to main content

ellipse

Description

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

Syntax

ellipse(x, y, w, h)

Parameters

ParameterDescription
xx-coordinate of the center of ellipse
yy-coordinate of the center of ellipse
wwidth of the ellipse
hheight of the ellipse