-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpalettes.py
34 lines (28 loc) · 893 Bytes
/
palettes.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
class EGAPalette(object):
BLACK = (0, 0, 0)
BLUE = (0, 0, 170)
GREEN = (0, 170, 0)
CYAN = (0, 170, 170)
RED = (170, 0, 0)
MAGENTA = (170, 0, 170)
BROWN = (170, 85, 0)
LIGHTGREY = (170, 170, 170)
GREY = (85, 85, 85)
LIGHTBLUE = (85, 85, 255)
LIGHTGREEN = (85, 255, 85)
LIGHTCYAN = (85, 255, 255)
LIGHTRED = (255, 85, 85)
LIGHTMAGENTA = (255, 85, 255)
YELLOW = (255, 255, 85)
WHITE = (255, 255, 255)
COLORS = (BLACK, BLUE, GREEN, CYAN, RED, MAGENTA,
BROWN, LIGHTGREY, GREY, LIGHTBLUE, LIGHTGREEN,
LIGHTCYAN, LIGHTRED, LIGHTMAGENTA, YELLOW, WHITE)
SIZE = 16
DEFAULT_VISUAL = WHITE
DEFAULT_PRIORITY = RED
DEFAULT_CONTROL = LIGHTGREY
CONTROL_OBSTACLE = BLACK
CONTROL_CONDITIONAL = BLUE
CONTROL_SIGNAL = GREEN
CONTROL_WATER = CYAN