Add more colors

main
justuser31 2 years ago
parent 60ca1f4bb3
commit 56fea85607

@ -5,8 +5,21 @@ COLORS = {
(255, 255, 255): 'white',
(0, 0, 255): 'blue',
(255, 0, 0): 'red',
(0, 255, 0): 'green',
(0, 0, 0): 'black'
(0, 255, 0): 'lime',
(0, 0, 0): 'black',
(255, 128, 0): 'orange',
(255, 255, 0): 'yellow',
(0, 255, 255): 'cyan',
(128, 0, 255): 'purple',
(255, 0, 255): 'pink',
(0, 128, 0): 'dark_green',
(0, 128, 255): 'light_blue',
(128, 0, 128): 'dark_purple',
(128, 128, 128): 'gray',
(255, 0, 128): 'dark_pink',
(0, 128, 0): 'lime',
(0, 255, 128): 'mint',
(128, 255, 0): 'salad'
}
img = Image.open('image.png')

@ -19,8 +19,21 @@ class RequestHandler(BaseHTTPRequestHandler):
'white': (255, 255, 255),
'blue': (0, 0, 255),
'red': (255, 0, 0),
'green': (0, 255, 0),
'black': (0, 0, 0)
'lime': (0, 255, 0),
'black': (0, 0, 0),
'orange': (255, 128, 0),
'yellow': (255, 255, 0),
'cyan': (0, 255, 255),
'purple': (128, 0, 255),
'pink': (255, 0, 255),
'dark_green': (0, 128, 0),
'light_blue': (0, 128, 255),
'dark_purple': (128, 0, 128),
'gray': (128, 128, 128),
'dark_pink': (255, 0, 128),
'lime': (0, 128, 0),
'mint': (0, 255, 128),
'salad': (128, 255, 0)
}
def do_GET(self):

Loading…
Cancel
Save