[][src]Static p5_sys::global::circle

pub static circle: CircleInternalType

Draws a circle to the screen. A circle is a simple closed shape.It is the set of all points in a plane that are at a given distance from a given point, the centre.This function is a special case of the ellipse() function, where the width and height of the ellipse are the same. Height and width of the ellipse correspond to the diameter of the circle. By default, the first two parameters set the location of the centre of the circle, the third sets the diameter of the circle.

Examples

// Draw a circle at location (30, 30) with a diameter of 20.
circle(30, 30, 20);

Parameters

x x-coordinate of the centre of the circle.

y y-coordinate of the centre of the circle.

d diameter of the circle.