This doesn’t even happen all the time, sometimes it works perfectly fine and consistently returns the same rgb values, but a majority of other times it returns rgb values that are close to the actual color but still not the same.
To test the pyautogui.pixel I wrote the below code:
while not keyboard.is_pressed('q'): print(pyautogui.pixel(146,488)) time.sleep(1)
For some reason it works well for black screens (returning 0,0,0 always) but when I’m checking the rgb for a pixel for, lets say, light blue, it would give me something close like purple, but never the specific rgb values of the color. This value would also continuously change.
Darren Pan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.