Reference+
Name
ellipse()
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 ellipseMode() function.
Examples
size(400, 400); ellipse(224, 184, 220, 220);
Syntax
ellipse(a, b, c, d)
Parameters
a
(float)
x-coordinate of the ellipseb
(float)
y-coordinate of the ellipsec
(float)
width of the ellipse by defaultd
(float)
height of the ellipse by default
Return
void
Related
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.