|
|
@ -16,10 +16,11 @@ def kbv(dict_, value):
|
|
|
|
class RequestHandler(BaseHTTPRequestHandler):
|
|
|
|
class RequestHandler(BaseHTTPRequestHandler):
|
|
|
|
MATRIX_SIZE = (800, 1024)
|
|
|
|
MATRIX_SIZE = (800, 1024)
|
|
|
|
COLORS = {
|
|
|
|
COLORS = {
|
|
|
|
'w': (255, 255, 255),
|
|
|
|
'white': (255, 255, 255),
|
|
|
|
'b': (0, 0, 0),
|
|
|
|
'blue': (0, 0, 255),
|
|
|
|
'r': (255, 0, 0),
|
|
|
|
'red': (255, 0, 0),
|
|
|
|
'g': (0, 255, 0),
|
|
|
|
'green': (0, 255, 0),
|
|
|
|
|
|
|
|
'black': (0, 0, 0)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
def do_GET(self):
|
|
|
|
def do_GET(self):
|
|
|
|