-
Notifications
You must be signed in to change notification settings - Fork 0
/
color.h
276 lines (259 loc) · 6.49 KB
/
color.h
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
/* Header for color
* color.h
*/
#define _00 0 + (0 << 4)
#define _01 1 + (0 << 4)
#define _02 2 + (0 << 4)
#define _03 3 + (0 << 4)
#define _04 4 + (0 << 4)
#define _05 5 + (0 << 4)
#define _06 6 + (0 << 4)
#define _07 7 + (0 << 4)
#define _08 8 + (0 << 4)
#define _09 9 + (0 << 4)
#define _0A 10 + (0 << 4)
#define _0B 11 + (0 << 4)
#define _0C 12 + (0 << 4)
#define _0D 13 + (0 << 4)
#define _0E 14 + (0 << 4)
#define _0F 15 + (0 << 4)
#define _10 0 + (1 << 4)
#define _11 1 + (1 << 4)
#define _12 2 + (1 << 4)
#define _13 3 + (1 << 4)
#define _14 4 + (1 << 4)
#define _15 5 + (1 << 4)
#define _16 6 + (1 << 4)
#define _17 7 + (1 << 4)
#define _18 8 + (1 << 4)
#define _19 9 + (1 << 4)
#define _1A 10 + (1 << 4)
#define _1B 11 + (1 << 4)
#define _1C 12 + (1 << 4)
#define _1D 13 + (1 << 4)
#define _1E 14 + (1 << 4)
#define _1F 15 + (1 << 4)
#define _20 0 + (2 << 4)
#define _21 1 + (2 << 4)
#define _22 2 + (2 << 4)
#define _23 3 + (2 << 4)
#define _24 4 + (2 << 4)
#define _25 5 + (2 << 4)
#define _26 6 + (2 << 4)
#define _27 7 + (2 << 4)
#define _28 8 + (2 << 4)
#define _29 9 + (2 << 4)
#define _2A 10 + (2 << 4)
#define _2B 11 + (2 << 4)
#define _2C 12 + (2 << 4)
#define _2D 13 + (2 << 4)
#define _2E 14 + (2 << 4)
#define _2F 15 + (2 << 4)
#define _30 0 + (3 << 4)
#define _31 1 + (3 << 4)
#define _32 2 + (3 << 4)
#define _33 3 + (3 << 4)
#define _34 4 + (3 << 4)
#define _35 5 + (3 << 4)
#define _36 6 + (3 << 4)
#define _37 7 + (3 << 4)
#define _38 8 + (3 << 4)
#define _39 9 + (3 << 4)
#define _3A 10 + (3 << 4)
#define _3B 11 + (3 << 4)
#define _3C 12 + (3 << 4)
#define _3D 13 + (3 << 4)
#define _3E 14 + (3 << 4)
#define _3F 15 + (3 << 4)
#define _40 0 + (4 << 4)
#define _41 1 + (4 << 4)
#define _42 2 + (4 << 4)
#define _43 3 + (4 << 4)
#define _44 4 + (4 << 4)
#define _45 5 + (4 << 4)
#define _46 6 + (4 << 4)
#define _47 7 + (4 << 4)
#define _48 8 + (4 << 4)
#define _49 9 + (4 << 4)
#define _4A 10 + (4 << 4)
#define _4B 11 + (4 << 4)
#define _4C 12 + (4 << 4)
#define _4D 13 + (4 << 4)
#define _4E 14 + (4 << 4)
#define _4F 15 + (4 << 4)
#define _50 0 + (5 << 4)
#define _51 1 + (5 << 4)
#define _52 2 + (5 << 4)
#define _53 3 + (5 << 4)
#define _54 4 + (5 << 4)
#define _55 5 + (5 << 4)
#define _56 6 + (5 << 4)
#define _57 7 + (5 << 4)
#define _58 8 + (5 << 4)
#define _59 9 + (5 << 4)
#define _5A 10 + (5 << 4)
#define _5B 11 + (5 << 4)
#define _5C 12 + (5 << 4)
#define _5D 13 + (5 << 4)
#define _5E 14 + (5 << 4)
#define _5F 15 + (5 << 4)
#define _60 0 + (6 << 4)
#define _61 1 + (6 << 4)
#define _62 2 + (6 << 4)
#define _63 3 + (6 << 4)
#define _64 4 + (6 << 4)
#define _65 5 + (6 << 4)
#define _66 6 + (6 << 4)
#define _67 7 + (6 << 4)
#define _68 8 + (6 << 4)
#define _69 9 + (6 << 4)
#define _6A 10 + (6 << 4)
#define _6B 11 + (6 << 4)
#define _6C 12 + (6 << 4)
#define _6D 13 + (6 << 4)
#define _6E 14 + (6 << 4)
#define _6F 15 + (6 << 4)
#define _70 0 + (7 << 4)
#define _71 1 + (7 << 4)
#define _72 2 + (7 << 4)
#define _73 3 + (7 << 4)
#define _74 4 + (7 << 4)
#define _75 5 + (7 << 4)
#define _76 6 + (7 << 4)
#define _77 7 + (7 << 4)
#define _78 8 + (7 << 4)
#define _79 9 + (7 << 4)
#define _7A 10 + (7 << 4)
#define _7B 11 + (7 << 4)
#define _7C 12 + (7 << 4)
#define _7D 13 + (7 << 4)
#define _7E 14 + (7 << 4)
#define _7F 15 + (7 << 4)
#define _80 0 + (8 << 4)
#define _81 1 + (8 << 4)
#define _82 2 + (8 << 4)
#define _83 3 + (8 << 4)
#define _84 4 + (8 << 4)
#define _85 5 + (8 << 4)
#define _86 6 + (8 << 4)
#define _87 7 + (8 << 4)
#define _88 8 + (8 << 4)
#define _89 9 + (8 << 4)
#define _8A 10 + (8 << 4)
#define _8B 11 + (8 << 4)
#define _8C 12 + (8 << 4)
#define _8D 13 + (8 << 4)
#define _8E 14 + (8 << 4)
#define _8F 15 + (8 << 4)
#define _90 0 + (9 << 4)
#define _91 1 + (9 << 4)
#define _92 2 + (9 << 4)
#define _93 3 + (9 << 4)
#define _94 4 + (9 << 4)
#define _95 5 + (9 << 4)
#define _96 6 + (9 << 4)
#define _97 7 + (9 << 4)
#define _98 8 + (9 << 4)
#define _99 9 + (9 << 4)
#define _9A 10 + (9 << 4)
#define _9B 11 + (9 << 4)
#define _9C 12 + (9 << 4)
#define _9D 13 + (9 << 4)
#define _9E 14 + (9 << 4)
#define _9F 15 + (9 << 4)
#define _A0 0 + (10 << 4)
#define _A1 1 + (10 << 4)
#define _A2 2 + (10 << 4)
#define _A3 3 + (10 << 4)
#define _A4 4 + (10 << 4)
#define _A5 5 + (10 << 4)
#define _A6 6 + (10 << 4)
#define _A7 7 + (10 << 4)
#define _A8 8 + (10 << 4)
#define _A9 9 + (10 << 4)
#define _AA 10 + (10 << 4)
#define _AB 11 + (10 << 4)
#define _AC 12 + (10 << 4)
#define _AD 13 + (10 << 4)
#define _AE 14 + (10 << 4)
#define _AF 15 + (10 << 4)
#define _B0 0 + (11 << 4)
#define _B1 1 + (11 << 4)
#define _B2 2 + (11 << 4)
#define _B3 3 + (11 << 4)
#define _B4 4 + (11 << 4)
#define _B5 5 + (11 << 4)
#define _B6 6 + (11 << 4)
#define _B7 7 + (11 << 4)
#define _B8 8 + (11 << 4)
#define _B9 9 + (11 << 4)
#define _BA 10 + (11 << 4)
#define _BB 11 + (11 << 4)
#define _BC 12 + (11 << 4)
#define _BD 13 + (11 << 4)
#define _BE 14 + (11 << 4)
#define _BF 15 + (11 << 4)
#define _C0 0 + (12 << 4)
#define _C1 1 + (12 << 4)
#define _C2 2 + (12 << 4)
#define _C3 3 + (12 << 4)
#define _C4 4 + (12 << 4)
#define _C5 5 + (12 << 4)
#define _C6 6 + (12 << 4)
#define _C7 7 + (12 << 4)
#define _C8 8 + (12 << 4)
#define _C9 9 + (12 << 4)
#define _CA 10 + (12 << 4)
#define _CB 11 + (12 << 4)
#define _CC 12 + (12 << 4)
#define _CD 13 + (12 << 4)
#define _CE 14 + (12 << 4)
#define _CF 15 + (12 << 4)
#define _D0 0 + (13 << 4)
#define _D1 1 + (13 << 4)
#define _D2 2 + (13 << 4)
#define _D3 3 + (13 << 4)
#define _D4 4 + (13 << 4)
#define _D5 5 + (13 << 4)
#define _D6 6 + (13 << 4)
#define _D7 7 + (13 << 4)
#define _D8 8 + (13 << 4)
#define _D9 9 + (13 << 4)
#define _DA 10 + (13 << 4)
#define _DB 11 + (13 << 4)
#define _DC 12 + (13 << 4)
#define _DD 13 + (13 << 4)
#define _DE 14 + (13 << 4)
#define _DF 15 + (13 << 4)
#define _E0 0 + (14 << 4)
#define _E1 1 + (14 << 4)
#define _E2 2 + (14 << 4)
#define _E3 3 + (14 << 4)
#define _E4 4 + (14 << 4)
#define _E5 5 + (14 << 4)
#define _E6 6 + (14 << 4)
#define _E7 7 + (14 << 4)
#define _E8 8 + (14 << 4)
#define _E9 9 + (14 << 4)
#define _EA 10 + (14 << 4)
#define _EB 11 + (14 << 4)
#define _EC 12 + (14 << 4)
#define _ED 13 + (14 << 4)
#define _EE 14 + (14 << 4)
#define _EF 15 + (14 << 4)
#define _F0 0 + (15 << 4)
#define _F1 1 + (15 << 4)
#define _F2 2 + (15 << 4)
#define _F3 3 + (15 << 4)
#define _F4 4 + (15 << 4)
#define _F5 5 + (15 << 4)
#define _F6 6 + (15 << 4)
#define _F7 7 + (15 << 4)
#define _F8 8 + (15 << 4)
#define _F9 9 + (15 << 4)
#define _FA 10 + (15 << 4)
#define _FB 11 + (15 << 4)
#define _FC 12 + (15 << 4)
#define _FD 13 + (15 << 4)
#define _FE 14 + (15 << 4)
#define _FF 15 + (15 << 4)