Category: Window and Display
Back to System Functions
ScreenWidth()
Integer
Returns the current virtual screen width configured by the most recent call to Graphics.
If Graphics has not been called yet, the result is 0.
centerX = ScreenWidth() / 2