Skip to content

Python code snippet – How to get RGB value from pixel in screen live ?

import PIL.ImageGrab
rgb = PIL.ImageGrab.grab().load()[x,y]
See also  How to print date and time in Python?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.