xxxxxxxxxx
15
function setup() {
createCanvas(400, 400);
}
function draw() {
background(220);
text(mouseX + ", " + mouseY, 20, 20)
line(200,0,200,400)
line(0,200,400,200)
//YOUR CHALLENGE:
//Add else if statements to change the color of the background when the mouse is in each quadrant. Add an else for if you are not in any quadrant (eg: exactly in the middle.)
}