summaryrefslogtreecommitdiffhomepage
path: root/Magic2/AlphaPalette.cpp
blob: 7f7c2e12bd2dc580e8c7e6a584ea7aa00838976e (plain)
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
#include "stdafx.h"

PALETTEENTRY standard_palette[256] = {
  {   0,   0,   0,   0 },
  { 128,   0,   0,   0 },
  {   0, 128,   0,   0 },
  { 128, 128,   0,   0 },
  {   0,   0, 128,   0 },
  { 128,   0, 128,   0 },
  {   0, 128, 128,   0 },
  { 192, 192, 192,   0 },
  { 192, 220, 192,   0 },
  { 166, 202, 240,   0 },
  { 186, 172, 189,   0 },
  { 167, 147, 172,   0 },
  { 143, 129, 148,   0 },
  { 122, 107, 126,   0 },
  { 100,  87, 104,   0 },
  {  55,  49,  57,   0 },
  { 247, 247, 247,   0 },
  { 240, 240, 240,   0 },
  { 232, 232, 232,   0 },
  { 225, 225, 225,   0 },
  { 217, 217, 217,   0 },
  { 210, 210, 210,   0 },
  { 202, 202, 202,   0 },
  { 195, 195, 195,   0 },
  { 188, 188, 188,   0 },
  { 180, 180, 180,   0 },
  { 173, 173, 173,   0 },
  { 165, 165, 165,   0 },
  { 158, 158, 158,   0 },
  { 150, 150, 150,   0 },
  { 143, 143, 143,   0 },
  { 136, 136, 136,   0 },
  { 128, 128, 128,   0 },
  { 121, 121, 121,   0 },
  { 113, 113, 113,   0 },
  { 106, 106, 106,   0 },
  {  98,  98,  98,   0 },
  {  91,  91,  91,   0 },
  {  83,  83,  83,   0 },
  {  76,  76,  76,   0 },
  {  69,  69,  69,   0 },
  {  61,  61,  61,   0 },
  {  54,  54,  54,   0 },
  {  42,  42,  42,   0 },
  {  31,  31,  31,   0 },
  {  21,  21,  21,   0 },
  {  10,  10,  10,   0 },
  {   5,   5,   5,   0 },
  { 149, 149, 234,   0 },
  { 134, 134, 227,   0 },
  { 117, 117, 223,   0 },
  { 104, 104, 215,   0 },
  {  87,  87, 210,   0 },
  {  70,  70, 206,   0 },
  {  49,  49, 185,   0 },
  {  45,  45, 168,   0 },
  {  36,  36, 134,   0 },
  {  31,  31, 118,   0 },
  {  27,  27, 101,   0 },
  {  22,  22,  84,   0 },
  {  18,  18,  67,   0 },
  {  13,  13,  51,   0 },
  {   9,   9,  34,   0 },
  {   4,   4,  17,   0 },
  { 159, 191, 223,   0 },
  { 143, 181, 218,   0 },
  { 128, 170, 213,   0 },
  { 112, 159, 207,   0 },
  {  96, 149, 202,   0 },
  {  85, 138, 191,   0 },
  {  69, 128, 186,   0 },
  {  68, 117, 166,   0 },
  {  62, 106, 151,   0 },
  {  55,  96, 136,   0 },
  {  53,  85, 117,   0 },
  {  47,  74, 102,   0 },
  {  43,  64,  85,   0 },
  {  35,  53,  71,   0 },
  {  29,  43,  56,   0 },
  {  21,  32,  43,   0 },
  { 184, 190, 199,   0 },
  { 171, 182, 190,   0 },
  { 159, 169, 181,   0 },
  { 148, 162, 171,   0 },
  { 136, 150, 162,   0 },
  { 123, 138, 153,   0 },
  { 112, 128, 143,   0 },
  { 102, 118, 132,   0 },
  {  92, 105, 120,   0 },
  {  86,  97, 105,   0 },
  {  77,  85,  94,   0 },
  {  67,  74,  82,   0 },
  {  57,  66,  70,   0 },
  {  48,  53,  58,   0 },
  {  38,  44,  47,   0 },
  {  29,  32,  35,   0 },
  { 154, 228, 154,   0 },
  { 137, 224, 137,   0 },
  { 120, 220, 120,   0 },
  { 112, 207, 112,   0 },
  {  96, 202,  96,   0 },
  {  80, 197,  80,   0 },
  {  64, 191,  64,   0 },
  {  58, 175,  77,   0 },
  {  53, 159,  67,   0 },
  {  48, 143,  63,   0 },
  {  43, 128,  64,   0 },
  {  37, 112,  56,   0 },
  {  32,  96,  50,   0 },
  {  27,  80,  43,   0 },
  {  21,  64,  33,   0 },
  {  16,  48,  27,   0 },
  { 186, 204, 179,   0 },
  { 175, 194, 167,   0 },
  { 164, 184, 156,   0 },
  { 152, 174, 145,   0 },
  { 140, 167, 131,   0 },
  { 130, 157, 119,   0 },
  { 119, 148, 107,   0 },
  { 111, 136,  98,   0 },
  {  99, 124,  88,   0 },
  {  88, 112,  80,   0 },
  {  81,  97,  73,   0 },
  {  70,  84,  65,   0 },
  {  61,  73,  54,   0 },
  {  51,  61,  46,   0 },
  {  40,  48,  37,   0 },
  {  30,  36,  28,   0 },
  { 209, 191, 173,   0 },
  { 202, 181, 159,   0 },
  { 191, 170, 149,   0 },
  { 183, 159, 136,   0 },
  { 175, 149, 122,   0 },
  { 167, 138, 109,   0 },
  { 159, 128,  96,   0 },
  { 147, 117,  87,   0 },
  { 129, 106,  84,   0 },
  { 116,  96,  75,   0 },
  { 103,  85,  67,   0 },
  {  90,  73,  58,   0 },
  {  78,  64,  50,   0 },
  {  64,  53,  43,   0 },
  {  51,  43,  34,   0 },
  {  38,  32,  26,   0 },
  { 209, 196, 173,   0 },
  { 202, 186, 159,   0 },
  { 191, 175, 149,   0 },
  { 183, 169, 136,   0 },
  { 175, 159, 122,   0 },
  { 167, 150, 109,   0 },
  { 159, 140,  96,   0 },
  { 143, 128,  90,   0 },
  { 131, 119,  82,   0 },
  { 116, 106,  75,   0 },
  { 103,  95,  67,   0 },
  {  90,  83,  58,   0 },
  {  78,  70,  50,   0 },
  {  64,  60,  43,   0 },
  {  51,  48,  34,   0 },
  {  38,  36,  26,   0 },
  { 255, 255, 170,   0 },
  { 255, 255, 128,   0 },
  { 255, 244, 106,   0 },
  { 249, 232, 113,   0 },
  { 255, 213,  43,   0 },
  { 255, 197,  21,   0 },
  { 255, 186,  43,   0 },
  { 255, 175,  43,   0 },
  { 255, 150,  21,   0 },
  { 255, 143,  32,   0 },
  { 244, 111,  11,   0 },
  { 215,  92,  19,   0 },
  { 190,  72,  22,   0 },
  { 168,  60,  23,   0 },
  { 146,  39,  24,   0 },
  { 128,  27,  21,   0 },
  { 244, 244, 138,   0 },
  { 242, 242, 119,   0 },
  { 248, 248,  92,   0 },
  { 240, 240, 100,   0 },
  { 247, 247,  72,   0 },
  { 239, 239,  80,   0 },
  { 237, 237,  61,   0 },
  { 236, 236,  40,   0 },
  { 235, 235,  20,   0 },
  { 215, 215,  19,   0 },
  { 194, 194,  18,   0 },
  { 175, 175,  16,   0 },
  { 156, 156,  14,   0 },
  { 136, 136,  13,   0 },
  { 117, 117,  11,   0 },
  {  98,  98,   9,   0 },
  { 215, 183, 168,   0 },
  { 211, 170, 150,   0 },
  { 205, 157, 135,   0 },
  { 199, 148, 120,   0 },
  { 193, 135, 104,   0 },
  { 187, 123,  89,   0 },
  { 174, 109,  70,   0 },
  { 151,  96,  62,   0 },
  { 128,  83,  53,   0 },
  { 105,  68,  44,   0 },
  { 143, 239, 239,   0 },
  { 124, 237, 237,   0 },
  { 106, 234, 234,   0 },
  {  87, 232, 232,   0 },
  {  70, 227, 227,   0 },
  {  47, 230, 230,   0 },
  {  32, 223, 223,   0 },
  {  29, 205, 205,   0 },
  {  26, 176, 176,   0 },
  {  20, 150, 150,   0 },
  {  17, 121, 121,   0 },
  {  13,  94,  94,   0 },
  { 223,  32, 223,   0 },
  { 204,  30, 204,   0 },
  { 186,  27, 186,   0 },
  { 168,  23, 168,   0 },
  { 149,  21, 149,   0 },
  { 131,  18, 131,   0 },
  { 112,  16, 112,   0 },
  {  94,  13,  94,   0 },
  {  74,  11,  74,   0 },
  {  56,   7,  56,   0 },
  { 249,  91,  91,   0 },
  { 248,  80,  80,   0 },
  { 247,  68,  68,   0 },
  { 247,  55,  55,   0 },
  { 247,  43,  43,   0 },
  { 245,  31,  31,   0 },
  { 244,  19,  19,   0 },
  { 240,  11,  11,   0 },
  { 228,  10,  10,   0 },
  { 217,   9,   9,   0 },
  { 204,   9,   9,   0 },
  { 192,   7,   7,   0 },
  { 180,   7,   7,   0 },
  { 168,   6,   6,   0 },
  { 156,   5,   5,   0 },
  { 145,   4,   4,   0 },
  { 131,   5,   5,   0 },
  { 118,   5,   5,   0 },
  { 106,   4,   4,   0 },
  {  94,   4,   4,   0 },
  {  80,   5,   5,   0 },
  {  66,   6,   6,   0 },
  {  53,   6,   6,   0 },
  {  41,   5,   5,   0 },
  { 128, 128, 128,   0 },
  { 255,   0,   0,   0 },
  {   0, 255,   0,   0 },
  { 255, 255,   0,   0 },
  {   0,   0, 255,   0 },
  { 255,   0, 255,   0 },
  {   0, 255, 255,   0 },
  { 255, 255, 255,   0 },
};