xxxxxxxxxx
19
function setup() {
createCanvas(400, 400);
}
function draw() {
background(95);
line(width / 2, 0, width / 2, height);
line(0, height / 2, width, height / 2);
if (mouseX < width/2 && mouseY < width/2) {
cursor(CROSS);
} else if (mouseX > width/2 && mouseY < width/2) {
cursor('progress');
} else if (mouseX > width/2 && mouseY > width/2) {
cursor('https://cors-anywhere.herokuapp.com/https://cs.lmu.edu/%7Eray/images/javascript_logo.png');
} else {
cursor('grab');
}
}