var draw = function() { background(0); stroke(255); line(133, 0, 133, 400); line(267, 0, 267, 400); textSize(18); text("Hand cursor", 10, 30); text("Text cursor", 144, 30); text("Loading cursor", 272, 30); if(mouseX < 133) { cursor(HAND); }else if(mouseX > 133 && mouseX <272) { cursor(TEXT); }else{ cursor(WAIT); } };