Processing provides method rect() to draw a rectangle. This code draws a white 50 X 50 rectangle on black background.
void setup() {
size(500, 500);
background(0);
fill(255);
noStroke();
}
void draw() {
rect(225, 225, 50, 50);
}
The signature of method rect() is thi...