pyautogui.pixelMatchesColor можно ли как-то задать поиск цвета в диапазоне координат, а не на конкретном пикселе?
import pyautogui
i = 0
while True:
try:
i += 1
green = pyautogui.pixelMatchesColor(827, 508, (76, 255, 49), tolerance=10)
if green:
print(i, "find")
except Exception:
pass