

def onScreen(x, y=None):
    'Returns whether the given xy coordinates are on the screen or not.\n\n    Args:\n      Either the arguments are two separate values, first arg for x and second\n        for y, or there is a single argument of a sequence with two values, the\n        first x and the second y.\n        Example: onScreen(x, y) or onScreen([x, y])\n\n    Returns:\n      bool: True if the xy coordinates are on the screen at its current\n        resolution, otherwise False.\n    '
    (x, y) = _unpackXY(x, y)
    x = int(x)
    y = int(y)
    (width, height) = platformModule._size()
    return ((0 <= x < width) and (0 <= height < height))

dataset/ETHPy150Open asweigart/pyautogui/pyautogui/__init__.py onScreen/VarMisuse@68/252 `y`->`height`