Challenge Your First Button
Is the mouse pressed?

Buttons often change color when they're pressed, so that the user realizes they've pressed something. In this challenge, you'll change the code so that this button turns red when you press it. For this first step, add an if that colors the button red when you press the mouse anywhere on the canvas.

Fill(0, 255, 68); //start colour
If (----) {
Fill(----); // new colour

Rect(0, 0, 400, 200); //the button

draw = function() {

fill(0, 255, 68); // start color

rect(0, 0, 400, 200); // the button