clear image
in
Programming Questions
•
1 year ago
How can I continually clear the canvas? I essentially want to make sure the entire screen is cleared at the end of each draw(). This is the code I have, which doesn't work.
Thanks!
- void setup() {
- size(200, 200);
- }
- void draw() {
- fill(255);
- ellipseMode(CENTER);
- ellipse(width/2, height/2,width/2,height/2);
- delay(1000);
- fill(0);
- rect(0,0,width,height);
- delay(1000);
- }
1