void setup() {
size(500, 500);
background(0);
}
void draw() {
ellipse(mouseX, mouseY, 20, 20);
if (mousePressed) {background(0);}
if (keyPressed) {ellipse(random(0,500),random(0,500),60,60);
fill(210,0,50,50);}
else {fill (50,0,210,70);}
}
void setup() {
size(500, 500);
background(0);
}
void draw() {
ellipse(mouseX, mouseY, 20, 20);
if (mousePressed) {background(0);}
if (keyPressed) {ellipse(random(0,500),random(0,500),60,60);
fill(210,0,50,50);}
else {fill (50,0,210,70);}
}
Copyright © 2024 | Thème WordPress par MH Themes