Categories Graphics

SCREENW / SCREENH


screenW() and screenH();

Returns the width and height of the screen, respectively.


Use example:

setDrawTarget(imgRadar);

//Draw things to the radar surface without needing to know where they'll be on screen

setDrawTarget(0);

drawImage(imgRadar, screenW() - 100, screenH() - 100);

Search results