Challenge Smarter Button
Where is the mouse pressed?



Right now, if you press anywhere on the canvas, the button will change color (Try it!). We want the button to change color only when we press inside of it. To do that, you'll need to use comparison operators (>, <) with the current mouse x and mouse y position. You'll have to check multiple conditions (like that the x is greater than one number but less than another), so you'll also use &&.

If (mouseIsPressed && ----) {
Fill(----);
}