Processing provides method ellipse
in order to draw ellipse. This code draws a white circle which has radius of 25 pixels.
void setup() {
size(500, 500);
background(0);
fill(255);
noStroke();
}
void draw() {
ellipse(225, 225, 50, 50);
}
The signature of method ellipse()
is this.
ellipse(x, y, w, h);
x
and y
is the coordinate of the ellipse. w
and h
is ellipse's width and height.