Cover
Reference
Tutorials
Bugs
# Move the mouse left and right across the image to see the cursor
# change from a cross to a hand
draw <- function() {
if (mouseX < 50) {
cursor(CROSS)
} else {
cursor(HAND)
}
}
cursor(kind ) cursor(img ) cursor(img ,x ,y ) cursor()
| kind | int: either ARROW, CROSS, HAND, MOVE, TEXT, or WAIT |
|---|---|
| img | PImage: any variable of type PImage |
| x | int: the horizontal active spot of the cursor |
| y | int: the vertical active spot of the cursor |