With this easy code:
void setup () {
size(500, 500);
background(255, 255, 255);
}
void draw() {
if(keyPressed){
if(key=='a'){
rect(20, 20, 50, 50);
}
}
}
Why the square didn’t disappear when I stop clicking “a”???
If you can send me how to do it I will preciate.