2012-09-22 219 views

回答

4

試試這個:

PImage mouseCursor; 

void setup() { 
    size(640,480); 

    mouseCursor = loadImage("MouseCursor.png"); 
} 

void draw() 
{ 
    if(mouseX < 100) { 
    cursor(mouseCursor, 0, 0); 
    } else { 
    cursor(HAND); 
    } 
}