This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import mss | |
from PIL import Image, ImageStat | |
# From what monitor to take screenshot | |
monitor_index = 0 | |
def get_color(rescale=(0, 0)): | |
# Returns a list with the RGBA values. | |
# Add a rescale tuple parameter (x,y) other than 0,0 to make faster calculations |