void setup(){
fullScreen();
noCursor();
}
void draw(){
background(#f097ff);
drawCursor(mouseX,mouseY);
text("("+mouseX+","+mouseY+")",width/2,height/2);
}
void drawCursor(float x,float y){
final float W = width/1920*11.00, H1 = height/1080*16.00, H2 = sqrt(H1*H1-W*W)*14/13;
fill(0);
triangle(x,y,x,y+H1,x+W,y+H2);
}
So I’m trying to create a simple alter cursor shape. The problem is the cursor in this program lag severely. That is if I comment the noCursor(),the system’s cursor and the black triangle cursor can’t sync very well.
Also my screen is 3840x2160, but the program only runs under 1080P even with fullScreen().