[][src]Static p5_sys::global::ellipse

pub static ellipse: EllipseInternalType

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. If no height is specified, the value of width is used for both the width and height. If a negative height or width is specified, the absolute value is taken.

An ellipse with equal width and height is a circle.The origin may be changed with the ellipseMode() function.

Examples

ellipse(56, 46, 55, 55);

Overloads

x x-coordinate of the center of ellipse.

y y-coordinate of the center of ellipse.

w width of the ellipse.

h? height of the ellipse.


x x-coordinate of the center of ellipse.

y y-coordinate of the center of ellipse.

w width of the ellipse.

h height of the ellipse.

detail number of radial sectors to draw (for WebGL mode)