-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathagi_constants.py
51 lines (40 loc) · 989 Bytes
/
agi_constants.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
AGI_METHOD = 1
PIL_METHOD = 2
DRAW_METHOD = PIL_METHOD
IS_COMMAND = b'\xf0'
COLOR = 240
COLOR_OFF = 241
PRIORITY = 242
PRIORITY_OFF = 243
Y_CORNER = 244
X_CORNER = 245
LINE = 246
SHORT_LINE = 247
FILL = 248
PEN = 249
PLOT = 250
END = 255
COMMAND_DEFS = {240: COLOR,
241: COLOR_OFF,
242: PRIORITY,
243: PRIORITY_OFF,
244: Y_CORNER,
245: X_CORNER,
246: LINE,
247: SHORT_LINE,
248: FILL,
249: PEN,
250: PLOT,
255: END}
COMMAND_LABELS = {240: 'COLOR',
241: 'COLOR_OFF',
242: 'PRIORITY',
243: 'PRIORITY_OFF',
244: 'Y_CORNER',
245: 'X_CORNER',
246: 'LINE',
247: 'SHORT_LINE',
248: 'FILL',
249: 'PEN',
250: 'PLOT',
255: 'END'}