I want to add all rgb values that are close
Example:
rgb = [(0, 0, 78),(0, 254, 255),(255, 30, 90),(255, 0, 60),(106,190,30),(21,30,28),(0,0,0)]
Output:
blue = [((0, 0, 78),(0, 254, 255),]
pink = [(255, 30, 90),(255, 0, 60),]
green = [(106,190,30)]
gray = [(21,30,28)]
black = [(0,0,0)]
and i want to have the ability to make the range/difference like to be in the same color it must be lower than or equal a 10 shade difference
And then i want to add them to a dictionary as keys and values in this format:
rgb = {"blue":(All the rgb values in the list blue,ect...}
All automatic