xxxxxxxxxx
19
function setup() {
createCanvas(100, 100);
}
function draw() {
line(width / 2, 0, width / 2, height);
line(0, height / 2, width, height / 2);
if (mouseX < 50 && mouseY < 50) {
cursor(CROSS);
} else if (mouseX > 50 && mouseY < 50) {
cursor('progress');
} else if (mouseX > 50 && mouseY > 50) {
cursor('https://s3.amazonaws.com/mupublicdata/cursor.cur');
} else {
cursor('grab');
}
}