def onScreen(x, y=None):
    x, y = _unpackXY(x, y)
    x = int(x)
    y = int(y)

    width, height = platformModule._size()
    return 0 <= x < width and 0 <= y < height


# Mouse Functions
# ===============
Returns whether the given xy coordinates are on the screen or not.
dataset/ETHPy150Open asweigart/pyautogui/pyautogui/__init__.py/onScreen