//********************************************************************//
//CAAD D_ARCH UnCover PSZ Project: Pillars_Pavilion Class Cursor //
//WS06/07 12. FEB. 2007 by Huang, Yung-Chieh | BaTeam MaeTaB //
//********************************************************************//
class Cursor
{
float CuX; //cursor position x
float CuY; //cursor position y
Cursor(float cx, float cy)
{
CuX=cx;
CuY=cy;
}
/**********Set Cursor Limitation**********/
void cruise(float CuR)
{
if(CuX < 0){
CuX=0;
}
else if(CuX > width){
CuX=width;
}
if(CuY < 0){
CuY=0;
}
else if(CuY > width){
CuY=height;
}
/**********Draw Cursor**********/
ellipseMode(CENTER);
noStroke();
fill(255, 255, 255, 20);
pushMatrix();
translate(0,0,-1);
ellipse(CuX, CuY, CuR*2, CuR*2);
popMatrix();
}
}