Asked by shrek

draw = function() {
fill(0, 255, 68); // start color

if (mouseIsPressed&&mouseX>50&&mouseX>250&&mouseY<150&&mouseX<400) {
fill(33, 112, 52); // click color
}
rect(50, 150, 250, 100); // the button

// The button text
fill(0, 0, 0);
textSize(30);
text("PRESS ME!", 93, 193);
};
I made the changes and the code still doesn't work

Answers

There are no human answers yet.
There are no AI answers yet. The ability to request AI answers is coming soon!

Related Questions