PImage ice;
int EW=100;
int EH=100;
float EY,EX,r,g,b,x,y,w,h;
boolean white=false;
void setup () {
size(600, 600);
ice=loadImage(“ice.jpg”);
size (1030,800);
image(ice,mouseX,mouseY,1024,768);
}
void draw() {
//image(spiral,mouseX,mouseY,1024,768);
r=random(255);{
g=random(255);
b=random(255);
x=random(1024);
y=random(768);
}
fill(r, g, b);
rect(x, y, EW, EH);
EW=EW+1;
EH=EH+1;
EW=(50);
EH=(80);
EW=constrain(10, 10, 10);
EH=constrain(10,10,10);
}
void mousePressed() {
if (white) {
background(255);
}
else {
background(0);
}
white=!white;
}
// left click = whiter
//right click=black
//tried 2 reset 2 icecream….didnt go as plann 🙁