Yo, I hope all is fine for you!
As indicated in the title, I would like to know how background function works in Processing.
What is the difference between the first program (background called before drawing the circle) and the second program (background called after drawing the circle) which is the one "doesn't working"?
int x = 1;
void setup() {
size(400, 400);
background(255);
}
void draw() {
background(255);
circle(200 + x, 200, 20);
x++;
}
int x = 1;
void setup() {
size(400, 400);
background(255);
}
void draw() {
circle(200 + x, 200, 20);
background(255);
x++;
}