int incrementY = 50;
int incrementX = 20;

void setup() {
size( 410, 400);
background(200);
}

void draw() {

background(200);

for (int i=0; i < width; i = i + incrementX) {
for ( int j=0; j < height; j = j +incrementY) {
fill(i* j, 50);
stroke(i, j, 250);

int tailleRect = mouseY;
int tailleCercle = mouseX;
quad( i, j, tailleRect, tailleCercle, i+j, i-j, i*j, j-i );
dist(mouseX,mouseY, i, j);

}
}
}

---

int incrementY = 20;
int incrementX = 20;

void setup() {
size( 410, 400);
background(70);
}

void draw() {

background(70);

for (int i=0; i < width; i = i + incrementX) {
for ( int j=0; j < height; j = j +incrementY) {
fill(i* j, 50);
stroke(i, j, 250);

int tailleRect = mouseY;
int tailleCercle = mouseX;
rect( i, j, tailleRect, tailleCercle);
}
}
}