comparison src/fontcolor-msw.c @ 5218:ec2ddc82f10d

Use binary search, not linear, for looking up color names, mswindows. 2010-05-29 Aidan Kehoe <kehoea@parhasard.net> * fontcolor-msw.c (mswindows_X_color_map): Sort this, case insensitively, by the color name. (colormap_t_compare): New function. (mswindows_string_to_color): When using symbolic color names, use binary search, not linear search. (mswindows_color_list): No need to start from the beginning of the array and call #'nreverse to get the colors in an intuitive order, just build the list starting from the end of the array.
author Aidan Kehoe <kehoea@parhasard.net>
date Sat, 29 May 2010 15:19:54 +0100
parents 635f4b506855
children 6c8f5574d4a1
comparison
equal deleted inserted replaced
5217:c0f518284a68 5218:ec2ddc82f10d
58 /* Colors from X11R6 "XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp" */ 58 /* Colors from X11R6 "XConsortium: rgb.txt,v 10.41 94/02/20 18:39:36 rws Exp" */
59 /* MSWindows tends to round up the numbers in its palette, ie where X uses 59 /* MSWindows tends to round up the numbers in its palette, ie where X uses
60 * 127, MSWindows uses 128. Colors commented as "Adjusted" are tweaked to 60 * 127, MSWindows uses 128. Colors commented as "Adjusted" are tweaked to
61 * match the Windows standard palette to increase the likelihood of 61 * match the Windows standard palette to increase the likelihood of
62 * mswindows_color_to_string() finding a named match. 62 * mswindows_color_to_string() finding a named match.
63
64 Sorted case-insensitively by the string name of the color.
65
63 */ 66 */
64 static const colormap_t mswindows_X_color_map[] = 67 static const colormap_t mswindows_X_color_map[] =
65 { 68 {
66 {"white" , PALETTERGB (255, 255, 255) }, 69 {"AliceBlue" , PALETTERGB (240, 248, 255) },
70 {"AntiqueWhite" , PALETTERGB (250, 235, 215) },
71 {"AntiqueWhite1" , PALETTERGB (255, 239, 219) },
72 {"AntiqueWhite2" , PALETTERGB (238, 223, 204) },
73 {"AntiqueWhite3" , PALETTERGB (205, 192, 176) },
74 {"AntiqueWhite4" , PALETTERGB (139, 131, 120) },
75 {"aquamarine" , PALETTERGB (127, 255, 212) },
76 {"aquamarine1" , PALETTERGB (127, 255, 212) },
77 {"aquamarine2" , PALETTERGB (118, 238, 198) },
78 {"aquamarine3" , PALETTERGB (102, 205, 170) },
79 {"aquamarine4" , PALETTERGB (69, 139, 116) },
80 {"azure" , PALETTERGB (240, 255, 255) },
81 {"azure1" , PALETTERGB (240, 255, 255) },
82 {"azure2" , PALETTERGB (224, 238, 238) },
83 {"azure3" , PALETTERGB (193, 205, 205) },
84 {"azure4" , PALETTERGB (131, 139, 139) },
85 {"beige" , PALETTERGB (245, 245, 220) },
86 {"bisque" , PALETTERGB (255, 228, 196) },
87 {"bisque1" , PALETTERGB (255, 228, 196) },
88 {"bisque2" , PALETTERGB (238, 213, 183) },
89 {"bisque3" , PALETTERGB (205, 183, 158) },
90 {"bisque4" , PALETTERGB (139, 125, 107) },
67 {"black" , PALETTERGB (0, 0, 0) }, 91 {"black" , PALETTERGB (0, 0, 0) },
68 {"snow" , PALETTERGB (255, 250, 250) }, 92 {"BlanchedAlmond" , PALETTERGB (255, 235, 205) },
93 {"blue" , PALETTERGB (0, 0, 255) },
94 {"blue1" , PALETTERGB (0, 0, 255) },
95 {"blue2" , PALETTERGB (0, 0, 238) },
96 {"blue3" , PALETTERGB (0, 0, 205) },
97 {"blue4" , PALETTERGB (0, 0, 139) },
98 {"BlueViolet" , PALETTERGB (138, 43, 226) },
99 {"brown" , PALETTERGB (165, 42, 42) },
100 {"brown1" , PALETTERGB (255, 64, 64) },
101 {"brown2" , PALETTERGB (238, 59, 59) },
102 {"brown3" , PALETTERGB (205, 51, 51) },
103 {"brown4" , PALETTERGB (139, 35, 35) },
104 {"burlywood" , PALETTERGB (222, 184, 135) },
105 {"burlywood1" , PALETTERGB (255, 211, 155) },
106 {"burlywood2" , PALETTERGB (238, 197, 145) },
107 {"burlywood3" , PALETTERGB (205, 170, 125) },
108 {"burlywood4" , PALETTERGB (139, 115, 85) },
109 {"CadetBlue" , PALETTERGB (95, 158, 160) },
110 {"CadetBlue1" , PALETTERGB (152, 245, 255) },
111 {"CadetBlue2" , PALETTERGB (144, 220, 240) }, /* Adjusted */
112 {"CadetBlue3" , PALETTERGB (122, 197, 205) },
113 {"CadetBlue4" , PALETTERGB (83, 134, 139) },
114 {"chartreuse" , PALETTERGB (127, 255, 0) },
115 {"chartreuse1" , PALETTERGB (127, 255, 0) },
116 {"chartreuse2" , PALETTERGB (118, 238, 0) },
117 {"chartreuse3" , PALETTERGB (102, 205, 0) },
118 {"chartreuse4" , PALETTERGB (69, 139, 0) },
119 {"chocolate" , PALETTERGB (210, 105, 30) },
120 {"chocolate1" , PALETTERGB (255, 127, 36) },
121 {"chocolate2" , PALETTERGB (238, 118, 33) },
122 {"chocolate3" , PALETTERGB (205, 102, 29) },
123 {"chocolate4" , PALETTERGB (139, 69, 19) },
124 {"coral" , PALETTERGB (255, 127, 80) },
125 {"coral1" , PALETTERGB (255, 114, 86) },
126 {"coral2" , PALETTERGB (238, 106, 80) },
127 {"coral3" , PALETTERGB (205, 91, 69) },
128 {"coral4" , PALETTERGB (139, 62, 47) },
129 {"CornflowerBlue" , PALETTERGB (100, 149, 237) },
130 {"cornsilk" , PALETTERGB (255, 248, 220) },
131 {"cornsilk1" , PALETTERGB (255, 248, 220) },
132 {"cornsilk2" , PALETTERGB (238, 232, 205) },
133 {"cornsilk3" , PALETTERGB (205, 200, 177) },
134 {"cornsilk4" , PALETTERGB (139, 136, 120) },
135 {"cyan" , PALETTERGB (0, 255, 255) },
136 {"cyan1" , PALETTERGB (0, 255, 255) },
137 {"cyan2" , PALETTERGB (0, 238, 238) },
138 {"cyan3" , PALETTERGB (0, 205, 205) },
139 {"cyan4" , PALETTERGB (0, 139, 139) },
140 {"DarkBlue" , PALETTERGB (0, 0, 128) }, /* Adjusted == Navy */
141 {"DarkCyan" , PALETTERGB (0, 128, 128) }, /* Adjusted */
142 {"DarkGoldenrod" , PALETTERGB (184, 134, 11) },
143 {"DarkGoldenrod1" , PALETTERGB (255, 185, 15) },
144 {"DarkGoldenrod2" , PALETTERGB (238, 173, 14) },
145 {"DarkGoldenrod3" , PALETTERGB (205, 149, 12) },
146 {"DarkGoldenrod4" , PALETTERGB (139, 101, 8) },
147 {"DarkGray" , PALETTERGB (169, 169, 169) },
148 {"DarkGreen" , PALETTERGB (0, 128, 0) }, /* Adjusted */
149 {"DarkGrey" , PALETTERGB (169, 169, 169) },
150 {"DarkKhaki" , PALETTERGB (189, 183, 107) },
151 {"DarkMagenta" , PALETTERGB (128, 0, 128) }, /* Adjusted */
152 {"DarkOliveGreen" , PALETTERGB (85, 107, 47) },
153 {"DarkOliveGreen1" , PALETTERGB (202, 255, 112) },
154 {"DarkOliveGreen2" , PALETTERGB (188, 238, 104) },
155 {"DarkOliveGreen3" , PALETTERGB (162, 205, 90) },
156 {"DarkOliveGreen4" , PALETTERGB (110, 139, 61) },
157 {"DarkOrange" , PALETTERGB (255, 140, 0) },
158 {"DarkOrange1" , PALETTERGB (255, 127, 0) },
159 {"DarkOrange2" , PALETTERGB (238, 118, 0) },
160 {"DarkOrange3" , PALETTERGB (205, 102, 0) },
161 {"DarkOrange4" , PALETTERGB (139, 69, 0) },
162 {"DarkOrchid" , PALETTERGB (153, 50, 204) },
163 {"DarkOrchid1" , PALETTERGB (191, 62, 255) },
164 {"DarkOrchid2" , PALETTERGB (178, 58, 238) },
165 {"DarkOrchid3" , PALETTERGB (154, 50, 205) },
166 {"DarkOrchid4" , PALETTERGB (104, 34, 139) },
167 {"DarkRed" , PALETTERGB (128, 0, 0) }, /* Adjusted */
168 {"DarkSalmon" , PALETTERGB (233, 150, 122) },
169 {"DarkSeaGreen" , PALETTERGB (143, 188, 143) },
170 {"DarkSeaGreen1" , PALETTERGB (193, 255, 193) },
171 {"DarkSeaGreen2" , PALETTERGB (180, 238, 180) },
172 {"DarkSeaGreen3" , PALETTERGB (155, 205, 155) },
173 {"DarkSeaGreen4" , PALETTERGB (105, 139, 105) },
174 {"DarkSlateBlue" , PALETTERGB (72, 61, 139) },
175 {"DarkSlateGray" , PALETTERGB (47, 79, 79) },
176 {"DarkSlateGray1" , PALETTERGB (151, 255, 255) },
177 {"DarkSlateGray2" , PALETTERGB (141, 238, 238) },
178 {"DarkSlateGray3" , PALETTERGB (121, 205, 205) },
179 {"DarkSlateGray4" , PALETTERGB (82, 139, 139) },
180 {"DarkSlateGrey" , PALETTERGB (47, 79, 79) },
181 {"DarkTurquoise" , PALETTERGB (0, 206, 209) },
182 {"DarkViolet" , PALETTERGB (148, 0, 211) },
183 {"DarkYellow" , PALETTERGB (128, 128, 0) },
184 {"DeepPink" , PALETTERGB (255, 20, 147) },
185 {"DeepPink1" , PALETTERGB (255, 20, 147) },
186 {"DeepPink2" , PALETTERGB (238, 18, 137) },
187 {"DeepPink3" , PALETTERGB (205, 16, 118) },
188 {"DeepPink4" , PALETTERGB (139, 10, 80) },
189 {"DeepSkyBlue" , PALETTERGB (0, 191, 255) },
190 {"DeepSkyBlue1" , PALETTERGB (0, 191, 255) },
191 {"DeepSkyBlue2" , PALETTERGB (0, 178, 238) },
192 {"DeepSkyBlue3" , PALETTERGB (0, 154, 205) },
193 {"DeepSkyBlue4" , PALETTERGB (0, 104, 139) },
194 {"DimGray" , PALETTERGB (105, 105, 105) },
195 {"DimGrey" , PALETTERGB (105, 105, 105) },
196 {"DodgerBlue" , PALETTERGB (30, 144, 255) },
197 {"DodgerBlue1" , PALETTERGB (30, 144, 255) },
198 {"DodgerBlue2" , PALETTERGB (28, 134, 238) },
199 {"DodgerBlue3" , PALETTERGB (24, 116, 205) },
200 {"DodgerBlue4" , PALETTERGB (16, 78, 139) },
201 {"firebrick" , PALETTERGB (178, 34, 34) },
202 {"firebrick1" , PALETTERGB (255, 48, 48) },
203 {"firebrick2" , PALETTERGB (238, 44, 44) },
204 {"firebrick3" , PALETTERGB (205, 38, 38) },
205 {"firebrick4" , PALETTERGB (139, 26, 26) },
206 {"FloralWhite" , PALETTERGB (255, 250, 240) },
207 {"ForestGreen" , PALETTERGB (34, 139, 34) },
208 {"gainsboro" , PALETTERGB (220, 220, 220) },
69 {"GhostWhite" , PALETTERGB (248, 248, 255) }, 209 {"GhostWhite" , PALETTERGB (248, 248, 255) },
70 {"WhiteSmoke" , PALETTERGB (245, 245, 245) }, 210 {"gold" , PALETTERGB (255, 215, 0) },
71 {"gainsboro" , PALETTERGB (220, 220, 220) }, 211 {"gold1" , PALETTERGB (255, 215, 0) },
72 {"FloralWhite" , PALETTERGB (255, 250, 240) }, 212 {"gold2" , PALETTERGB (238, 201, 0) },
73 {"OldLace" , PALETTERGB (253, 245, 230) }, 213 {"gold3" , PALETTERGB (205, 173, 0) },
74 {"linen" , PALETTERGB (250, 240, 230) }, 214 {"gold4" , PALETTERGB (139, 117, 0) },
75 {"AntiqueWhite" , PALETTERGB (250, 235, 215) }, 215 {"goldenrod" , PALETTERGB (218, 165, 32) },
76 {"PapayaWhip" , PALETTERGB (255, 239, 213) }, 216 {"goldenrod1" , PALETTERGB (255, 193, 37) },
77 {"BlanchedAlmond" , PALETTERGB (255, 235, 205) }, 217 {"goldenrod2" , PALETTERGB (238, 180, 34) },
78 {"bisque" , PALETTERGB (255, 228, 196) }, 218 {"goldenrod3" , PALETTERGB (205, 155, 29) },
79 {"PeachPuff" , PALETTERGB (255, 218, 185) }, 219 {"goldenrod4" , PALETTERGB (139, 105, 20) },
80 {"NavajoWhite" , PALETTERGB (255, 222, 173) }, 220 {"gray" , PALETTERGB (190, 190, 190) },
81 {"moccasin" , PALETTERGB (255, 228, 181) }, 221 {"gray0" , PALETTERGB (0, 0, 0) },
82 {"cornsilk" , PALETTERGB (255, 248, 220) }, 222 {"gray1" , PALETTERGB (3, 3, 3) },
223 {"gray10" , PALETTERGB (26, 26, 26) },
224 {"gray100" , PALETTERGB (255, 255, 255) },
225 {"gray11" , PALETTERGB (28, 28, 28) },
226 {"gray12" , PALETTERGB (31, 31, 31) },
227 {"gray13" , PALETTERGB (33, 33, 33) },
228 {"gray14" , PALETTERGB (36, 36, 36) },
229 {"gray15" , PALETTERGB (38, 38, 38) },
230 {"gray16" , PALETTERGB (41, 41, 41) },
231 {"gray17" , PALETTERGB (43, 43, 43) },
232 {"gray18" , PALETTERGB (46, 46, 46) },
233 {"gray19" , PALETTERGB (48, 48, 48) },
234 {"gray2" , PALETTERGB (5, 5, 5) },
235 {"gray20" , PALETTERGB (51, 51, 51) },
236 {"gray21" , PALETTERGB (54, 54, 54) },
237 {"gray22" , PALETTERGB (56, 56, 56) },
238 {"gray23" , PALETTERGB (59, 59, 59) },
239 {"gray24" , PALETTERGB (61, 61, 61) },
240 {"gray25" , PALETTERGB (64, 64, 64) },
241 {"gray26" , PALETTERGB (66, 66, 66) },
242 {"gray27" , PALETTERGB (69, 69, 69) },
243 {"gray28" , PALETTERGB (71, 71, 71) },
244 {"gray29" , PALETTERGB (74, 74, 74) },
245 {"gray3" , PALETTERGB (8, 8, 8) },
246 {"gray30" , PALETTERGB (77, 77, 77) },
247 {"gray31" , PALETTERGB (79, 79, 79) },
248 {"gray32" , PALETTERGB (82, 82, 82) },
249 {"gray33" , PALETTERGB (84, 84, 84) },
250 {"gray34" , PALETTERGB (87, 87, 87) },
251 {"gray35" , PALETTERGB (89, 89, 89) },
252 {"gray36" , PALETTERGB (92, 92, 92) },
253 {"gray37" , PALETTERGB (94, 94, 94) },
254 {"gray38" , PALETTERGB (97, 97, 97) },
255 {"gray39" , PALETTERGB (99, 99, 99) },
256 {"gray4" , PALETTERGB (10, 10, 10) },
257 {"gray40" , PALETTERGB (102, 102, 102) },
258 {"gray41" , PALETTERGB (105, 105, 105) },
259 {"gray42" , PALETTERGB (107, 107, 107) },
260 {"gray43" , PALETTERGB (110, 110, 110) },
261 {"gray44" , PALETTERGB (112, 112, 112) },
262 {"gray45" , PALETTERGB (115, 115, 115) },
263 {"gray46" , PALETTERGB (117, 117, 117) },
264 {"gray47" , PALETTERGB (120, 120, 120) },
265 {"gray48" , PALETTERGB (122, 122, 122) },
266 {"gray49" , PALETTERGB (125, 125, 125) },
267 {"gray5" , PALETTERGB (13, 13, 13) },
268 {"gray50" , PALETTERGB (128, 128, 128) }, /* Adjusted */
269 {"gray51" , PALETTERGB (130, 130, 130) },
270 {"gray52" , PALETTERGB (133, 133, 133) },
271 {"gray53" , PALETTERGB (135, 135, 135) },
272 {"gray54" , PALETTERGB (138, 138, 138) },
273 {"gray55" , PALETTERGB (140, 140, 140) },
274 {"gray56" , PALETTERGB (143, 143, 143) },
275 {"gray57" , PALETTERGB (145, 145, 145) },
276 {"gray58" , PALETTERGB (148, 148, 148) },
277 {"gray59" , PALETTERGB (150, 150, 150) },
278 {"gray6" , PALETTERGB (15, 15, 15) },
279 {"gray60" , PALETTERGB (153, 153, 153) },
280 {"gray61" , PALETTERGB (156, 156, 156) },
281 {"gray62" , PALETTERGB (158, 158, 158) },
282 {"gray63" , PALETTERGB (161, 161, 161) },
283 {"gray64" , PALETTERGB (163, 163, 163) },
284 {"gray65" , PALETTERGB (166, 166, 166) },
285 {"gray66" , PALETTERGB (168, 168, 168) },
286 {"gray67" , PALETTERGB (171, 171, 171) },
287 {"gray68" , PALETTERGB (173, 173, 173) },
288 {"gray69" , PALETTERGB (176, 176, 176) },
289 {"gray7" , PALETTERGB (18, 18, 18) },
290 {"gray70" , PALETTERGB (179, 179, 179) },
291 {"gray71" , PALETTERGB (181, 181, 181) },
292 {"gray72" , PALETTERGB (184, 184, 184) },
293 {"gray73" , PALETTERGB (186, 186, 186) },
294 {"gray74" , PALETTERGB (189, 189, 189) },
295 {"gray75" , PALETTERGB (192, 192, 192) }, /* Adjusted */
296 {"gray76" , PALETTERGB (194, 194, 194) },
297 {"gray77" , PALETTERGB (196, 196, 196) },
298 {"gray78" , PALETTERGB (199, 199, 199) },
299 {"gray79" , PALETTERGB (201, 201, 201) },
300 {"gray8" , PALETTERGB (20, 20, 20) },
301 {"gray80" , PALETTERGB (204, 204, 204) },
302 {"gray81" , PALETTERGB (207, 207, 207) },
303 {"gray82" , PALETTERGB (209, 209, 209) },
304 {"gray83" , PALETTERGB (212, 212, 212) },
305 {"gray84" , PALETTERGB (214, 214, 214) },
306 {"gray85" , PALETTERGB (217, 217, 217) },
307 {"gray86" , PALETTERGB (219, 219, 219) },
308 {"gray87" , PALETTERGB (222, 222, 222) },
309 {"gray88" , PALETTERGB (224, 224, 224) },
310 {"gray89" , PALETTERGB (227, 227, 227) },
311 {"gray9" , PALETTERGB (23, 23, 23) },
312 {"gray90" , PALETTERGB (229, 229, 229) },
313 {"gray91" , PALETTERGB (232, 232, 232) },
314 {"gray92" , PALETTERGB (235, 235, 235) },
315 {"gray93" , PALETTERGB (237, 237, 237) },
316 {"gray94" , PALETTERGB (240, 240, 240) },
317 {"gray95" , PALETTERGB (242, 242, 242) },
318 {"gray96" , PALETTERGB (245, 245, 245) },
319 {"gray97" , PALETTERGB (247, 247, 247) },
320 {"gray98" , PALETTERGB (250, 250, 250) },
321 {"gray99" , PALETTERGB (252, 252, 252) },
322 {"green" , PALETTERGB (0, 255, 0) },
323 {"green1" , PALETTERGB (0, 255, 0) },
324 {"green2" , PALETTERGB (0, 238, 0) },
325 {"green3" , PALETTERGB (0, 205, 0) },
326 {"green4" , PALETTERGB (0, 139, 0) },
327 {"GreenYellow" , PALETTERGB (173, 255, 47) },
328 {"grey" , PALETTERGB (190, 190, 190) },
329 {"grey0" , PALETTERGB (0, 0, 0) },
330 {"grey1" , PALETTERGB (3, 3, 3) },
331 {"grey10" , PALETTERGB (26, 26, 26) },
332 {"grey100" , PALETTERGB (255, 255, 255) },
333 {"grey11" , PALETTERGB (28, 28, 28) },
334 {"grey12" , PALETTERGB (31, 31, 31) },
335 {"grey13" , PALETTERGB (33, 33, 33) },
336 {"grey14" , PALETTERGB (36, 36, 36) },
337 {"grey15" , PALETTERGB (38, 38, 38) },
338 {"grey16" , PALETTERGB (41, 41, 41) },
339 {"grey17" , PALETTERGB (43, 43, 43) },
340 {"grey18" , PALETTERGB (46, 46, 46) },
341 {"grey19" , PALETTERGB (48, 48, 48) },
342 {"grey2" , PALETTERGB (5, 5, 5) },
343 {"grey20" , PALETTERGB (51, 51, 51) },
344 {"grey21" , PALETTERGB (54, 54, 54) },
345 {"grey22" , PALETTERGB (56, 56, 56) },
346 {"grey23" , PALETTERGB (59, 59, 59) },
347 {"grey24" , PALETTERGB (61, 61, 61) },
348 {"grey25" , PALETTERGB (64, 64, 64) },
349 {"grey26" , PALETTERGB (66, 66, 66) },
350 {"grey27" , PALETTERGB (69, 69, 69) },
351 {"grey28" , PALETTERGB (71, 71, 71) },
352 {"grey29" , PALETTERGB (74, 74, 74) },
353 {"grey3" , PALETTERGB (8, 8, 8) },
354 {"grey30" , PALETTERGB (77, 77, 77) },
355 {"grey31" , PALETTERGB (79, 79, 79) },
356 {"grey32" , PALETTERGB (82, 82, 82) },
357 {"grey33" , PALETTERGB (84, 84, 84) },
358 {"grey34" , PALETTERGB (87, 87, 87) },
359 {"grey35" , PALETTERGB (89, 89, 89) },
360 {"grey36" , PALETTERGB (92, 92, 92) },
361 {"grey37" , PALETTERGB (94, 94, 94) },
362 {"grey38" , PALETTERGB (97, 97, 97) },
363 {"grey39" , PALETTERGB (99, 99, 99) },
364 {"grey4" , PALETTERGB (10, 10, 10) },
365 {"grey40" , PALETTERGB (102, 102, 102) },
366 {"grey41" , PALETTERGB (105, 105, 105) },
367 {"grey42" , PALETTERGB (107, 107, 107) },
368 {"grey43" , PALETTERGB (110, 110, 110) },
369 {"grey44" , PALETTERGB (112, 112, 112) },
370 {"grey45" , PALETTERGB (115, 115, 115) },
371 {"grey46" , PALETTERGB (117, 117, 117) },
372 {"grey47" , PALETTERGB (120, 120, 120) },
373 {"grey48" , PALETTERGB (122, 122, 122) },
374 {"grey49" , PALETTERGB (125, 125, 125) },
375 {"grey5" , PALETTERGB (13, 13, 13) },
376 {"grey50" , PALETTERGB (128, 128, 128) }, /* Adjusted */
377 {"grey51" , PALETTERGB (130, 130, 130) },
378 {"grey52" , PALETTERGB (133, 133, 133) },
379 {"grey53" , PALETTERGB (135, 135, 135) },
380 {"grey54" , PALETTERGB (138, 138, 138) },
381 {"grey55" , PALETTERGB (140, 140, 140) },
382 {"grey56" , PALETTERGB (143, 143, 143) },
383 {"grey57" , PALETTERGB (145, 145, 145) },
384 {"grey58" , PALETTERGB (148, 148, 148) },
385 {"grey59" , PALETTERGB (150, 150, 150) },
386 {"grey6" , PALETTERGB (15, 15, 15) },
387 {"grey60" , PALETTERGB (153, 153, 153) },
388 {"grey61" , PALETTERGB (156, 156, 156) },
389 {"grey62" , PALETTERGB (158, 158, 158) },
390 {"grey63" , PALETTERGB (161, 161, 161) },
391 {"grey64" , PALETTERGB (163, 163, 163) },
392 {"grey65" , PALETTERGB (166, 166, 166) },
393 {"grey66" , PALETTERGB (168, 168, 168) },
394 {"grey67" , PALETTERGB (171, 171, 171) },
395 {"grey68" , PALETTERGB (173, 173, 173) },
396 {"grey69" , PALETTERGB (176, 176, 176) },
397 {"grey7" , PALETTERGB (18, 18, 18) },
398 {"grey70" , PALETTERGB (179, 179, 179) },
399 {"grey71" , PALETTERGB (181, 181, 181) },
400 {"grey72" , PALETTERGB (184, 184, 184) },
401 {"grey73" , PALETTERGB (186, 186, 186) },
402 {"grey74" , PALETTERGB (189, 189, 189) },
403 {"grey75" , PALETTERGB (192, 192, 192) }, /* Adjusted */
404 {"grey76" , PALETTERGB (194, 194, 194) },
405 {"grey77" , PALETTERGB (196, 196, 196) },
406 {"grey78" , PALETTERGB (199, 199, 199) },
407 {"grey79" , PALETTERGB (201, 201, 201) },
408 {"grey8" , PALETTERGB (20, 20, 20) },
409 {"grey80" , PALETTERGB (204, 204, 204) },
410 {"grey81" , PALETTERGB (207, 207, 207) },
411 {"grey82" , PALETTERGB (209, 209, 209) },
412 {"grey83" , PALETTERGB (212, 212, 212) },
413 {"grey84" , PALETTERGB (214, 214, 214) },
414 {"grey85" , PALETTERGB (217, 217, 217) },
415 {"grey86" , PALETTERGB (219, 219, 219) },
416 {"grey87" , PALETTERGB (222, 222, 222) },
417 {"grey88" , PALETTERGB (224, 224, 224) },
418 {"grey89" , PALETTERGB (227, 227, 227) },
419 {"grey9" , PALETTERGB (23, 23, 23) },
420 {"grey90" , PALETTERGB (229, 229, 229) },
421 {"grey91" , PALETTERGB (232, 232, 232) },
422 {"grey92" , PALETTERGB (235, 235, 235) },
423 {"grey93" , PALETTERGB (237, 237, 237) },
424 {"grey94" , PALETTERGB (240, 240, 240) },
425 {"grey95" , PALETTERGB (242, 242, 242) },
426 {"grey96" , PALETTERGB (245, 245, 245) },
427 {"grey97" , PALETTERGB (247, 247, 247) },
428 {"grey98" , PALETTERGB (250, 250, 250) },
429 {"grey99" , PALETTERGB (252, 252, 252) },
430 {"honeydew" , PALETTERGB (240, 255, 240) },
431 {"honeydew1" , PALETTERGB (240, 255, 240) },
432 {"honeydew2" , PALETTERGB (224, 238, 224) },
433 {"honeydew3" , PALETTERGB (193, 205, 193) },
434 {"honeydew4" , PALETTERGB (131, 139, 131) },
435 {"HotPink" , PALETTERGB (255, 105, 180) },
436 {"HotPink1" , PALETTERGB (255, 110, 180) },
437 {"HotPink2" , PALETTERGB (238, 106, 167) },
438 {"HotPink3" , PALETTERGB (205, 96, 144) },
439 {"HotPink4" , PALETTERGB (139, 58, 98) },
440 {"IndianRed" , PALETTERGB (205, 92, 92) },
441 {"IndianRed1" , PALETTERGB (255, 106, 106) },
442 {"IndianRed2" , PALETTERGB (238, 99, 99) },
443 {"IndianRed3" , PALETTERGB (205, 85, 85) },
444 {"IndianRed4" , PALETTERGB (139, 58, 58) },
83 {"ivory" , PALETTERGB (255, 255, 240) }, 445 {"ivory" , PALETTERGB (255, 255, 240) },
84 {"LemonChiffon" , PALETTERGB (255, 250, 205) }, 446 {"ivory1" , PALETTERGB (255, 255, 240) },
85 {"seashell" , PALETTERGB (255, 245, 238) }, 447 {"ivory2" , PALETTERGB (240, 240, 208) }, /* Adjusted */
86 {"honeydew" , PALETTERGB (240, 255, 240) }, 448 {"ivory3" , PALETTERGB (205, 205, 193) },
87 {"MintCream" , PALETTERGB (245, 255, 250) }, 449 {"ivory4" , PALETTERGB (139, 139, 131) },
88 {"azure" , PALETTERGB (240, 255, 255) }, 450 {"khaki" , PALETTERGB (240, 230, 140) },
89 {"AliceBlue" , PALETTERGB (240, 248, 255) }, 451 {"khaki1" , PALETTERGB (255, 246, 143) },
452 {"khaki2" , PALETTERGB (238, 230, 133) },
453 {"khaki3" , PALETTERGB (205, 198, 115) },
454 {"khaki4" , PALETTERGB (139, 134, 78) },
90 {"lavender" , PALETTERGB (230, 230, 250) }, 455 {"lavender" , PALETTERGB (230, 230, 250) },
91 {"LavenderBlush" , PALETTERGB (255, 240, 245) }, 456 {"LavenderBlush" , PALETTERGB (255, 240, 245) },
92 {"MistyRose" , PALETTERGB (255, 228, 225) }, 457 {"LavenderBlush1" , PALETTERGB (255, 240, 245) },
93 {"DarkSlateGray" , PALETTERGB (47, 79, 79) }, 458 {"LavenderBlush2" , PALETTERGB (238, 224, 229) },
94 {"DarkSlateGrey" , PALETTERGB (47, 79, 79) }, 459 {"LavenderBlush3" , PALETTERGB (205, 193, 197) },
95 {"DimGray" , PALETTERGB (105, 105, 105) }, 460 {"LavenderBlush4" , PALETTERGB (139, 131, 134) },
96 {"DimGrey" , PALETTERGB (105, 105, 105) }, 461 {"LawnGreen" , PALETTERGB (124, 252, 0) },
97 {"SlateGray" , PALETTERGB (112, 128, 144) }, 462 {"LemonChiffon" , PALETTERGB (255, 250, 205) },
98 {"SlateGrey" , PALETTERGB (112, 128, 144) }, 463 {"LemonChiffon1" , PALETTERGB (255, 250, 205) },
464 {"LemonChiffon2" , PALETTERGB (238, 233, 191) },
465 {"LemonChiffon3" , PALETTERGB (205, 201, 165) },
466 {"LemonChiffon4" , PALETTERGB (139, 137, 112) },
467 {"LightBlue" , PALETTERGB (173, 216, 230) },
468 {"LightBlue1" , PALETTERGB (191, 239, 255) },
469 {"LightBlue2" , PALETTERGB (178, 223, 238) },
470 {"LightBlue3" , PALETTERGB (154, 192, 205) },
471 {"LightBlue4" , PALETTERGB (104, 131, 139) },
472 {"LightCoral" , PALETTERGB (240, 128, 128) },
473 {"LightCyan" , PALETTERGB (224, 255, 255) },
474 {"LightCyan1" , PALETTERGB (224, 255, 255) },
475 {"LightCyan2" , PALETTERGB (209, 238, 238) },
476 {"LightCyan3" , PALETTERGB (180, 205, 205) },
477 {"LightCyan4" , PALETTERGB (122, 139, 139) },
478 {"LightGoldenrod" , PALETTERGB (238, 221, 130) },
479 {"LightGoldenrod1" , PALETTERGB (255, 236, 139) },
480 {"LightGoldenrod2" , PALETTERGB (238, 220, 130) },
481 {"LightGoldenrod3" , PALETTERGB (205, 190, 112) },
482 {"LightGoldenrod4" , PALETTERGB (139, 129, 76) },
483 {"LightGoldenrodYellow", PALETTERGB (250, 250, 210) },
484 {"LightGray" , PALETTERGB (211, 211, 211) },
485 {"LightGreen" , PALETTERGB (144, 238, 144) },
486 {"LightGrey" , PALETTERGB (211, 211, 211) },
487 {"LightPink" , PALETTERGB (255, 182, 193) },
488 {"LightPink1" , PALETTERGB (255, 174, 185) },
489 {"LightPink2" , PALETTERGB (238, 162, 173) },
490 {"LightPink3" , PALETTERGB (205, 140, 149) },
491 {"LightPink4" , PALETTERGB (139, 95, 101) },
492 {"LightSalmon" , PALETTERGB (255, 160, 122) },
493 {"LightSalmon1" , PALETTERGB (255, 160, 122) },
494 {"LightSalmon2" , PALETTERGB (238, 149, 114) },
495 {"LightSalmon3" , PALETTERGB (205, 129, 98) },
496 {"LightSalmon4" , PALETTERGB (139, 87, 66) },
497 {"LightSeaGreen" , PALETTERGB (32, 178, 170) },
498 {"LightSkyBlue" , PALETTERGB (135, 206, 250) },
499 {"LightSkyBlue1" , PALETTERGB (176, 226, 255) },
500 {"LightSkyBlue2" , PALETTERGB (164, 211, 238) },
501 {"LightSkyBlue3" , PALETTERGB (141, 182, 205) },
502 {"LightSkyBlue4" , PALETTERGB (96, 123, 139) },
503 {"LightSlateBlue" , PALETTERGB (132, 112, 255) },
99 {"LightSlateGray" , PALETTERGB (119, 136, 153) }, 504 {"LightSlateGray" , PALETTERGB (119, 136, 153) },
100 {"LightSlateGrey" , PALETTERGB (119, 136, 153) }, 505 {"LightSlateGrey" , PALETTERGB (119, 136, 153) },
101 {"gray" , PALETTERGB (190, 190, 190) }, 506 {"LightSteelBlue" , PALETTERGB (176, 196, 222) },
102 {"grey" , PALETTERGB (190, 190, 190) }, 507 {"LightSteelBlue1" , PALETTERGB (202, 225, 255) },
103 {"LightGrey" , PALETTERGB (211, 211, 211) }, 508 {"LightSteelBlue2" , PALETTERGB (188, 210, 238) },
104 {"LightGray" , PALETTERGB (211, 211, 211) }, 509 {"LightSteelBlue3" , PALETTERGB (162, 181, 205) },
510 {"LightSteelBlue4" , PALETTERGB (110, 123, 139) },
511 {"LightYellow" , PALETTERGB (255, 255, 224) },
512 {"LightYellow" , PALETTERGB (255, 255, 225) }, /* Adjusted */
513 {"LightYellow1" , PALETTERGB (255, 255, 224) },
514 {"LightYellow2" , PALETTERGB (238, 238, 209) },
515 {"LightYellow3" , PALETTERGB (205, 205, 180) },
516 {"LightYellow4" , PALETTERGB (139, 139, 122) },
517 {"LimeGreen" , PALETTERGB (50, 205, 50) },
518 {"linen" , PALETTERGB (250, 240, 230) },
519 {"magenta" , PALETTERGB (255, 0, 255) },
520 {"magenta1" , PALETTERGB (255, 0, 255) },
521 {"magenta2" , PALETTERGB (238, 0, 238) },
522 {"magenta3" , PALETTERGB (205, 0, 205) },
523 {"magenta4" , PALETTERGB (139, 0, 139) },
524 {"maroon" , PALETTERGB (176, 48, 96) },
525 {"maroon1" , PALETTERGB (255, 52, 179) },
526 {"maroon2" , PALETTERGB (238, 48, 167) },
527 {"maroon3" , PALETTERGB (205, 41, 144) },
528 {"maroon4" , PALETTERGB (139, 28, 98) },
529 {"MediumAquamarine" , PALETTERGB (102, 205, 170) },
530 {"MediumBlue" , PALETTERGB (0, 0, 205) },
531 {"MediumOrchid" , PALETTERGB (186, 85, 211) },
532 {"MediumOrchid1" , PALETTERGB (224, 102, 255) },
533 {"MediumOrchid2" , PALETTERGB (209, 95, 238) },
534 {"MediumOrchid3" , PALETTERGB (180, 82, 205) },
535 {"MediumOrchid4" , PALETTERGB (122, 55, 139) },
536 {"MediumPurple" , PALETTERGB (147, 112, 219) },
537 {"MediumPurple1" , PALETTERGB (171, 130, 255) },
538 {"MediumPurple2" , PALETTERGB (159, 121, 238) },
539 {"MediumPurple3" , PALETTERGB (137, 104, 205) },
540 {"MediumPurple4" , PALETTERGB (93, 71, 139) },
541 {"MediumSeaGreen" , PALETTERGB (60, 179, 113) },
542 {"MediumSlateBlue" , PALETTERGB (123, 104, 238) },
543 {"MediumSpringGreen" , PALETTERGB (0, 250, 154) },
544 {"MediumTurquoise" , PALETTERGB (72, 209, 204) },
545 {"MediumVioletRed" , PALETTERGB (199, 21, 133) },
105 {"MidnightBlue" , PALETTERGB (25, 25, 112) }, 546 {"MidnightBlue" , PALETTERGB (25, 25, 112) },
547 {"MintCream" , PALETTERGB (245, 255, 250) },
548 {"MistyRose" , PALETTERGB (255, 228, 225) },
549 {"MistyRose1" , PALETTERGB (255, 228, 225) },
550 {"MistyRose2" , PALETTERGB (238, 213, 210) },
551 {"MistyRose3" , PALETTERGB (205, 183, 181) },
552 {"MistyRose4" , PALETTERGB (139, 125, 123) },
553 {"moccasin" , PALETTERGB (255, 228, 181) },
554 {"NavajoWhite" , PALETTERGB (255, 222, 173) },
555 {"NavajoWhite1" , PALETTERGB (255, 222, 173) },
556 {"NavajoWhite2" , PALETTERGB (238, 207, 161) },
557 {"NavajoWhite3" , PALETTERGB (205, 179, 139) },
558 {"NavajoWhite4" , PALETTERGB (139, 121, 94) },
106 {"navy" , PALETTERGB (0, 0, 128) }, 559 {"navy" , PALETTERGB (0, 0, 128) },
107 {"NavyBlue" , PALETTERGB (0, 0, 128) }, 560 {"NavyBlue" , PALETTERGB (0, 0, 128) },
108 {"CornflowerBlue" , PALETTERGB (100, 149, 237) }, 561 {"OldLace" , PALETTERGB (253, 245, 230) },
109 {"DarkSlateBlue" , PALETTERGB (72, 61, 139) }, 562 {"OliveDrab" , PALETTERGB (107, 142, 35) },
563 {"OliveDrab1" , PALETTERGB (192, 255, 62) },
564 {"OliveDrab2" , PALETTERGB (179, 238, 58) },
565 {"OliveDrab3" , PALETTERGB (154, 205, 50) },
566 {"OliveDrab4" , PALETTERGB (105, 139, 34) },
567 {"orange" , PALETTERGB (255, 165, 0) },
568 {"orange1" , PALETTERGB (255, 165, 0) },
569 {"orange2" , PALETTERGB (238, 154, 0) },
570 {"orange3" , PALETTERGB (205, 133, 0) },
571 {"orange4" , PALETTERGB (139, 90, 0) },
572 {"OrangeRed" , PALETTERGB (255, 69, 0) },
573 {"OrangeRed1" , PALETTERGB (255, 69, 0) },
574 {"OrangeRed2" , PALETTERGB (238, 64, 0) },
575 {"OrangeRed3" , PALETTERGB (205, 55, 0) },
576 {"OrangeRed4" , PALETTERGB (139, 37, 0) },
577 {"orchid" , PALETTERGB (218, 112, 214) },
578 {"orchid1" , PALETTERGB (255, 131, 250) },
579 {"orchid2" , PALETTERGB (238, 122, 233) },
580 {"orchid3" , PALETTERGB (205, 105, 201) },
581 {"orchid4" , PALETTERGB (139, 71, 137) },
582 {"PaleGoldenrod" , PALETTERGB (238, 232, 170) },
583 {"PaleGreen" , PALETTERGB (152, 251, 152) },
584 {"PaleGreen1" , PALETTERGB (154, 255, 154) },
585 {"PaleGreen2" , PALETTERGB (144, 238, 144) },
586 {"PaleGreen3" , PALETTERGB (124, 205, 124) },
587 {"PaleGreen4" , PALETTERGB (84, 139, 84) },
588 {"PaleTurquoise" , PALETTERGB (175, 238, 238) },
589 {"PaleTurquoise1" , PALETTERGB (187, 255, 255) },
590 {"PaleTurquoise2" , PALETTERGB (174, 238, 238) },
591 {"PaleTurquoise3" , PALETTERGB (150, 205, 205) },
592 {"PaleTurquoise4" , PALETTERGB (102, 139, 139) },
593 {"PaleVioletRed" , PALETTERGB (219, 112, 147) },
594 {"PaleVioletRed1" , PALETTERGB (255, 130, 171) },
595 {"PaleVioletRed2" , PALETTERGB (238, 121, 159) },
596 {"PaleVioletRed3" , PALETTERGB (205, 104, 137) },
597 {"PaleVioletRed4" , PALETTERGB (139, 71, 93) },
598 {"PaleYellow" , PALETTERGB (255, 255, 128) },
599 {"PapayaWhip" , PALETTERGB (255, 239, 213) },
600 {"PeachPuff" , PALETTERGB (255, 218, 185) },
601 {"PeachPuff1" , PALETTERGB (255, 218, 185) },
602 {"PeachPuff2" , PALETTERGB (238, 203, 173) },
603 {"PeachPuff3" , PALETTERGB (205, 175, 149) },
604 {"PeachPuff4" , PALETTERGB (139, 119, 101) },
605 {"peru" , PALETTERGB (205, 133, 63) },
606 {"pink" , PALETTERGB (255, 192, 203) },
607 {"pink1" , PALETTERGB (255, 181, 197) },
608 {"pink2" , PALETTERGB (238, 169, 184) },
609 {"pink3" , PALETTERGB (205, 145, 158) },
610 {"pink4" , PALETTERGB (139, 99, 108) },
611 {"plum" , PALETTERGB (221, 160, 221) },
612 {"plum1" , PALETTERGB (255, 187, 255) },
613 {"plum2" , PALETTERGB (238, 174, 238) },
614 {"plum3" , PALETTERGB (205, 150, 205) },
615 {"plum4" , PALETTERGB (139, 102, 139) },
616 {"PowderBlue" , PALETTERGB (176, 224, 230) },
617 {"purple" , PALETTERGB (160, 32, 240) },
618 {"purple1" , PALETTERGB (155, 48, 255) },
619 {"purple2" , PALETTERGB (145, 44, 238) },
620 {"purple3" , PALETTERGB (125, 38, 205) },
621 {"purple4" , PALETTERGB (85, 26, 139) },
622 {"red" , PALETTERGB (255, 0, 0) },
623 {"red1" , PALETTERGB (255, 0, 0) },
624 {"red2" , PALETTERGB (238, 0, 0) },
625 {"red3" , PALETTERGB (205, 0, 0) },
626 {"red4" , PALETTERGB (139, 0, 0) },
627 {"RosyBrown" , PALETTERGB (188, 143, 143) },
628 {"RosyBrown1" , PALETTERGB (255, 193, 193) },
629 {"RosyBrown2" , PALETTERGB (238, 180, 180) },
630 {"RosyBrown3" , PALETTERGB (205, 155, 155) },
631 {"RosyBrown4" , PALETTERGB (139, 105, 105) },
632 {"RoyalBlue" , PALETTERGB (65, 105, 225) },
633 {"RoyalBlue1" , PALETTERGB (72, 118, 255) },
634 {"RoyalBlue2" , PALETTERGB (67, 110, 238) },
635 {"RoyalBlue3" , PALETTERGB (58, 95, 205) },
636 {"RoyalBlue4" , PALETTERGB (39, 64, 139) },
637 {"SaddleBrown" , PALETTERGB (139, 69, 19) },
638 {"salmon" , PALETTERGB (250, 128, 114) },
639 {"salmon1" , PALETTERGB (255, 140, 105) },
640 {"salmon2" , PALETTERGB (238, 130, 98) },
641 {"salmon3" , PALETTERGB (205, 112, 84) },
642 {"salmon4" , PALETTERGB (139, 76, 57) },
643 {"SandyBrown" , PALETTERGB (244, 164, 96) },
644 {"SeaGreen" , PALETTERGB (46, 139, 87) },
645 {"SeaGreen1" , PALETTERGB (84, 255, 159) },
646 {"SeaGreen2" , PALETTERGB (78, 238, 148) },
647 {"SeaGreen3" , PALETTERGB (67, 205, 128) },
648 {"SeaGreen4" , PALETTERGB (46, 139, 87) },
649 {"seashell" , PALETTERGB (255, 245, 238) },
650 {"seashell1" , PALETTERGB (255, 245, 238) },
651 {"seashell2" , PALETTERGB (238, 229, 222) },
652 {"seashell3" , PALETTERGB (205, 197, 191) },
653 {"seashell4" , PALETTERGB (139, 134, 130) },
654 {"sienna" , PALETTERGB (160, 82, 45) },
655 {"sienna1" , PALETTERGB (255, 130, 71) },
656 {"sienna2" , PALETTERGB (238, 121, 66) },
657 {"sienna3" , PALETTERGB (205, 104, 57) },
658 {"sienna4" , PALETTERGB (139, 71, 38) },
659 {"SkyBlue" , PALETTERGB (135, 206, 235) },
660 {"SkyBlue1" , PALETTERGB (135, 206, 255) },
661 {"SkyBlue2" , PALETTERGB (126, 192, 238) },
662 {"SkyBlue3" , PALETTERGB (108, 166, 205) },
663 {"SkyBlue4" , PALETTERGB (74, 112, 139) },
110 {"SlateBlue" , PALETTERGB (106, 90, 205) }, 664 {"SlateBlue" , PALETTERGB (106, 90, 205) },
111 {"MediumSlateBlue" , PALETTERGB (123, 104, 238) }, 665 {"SlateBlue1" , PALETTERGB (131, 111, 255) },
112 {"LightSlateBlue" , PALETTERGB (132, 112, 255) }, 666 {"SlateBlue2" , PALETTERGB (122, 103, 238) },
113 {"MediumBlue" , PALETTERGB (0, 0, 205) }, 667 {"SlateBlue3" , PALETTERGB (105, 89, 205) },
114 {"RoyalBlue" , PALETTERGB (65, 105, 225) }, 668 {"SlateBlue4" , PALETTERGB (71, 60, 139) },
115 {"blue" , PALETTERGB (0, 0, 255) }, 669 {"SlateGray" , PALETTERGB (112, 128, 144) },
116 {"DodgerBlue" , PALETTERGB (30, 144, 255) }, 670 {"SlateGray1" , PALETTERGB (198, 226, 255) },
117 {"DeepSkyBlue" , PALETTERGB (0, 191, 255) }, 671 {"SlateGray2" , PALETTERGB (185, 211, 238) },
118 {"SkyBlue" , PALETTERGB (135, 206, 235) }, 672 {"SlateGray3" , PALETTERGB (159, 182, 205) },
119 {"LightSkyBlue" , PALETTERGB (135, 206, 250) }, 673 {"SlateGray4" , PALETTERGB (108, 123, 139) },
120 {"SteelBlue" , PALETTERGB (70, 130, 180) }, 674 {"SlateGrey" , PALETTERGB (112, 128, 144) },
121 {"LightSteelBlue" , PALETTERGB (176, 196, 222) }, 675 {"snow" , PALETTERGB (255, 250, 250) },
122 {"LightBlue" , PALETTERGB (173, 216, 230) },
123 {"PowderBlue" , PALETTERGB (176, 224, 230) },
124 {"PaleTurquoise" , PALETTERGB (175, 238, 238) },
125 {"DarkTurquoise" , PALETTERGB (0, 206, 209) },
126 {"MediumTurquoise" , PALETTERGB (72, 209, 204) },
127 {"turquoise" , PALETTERGB (64, 224, 208) },
128 {"cyan" , PALETTERGB (0, 255, 255) },
129 {"LightCyan" , PALETTERGB (224, 255, 255) },
130 {"CadetBlue" , PALETTERGB (95, 158, 160) },
131 {"MediumAquamarine" , PALETTERGB (102, 205, 170) },
132 {"aquamarine" , PALETTERGB (127, 255, 212) },
133 {"DarkGreen" , PALETTERGB (0, 128, 0) }, /* Adjusted */
134 {"DarkOliveGreen" , PALETTERGB (85, 107, 47) },
135 {"DarkSeaGreen" , PALETTERGB (143, 188, 143) },
136 {"SeaGreen" , PALETTERGB (46, 139, 87) },
137 {"MediumSeaGreen" , PALETTERGB (60, 179, 113) },
138 {"LightSeaGreen" , PALETTERGB (32, 178, 170) },
139 {"PaleGreen" , PALETTERGB (152, 251, 152) },
140 {"SpringGreen" , PALETTERGB (0, 255, 127) },
141 {"LawnGreen" , PALETTERGB (124, 252, 0) },
142 {"green" , PALETTERGB (0, 255, 0) },
143 {"chartreuse" , PALETTERGB (127, 255, 0) },
144 {"MediumSpringGreen" , PALETTERGB (0, 250, 154) },
145 {"GreenYellow" , PALETTERGB (173, 255, 47) },
146 {"LimeGreen" , PALETTERGB (50, 205, 50) },
147 {"YellowGreen" , PALETTERGB (154, 205, 50) },
148 {"ForestGreen" , PALETTERGB (34, 139, 34) },
149 {"OliveDrab" , PALETTERGB (107, 142, 35) },
150 {"DarkKhaki" , PALETTERGB (189, 183, 107) },
151 {"khaki" , PALETTERGB (240, 230, 140) },
152 {"PaleGoldenrod" , PALETTERGB (238, 232, 170) },
153 {"LightGoldenrodYellow", PALETTERGB (250, 250, 210) },
154 {"LightYellow" , PALETTERGB (255, 255, 224) },
155 {"LightYellow" , PALETTERGB (255, 255, 225) }, /* Adjusted */
156 {"yellow" , PALETTERGB (255, 255, 0) },
157 {"gold" , PALETTERGB (255, 215, 0) },
158 {"LightGoldenrod" , PALETTERGB (238, 221, 130) },
159 {"goldenrod" , PALETTERGB (218, 165, 32) },
160 {"DarkGoldenrod" , PALETTERGB (184, 134, 11) },
161 {"RosyBrown" , PALETTERGB (188, 143, 143) },
162 {"IndianRed" , PALETTERGB (205, 92, 92) },
163 {"SaddleBrown" , PALETTERGB (139, 69, 19) },
164 {"sienna" , PALETTERGB (160, 82, 45) },
165 {"peru" , PALETTERGB (205, 133, 63) },
166 {"burlywood" , PALETTERGB (222, 184, 135) },
167 {"beige" , PALETTERGB (245, 245, 220) },
168 {"wheat" , PALETTERGB (245, 222, 179) },
169 {"SandyBrown" , PALETTERGB (244, 164, 96) },
170 {"tan" , PALETTERGB (210, 180, 140) },
171 {"chocolate" , PALETTERGB (210, 105, 30) },
172 {"firebrick" , PALETTERGB (178, 34, 34) },
173 {"brown" , PALETTERGB (165, 42, 42) },
174 {"DarkSalmon" , PALETTERGB (233, 150, 122) },
175 {"salmon" , PALETTERGB (250, 128, 114) },
176 {"LightSalmon" , PALETTERGB (255, 160, 122) },
177 {"orange" , PALETTERGB (255, 165, 0) },
178 {"DarkOrange" , PALETTERGB (255, 140, 0) },
179 {"coral" , PALETTERGB (255, 127, 80) },
180 {"LightCoral" , PALETTERGB (240, 128, 128) },
181 {"tomato" , PALETTERGB (255, 99, 71) },
182 {"OrangeRed" , PALETTERGB (255, 69, 0) },
183 {"red" , PALETTERGB (255, 0, 0) },
184 {"HotPink" , PALETTERGB (255, 105, 180) },
185 {"DeepPink" , PALETTERGB (255, 20, 147) },
186 {"pink" , PALETTERGB (255, 192, 203) },
187 {"LightPink" , PALETTERGB (255, 182, 193) },
188 {"PaleVioletRed" , PALETTERGB (219, 112, 147) },
189 {"maroon" , PALETTERGB (176, 48, 96) },
190 {"MediumVioletRed" , PALETTERGB (199, 21, 133) },
191 {"VioletRed" , PALETTERGB (208, 32, 144) },
192 {"magenta" , PALETTERGB (255, 0, 255) },
193 {"violet" , PALETTERGB (238, 130, 238) },
194 {"plum" , PALETTERGB (221, 160, 221) },
195 {"orchid" , PALETTERGB (218, 112, 214) },
196 {"MediumOrchid" , PALETTERGB (186, 85, 211) },
197 {"DarkOrchid" , PALETTERGB (153, 50, 204) },
198 {"DarkViolet" , PALETTERGB (148, 0, 211) },
199 {"BlueViolet" , PALETTERGB (138, 43, 226) },
200 {"purple" , PALETTERGB (160, 32, 240) },
201 {"MediumPurple" , PALETTERGB (147, 112, 219) },
202 {"thistle" , PALETTERGB (216, 191, 216) },
203 {"snow1" , PALETTERGB (255, 250, 250) }, 676 {"snow1" , PALETTERGB (255, 250, 250) },
204 {"snow2" , PALETTERGB (238, 233, 233) }, 677 {"snow2" , PALETTERGB (238, 233, 233) },
205 {"snow3" , PALETTERGB (205, 201, 201) }, 678 {"snow3" , PALETTERGB (205, 201, 201) },
206 {"snow4" , PALETTERGB (139, 137, 137) }, 679 {"snow4" , PALETTERGB (139, 137, 137) },
207 {"seashell1" , PALETTERGB (255, 245, 238) }, 680 {"SpringGreen" , PALETTERGB (0, 255, 127) },
208 {"seashell2" , PALETTERGB (238, 229, 222) }, 681 {"SpringGreen1" , PALETTERGB (0, 255, 127) },
209 {"seashell3" , PALETTERGB (205, 197, 191) }, 682 {"SpringGreen2" , PALETTERGB (0, 238, 118) },
210 {"seashell4" , PALETTERGB (139, 134, 130) }, 683 {"SpringGreen3" , PALETTERGB (0, 205, 102) },
211 {"AntiqueWhite1" , PALETTERGB (255, 239, 219) }, 684 {"SpringGreen4" , PALETTERGB (0, 139, 69) },
212 {"AntiqueWhite2" , PALETTERGB (238, 223, 204) }, 685 {"SteelBlue" , PALETTERGB (70, 130, 180) },
213 {"AntiqueWhite3" , PALETTERGB (205, 192, 176) },
214 {"AntiqueWhite4" , PALETTERGB (139, 131, 120) },
215 {"bisque1" , PALETTERGB (255, 228, 196) },
216 {"bisque2" , PALETTERGB (238, 213, 183) },
217 {"bisque3" , PALETTERGB (205, 183, 158) },
218 {"bisque4" , PALETTERGB (139, 125, 107) },
219 {"PeachPuff1" , PALETTERGB (255, 218, 185) },
220 {"PeachPuff2" , PALETTERGB (238, 203, 173) },
221 {"PeachPuff3" , PALETTERGB (205, 175, 149) },
222 {"PeachPuff4" , PALETTERGB (139, 119, 101) },
223 {"NavajoWhite1" , PALETTERGB (255, 222, 173) },
224 {"NavajoWhite2" , PALETTERGB (238, 207, 161) },
225 {"NavajoWhite3" , PALETTERGB (205, 179, 139) },
226 {"NavajoWhite4" , PALETTERGB (139, 121, 94) },
227 {"LemonChiffon1" , PALETTERGB (255, 250, 205) },
228 {"LemonChiffon2" , PALETTERGB (238, 233, 191) },
229 {"LemonChiffon3" , PALETTERGB (205, 201, 165) },
230 {"LemonChiffon4" , PALETTERGB (139, 137, 112) },
231 {"cornsilk1" , PALETTERGB (255, 248, 220) },
232 {"cornsilk2" , PALETTERGB (238, 232, 205) },
233 {"cornsilk3" , PALETTERGB (205, 200, 177) },
234 {"cornsilk4" , PALETTERGB (139, 136, 120) },
235 {"ivory1" , PALETTERGB (255, 255, 240) },
236 {"ivory2" , PALETTERGB (240, 240, 208) }, /* Adjusted */
237 {"ivory3" , PALETTERGB (205, 205, 193) },
238 {"ivory4" , PALETTERGB (139, 139, 131) },
239 {"honeydew1" , PALETTERGB (240, 255, 240) },
240 {"honeydew2" , PALETTERGB (224, 238, 224) },
241 {"honeydew3" , PALETTERGB (193, 205, 193) },
242 {"honeydew4" , PALETTERGB (131, 139, 131) },
243 {"LavenderBlush1" , PALETTERGB (255, 240, 245) },
244 {"LavenderBlush2" , PALETTERGB (238, 224, 229) },
245 {"LavenderBlush3" , PALETTERGB (205, 193, 197) },
246 {"LavenderBlush4" , PALETTERGB (139, 131, 134) },
247 {"MistyRose1" , PALETTERGB (255, 228, 225) },
248 {"MistyRose2" , PALETTERGB (238, 213, 210) },
249 {"MistyRose3" , PALETTERGB (205, 183, 181) },
250 {"MistyRose4" , PALETTERGB (139, 125, 123) },
251 {"azure1" , PALETTERGB (240, 255, 255) },
252 {"azure2" , PALETTERGB (224, 238, 238) },
253 {"azure3" , PALETTERGB (193, 205, 205) },
254 {"azure4" , PALETTERGB (131, 139, 139) },
255 {"SlateBlue1" , PALETTERGB (131, 111, 255) },
256 {"SlateBlue2" , PALETTERGB (122, 103, 238) },
257 {"SlateBlue3" , PALETTERGB (105, 89, 205) },
258 {"SlateBlue4" , PALETTERGB (71, 60, 139) },
259 {"RoyalBlue1" , PALETTERGB (72, 118, 255) },
260 {"RoyalBlue2" , PALETTERGB (67, 110, 238) },
261 {"RoyalBlue3" , PALETTERGB (58, 95, 205) },
262 {"RoyalBlue4" , PALETTERGB (39, 64, 139) },
263 {"blue1" , PALETTERGB (0, 0, 255) },
264 {"blue2" , PALETTERGB (0, 0, 238) },
265 {"blue3" , PALETTERGB (0, 0, 205) },
266 {"blue4" , PALETTERGB (0, 0, 139) },
267 {"DodgerBlue1" , PALETTERGB (30, 144, 255) },
268 {"DodgerBlue2" , PALETTERGB (28, 134, 238) },
269 {"DodgerBlue3" , PALETTERGB (24, 116, 205) },
270 {"DodgerBlue4" , PALETTERGB (16, 78, 139) },
271 {"SteelBlue1" , PALETTERGB (99, 184, 255) }, 686 {"SteelBlue1" , PALETTERGB (99, 184, 255) },
272 {"SteelBlue2" , PALETTERGB (92, 172, 238) }, 687 {"SteelBlue2" , PALETTERGB (92, 172, 238) },
273 {"SteelBlue3" , PALETTERGB (79, 148, 205) }, 688 {"SteelBlue3" , PALETTERGB (79, 148, 205) },
274 {"SteelBlue4" , PALETTERGB (54, 100, 139) }, 689 {"SteelBlue4" , PALETTERGB (54, 100, 139) },
275 {"DeepSkyBlue1" , PALETTERGB (0, 191, 255) }, 690 {"tan" , PALETTERGB (210, 180, 140) },
276 {"DeepSkyBlue2" , PALETTERGB (0, 178, 238) }, 691 {"tan1" , PALETTERGB (255, 165, 79) },
277 {"DeepSkyBlue3" , PALETTERGB (0, 154, 205) }, 692 {"tan2" , PALETTERGB (238, 154, 73) },
278 {"DeepSkyBlue4" , PALETTERGB (0, 104, 139) }, 693 {"tan3" , PALETTERGB (205, 133, 63) },
279 {"SkyBlue1" , PALETTERGB (135, 206, 255) }, 694 {"tan4" , PALETTERGB (139, 90, 43) },
280 {"SkyBlue2" , PALETTERGB (126, 192, 238) }, 695 {"thistle" , PALETTERGB (216, 191, 216) },
281 {"SkyBlue3" , PALETTERGB (108, 166, 205) }, 696 {"thistle1" , PALETTERGB (255, 225, 255) },
282 {"SkyBlue4" , PALETTERGB (74, 112, 139) }, 697 {"thistle2" , PALETTERGB (238, 210, 238) },
283 {"LightSkyBlue1" , PALETTERGB (176, 226, 255) }, 698 {"thistle3" , PALETTERGB (205, 181, 205) },
284 {"LightSkyBlue2" , PALETTERGB (164, 211, 238) }, 699 {"thistle4" , PALETTERGB (139, 123, 139) },
285 {"LightSkyBlue3" , PALETTERGB (141, 182, 205) }, 700 {"tomato" , PALETTERGB (255, 99, 71) },
286 {"LightSkyBlue4" , PALETTERGB (96, 123, 139) }, 701 {"tomato1" , PALETTERGB (255, 99, 71) },
287 {"SlateGray1" , PALETTERGB (198, 226, 255) }, 702 {"tomato2" , PALETTERGB (238, 92, 66) },
288 {"SlateGray2" , PALETTERGB (185, 211, 238) }, 703 {"tomato3" , PALETTERGB (205, 79, 57) },
289 {"SlateGray3" , PALETTERGB (159, 182, 205) }, 704 {"tomato4" , PALETTERGB (139, 54, 38) },
290 {"SlateGray4" , PALETTERGB (108, 123, 139) }, 705 {"turquoise" , PALETTERGB (64, 224, 208) },
291 {"LightSteelBlue1" , PALETTERGB (202, 225, 255) },
292 {"LightSteelBlue2" , PALETTERGB (188, 210, 238) },
293 {"LightSteelBlue3" , PALETTERGB (162, 181, 205) },
294 {"LightSteelBlue4" , PALETTERGB (110, 123, 139) },
295 {"LightBlue1" , PALETTERGB (191, 239, 255) },
296 {"LightBlue2" , PALETTERGB (178, 223, 238) },
297 {"LightBlue3" , PALETTERGB (154, 192, 205) },
298 {"LightBlue4" , PALETTERGB (104, 131, 139) },
299 {"LightCyan1" , PALETTERGB (224, 255, 255) },
300 {"LightCyan2" , PALETTERGB (209, 238, 238) },
301 {"LightCyan3" , PALETTERGB (180, 205, 205) },
302 {"LightCyan4" , PALETTERGB (122, 139, 139) },
303 {"PaleTurquoise1" , PALETTERGB (187, 255, 255) },
304 {"PaleTurquoise2" , PALETTERGB (174, 238, 238) },
305 {"PaleTurquoise3" , PALETTERGB (150, 205, 205) },
306 {"PaleTurquoise4" , PALETTERGB (102, 139, 139) },
307 {"CadetBlue1" , PALETTERGB (152, 245, 255) },
308 {"CadetBlue2" , PALETTERGB (144, 220, 240) }, /* Adjusted */
309 {"CadetBlue3" , PALETTERGB (122, 197, 205) },
310 {"CadetBlue4" , PALETTERGB (83, 134, 139) },
311 {"turquoise1" , PALETTERGB (0, 245, 255) }, 706 {"turquoise1" , PALETTERGB (0, 245, 255) },
312 {"turquoise2" , PALETTERGB (0, 229, 238) }, 707 {"turquoise2" , PALETTERGB (0, 229, 238) },
313 {"turquoise3" , PALETTERGB (0, 197, 205) }, 708 {"turquoise3" , PALETTERGB (0, 197, 205) },
314 {"turquoise4" , PALETTERGB (0, 134, 139) }, 709 {"turquoise4" , PALETTERGB (0, 134, 139) },
315 {"cyan1" , PALETTERGB (0, 255, 255) }, 710 {"violet" , PALETTERGB (238, 130, 238) },
316 {"cyan2" , PALETTERGB (0, 238, 238) }, 711 {"VioletRed" , PALETTERGB (208, 32, 144) },
317 {"cyan3" , PALETTERGB (0, 205, 205) }, 712 {"VioletRed1" , PALETTERGB (255, 62, 150) },
318 {"cyan4" , PALETTERGB (0, 139, 139) }, 713 {"VioletRed2" , PALETTERGB (238, 58, 140) },
319 {"DarkSlateGray1" , PALETTERGB (151, 255, 255) }, 714 {"VioletRed3" , PALETTERGB (205, 50, 120) },
320 {"DarkSlateGray2" , PALETTERGB (141, 238, 238) }, 715 {"VioletRed4" , PALETTERGB (139, 34, 82) },
321 {"DarkSlateGray3" , PALETTERGB (121, 205, 205) }, 716 {"wheat" , PALETTERGB (245, 222, 179) },
322 {"DarkSlateGray4" , PALETTERGB (82, 139, 139) }, 717 {"wheat1" , PALETTERGB (255, 231, 186) },
323 {"aquamarine1" , PALETTERGB (127, 255, 212) }, 718 {"wheat2" , PALETTERGB (238, 216, 174) },
324 {"aquamarine2" , PALETTERGB (118, 238, 198) }, 719 {"wheat3" , PALETTERGB (205, 186, 150) },
325 {"aquamarine3" , PALETTERGB (102, 205, 170) }, 720 {"wheat4" , PALETTERGB (139, 126, 102) },
326 {"aquamarine4" , PALETTERGB (69, 139, 116) }, 721 {"white" , PALETTERGB (255, 255, 255) },
327 {"DarkSeaGreen1" , PALETTERGB (193, 255, 193) }, 722 {"WhiteSmoke" , PALETTERGB (245, 245, 245) },
328 {"DarkSeaGreen2" , PALETTERGB (180, 238, 180) }, 723 {"yellow" , PALETTERGB (255, 255, 0) },
329 {"DarkSeaGreen3" , PALETTERGB (155, 205, 155) },
330 {"DarkSeaGreen4" , PALETTERGB (105, 139, 105) },
331 {"SeaGreen1" , PALETTERGB (84, 255, 159) },
332 {"SeaGreen2" , PALETTERGB (78, 238, 148) },
333 {"SeaGreen3" , PALETTERGB (67, 205, 128) },
334 {"SeaGreen4" , PALETTERGB (46, 139, 87) },
335 {"PaleGreen1" , PALETTERGB (154, 255, 154) },
336 {"PaleGreen2" , PALETTERGB (144, 238, 144) },
337 {"PaleGreen3" , PALETTERGB (124, 205, 124) },
338 {"PaleGreen4" , PALETTERGB (84, 139, 84) },
339 {"SpringGreen1" , PALETTERGB (0, 255, 127) },
340 {"SpringGreen2" , PALETTERGB (0, 238, 118) },
341 {"SpringGreen3" , PALETTERGB (0, 205, 102) },
342 {"SpringGreen4" , PALETTERGB (0, 139, 69) },
343 {"green1" , PALETTERGB (0, 255, 0) },
344 {"green2" , PALETTERGB (0, 238, 0) },
345 {"green3" , PALETTERGB (0, 205, 0) },
346 {"green4" , PALETTERGB (0, 139, 0) },
347 {"chartreuse1" , PALETTERGB (127, 255, 0) },
348 {"chartreuse2" , PALETTERGB (118, 238, 0) },
349 {"chartreuse3" , PALETTERGB (102, 205, 0) },
350 {"chartreuse4" , PALETTERGB (69, 139, 0) },
351 {"OliveDrab1" , PALETTERGB (192, 255, 62) },
352 {"OliveDrab2" , PALETTERGB (179, 238, 58) },
353 {"OliveDrab3" , PALETTERGB (154, 205, 50) },
354 {"OliveDrab4" , PALETTERGB (105, 139, 34) },
355 {"DarkOliveGreen1" , PALETTERGB (202, 255, 112) },
356 {"DarkOliveGreen2" , PALETTERGB (188, 238, 104) },
357 {"DarkOliveGreen3" , PALETTERGB (162, 205, 90) },
358 {"DarkOliveGreen4" , PALETTERGB (110, 139, 61) },
359 {"khaki1" , PALETTERGB (255, 246, 143) },
360 {"khaki2" , PALETTERGB (238, 230, 133) },
361 {"khaki3" , PALETTERGB (205, 198, 115) },
362 {"khaki4" , PALETTERGB (139, 134, 78) },
363 {"LightGoldenrod1" , PALETTERGB (255, 236, 139) },
364 {"LightGoldenrod2" , PALETTERGB (238, 220, 130) },
365 {"LightGoldenrod3" , PALETTERGB (205, 190, 112) },
366 {"LightGoldenrod4" , PALETTERGB (139, 129, 76) },
367 {"LightYellow1" , PALETTERGB (255, 255, 224) },
368 {"LightYellow2" , PALETTERGB (238, 238, 209) },
369 {"LightYellow3" , PALETTERGB (205, 205, 180) },
370 {"LightYellow4" , PALETTERGB (139, 139, 122) },
371 {"yellow1" , PALETTERGB (255, 255, 0) }, 724 {"yellow1" , PALETTERGB (255, 255, 0) },
372 {"yellow2" , PALETTERGB (238, 238, 0) }, 725 {"yellow2" , PALETTERGB (238, 238, 0) },
373 {"yellow3" , PALETTERGB (205, 205, 0) }, 726 {"yellow3" , PALETTERGB (205, 205, 0) },
374 {"yellow4" , PALETTERGB (139, 139, 0) }, 727 {"yellow4" , PALETTERGB (139, 139, 0) },
375 {"gold1" , PALETTERGB (255, 215, 0) }, 728 {"YellowGreen" , PALETTERGB (154, 205, 50) }
376 {"gold2" , PALETTERGB (238, 201, 0) },
377 {"gold3" , PALETTERGB (205, 173, 0) },
378 {"gold4" , PALETTERGB (139, 117, 0) },
379 {"goldenrod1" , PALETTERGB (255, 193, 37) },
380 {"goldenrod2" , PALETTERGB (238, 180, 34) },
381 {"goldenrod3" , PALETTERGB (205, 155, 29) },
382 {"goldenrod4" , PALETTERGB (139, 105, 20) },
383 {"DarkGoldenrod1" , PALETTERGB (255, 185, 15) },
384 {"DarkGoldenrod2" , PALETTERGB (238, 173, 14) },
385 {"DarkGoldenrod3" , PALETTERGB (205, 149, 12) },
386 {"DarkGoldenrod4" , PALETTERGB (139, 101, 8) },
387 {"RosyBrown1" , PALETTERGB (255, 193, 193) },
388 {"RosyBrown2" , PALETTERGB (238, 180, 180) },
389 {"RosyBrown3" , PALETTERGB (205, 155, 155) },
390 {"RosyBrown4" , PALETTERGB (139, 105, 105) },
391 {"IndianRed1" , PALETTERGB (255, 106, 106) },
392 {"IndianRed2" , PALETTERGB (238, 99, 99) },
393 {"IndianRed3" , PALETTERGB (205, 85, 85) },
394 {"IndianRed4" , PALETTERGB (139, 58, 58) },
395 {"sienna1" , PALETTERGB (255, 130, 71) },
396 {"sienna2" , PALETTERGB (238, 121, 66) },
397 {"sienna3" , PALETTERGB (205, 104, 57) },
398 {"sienna4" , PALETTERGB (139, 71, 38) },
399 {"burlywood1" , PALETTERGB (255, 211, 155) },
400 {"burlywood2" , PALETTERGB (238, 197, 145) },
401 {"burlywood3" , PALETTERGB (205, 170, 125) },
402 {"burlywood4" , PALETTERGB (139, 115, 85) },
403 {"wheat1" , PALETTERGB (255, 231, 186) },
404 {"wheat2" , PALETTERGB (238, 216, 174) },
405 {"wheat3" , PALETTERGB (205, 186, 150) },
406 {"wheat4" , PALETTERGB (139, 126, 102) },
407 {"tan1" , PALETTERGB (255, 165, 79) },
408 {"tan2" , PALETTERGB (238, 154, 73) },
409 {"tan3" , PALETTERGB (205, 133, 63) },
410 {"tan4" , PALETTERGB (139, 90, 43) },
411 {"chocolate1" , PALETTERGB (255, 127, 36) },
412 {"chocolate2" , PALETTERGB (238, 118, 33) },
413 {"chocolate3" , PALETTERGB (205, 102, 29) },
414 {"chocolate4" , PALETTERGB (139, 69, 19) },
415 {"firebrick1" , PALETTERGB (255, 48, 48) },
416 {"firebrick2" , PALETTERGB (238, 44, 44) },
417 {"firebrick3" , PALETTERGB (205, 38, 38) },
418 {"firebrick4" , PALETTERGB (139, 26, 26) },
419 {"brown1" , PALETTERGB (255, 64, 64) },
420 {"brown2" , PALETTERGB (238, 59, 59) },
421 {"brown3" , PALETTERGB (205, 51, 51) },
422 {"brown4" , PALETTERGB (139, 35, 35) },
423 {"salmon1" , PALETTERGB (255, 140, 105) },
424 {"salmon2" , PALETTERGB (238, 130, 98) },
425 {"salmon3" , PALETTERGB (205, 112, 84) },
426 {"salmon4" , PALETTERGB (139, 76, 57) },
427 {"LightSalmon1" , PALETTERGB (255, 160, 122) },
428 {"LightSalmon2" , PALETTERGB (238, 149, 114) },
429 {"LightSalmon3" , PALETTERGB (205, 129, 98) },
430 {"LightSalmon4" , PALETTERGB (139, 87, 66) },
431 {"orange1" , PALETTERGB (255, 165, 0) },
432 {"orange2" , PALETTERGB (238, 154, 0) },
433 {"orange3" , PALETTERGB (205, 133, 0) },
434 {"orange4" , PALETTERGB (139, 90, 0) },
435 {"DarkOrange1" , PALETTERGB (255, 127, 0) },
436 {"DarkOrange2" , PALETTERGB (238, 118, 0) },
437 {"DarkOrange3" , PALETTERGB (205, 102, 0) },
438 {"DarkOrange4" , PALETTERGB (139, 69, 0) },
439 {"coral1" , PALETTERGB (255, 114, 86) },
440 {"coral2" , PALETTERGB (238, 106, 80) },
441 {"coral3" , PALETTERGB (205, 91, 69) },
442 {"coral4" , PALETTERGB (139, 62, 47) },
443 {"tomato1" , PALETTERGB (255, 99, 71) },
444 {"tomato2" , PALETTERGB (238, 92, 66) },
445 {"tomato3" , PALETTERGB (205, 79, 57) },
446 {"tomato4" , PALETTERGB (139, 54, 38) },
447 {"OrangeRed1" , PALETTERGB (255, 69, 0) },
448 {"OrangeRed2" , PALETTERGB (238, 64, 0) },
449 {"OrangeRed3" , PALETTERGB (205, 55, 0) },
450 {"OrangeRed4" , PALETTERGB (139, 37, 0) },
451 {"red1" , PALETTERGB (255, 0, 0) },
452 {"red2" , PALETTERGB (238, 0, 0) },
453 {"red3" , PALETTERGB (205, 0, 0) },
454 {"red4" , PALETTERGB (139, 0, 0) },
455 {"DeepPink1" , PALETTERGB (255, 20, 147) },
456 {"DeepPink2" , PALETTERGB (238, 18, 137) },
457 {"DeepPink3" , PALETTERGB (205, 16, 118) },
458 {"DeepPink4" , PALETTERGB (139, 10, 80) },
459 {"HotPink1" , PALETTERGB (255, 110, 180) },
460 {"HotPink2" , PALETTERGB (238, 106, 167) },
461 {"HotPink3" , PALETTERGB (205, 96, 144) },
462 {"HotPink4" , PALETTERGB (139, 58, 98) },
463 {"pink1" , PALETTERGB (255, 181, 197) },
464 {"pink2" , PALETTERGB (238, 169, 184) },
465 {"pink3" , PALETTERGB (205, 145, 158) },
466 {"pink4" , PALETTERGB (139, 99, 108) },
467 {"LightPink1" , PALETTERGB (255, 174, 185) },
468 {"LightPink2" , PALETTERGB (238, 162, 173) },
469 {"LightPink3" , PALETTERGB (205, 140, 149) },
470 {"LightPink4" , PALETTERGB (139, 95, 101) },
471 {"PaleVioletRed1" , PALETTERGB (255, 130, 171) },
472 {"PaleVioletRed2" , PALETTERGB (238, 121, 159) },
473 {"PaleVioletRed3" , PALETTERGB (205, 104, 137) },
474 {"PaleVioletRed4" , PALETTERGB (139, 71, 93) },
475 {"maroon1" , PALETTERGB (255, 52, 179) },
476 {"maroon2" , PALETTERGB (238, 48, 167) },
477 {"maroon3" , PALETTERGB (205, 41, 144) },
478 {"maroon4" , PALETTERGB (139, 28, 98) },
479 {"VioletRed1" , PALETTERGB (255, 62, 150) },
480 {"VioletRed2" , PALETTERGB (238, 58, 140) },
481 {"VioletRed3" , PALETTERGB (205, 50, 120) },
482 {"VioletRed4" , PALETTERGB (139, 34, 82) },
483 {"magenta1" , PALETTERGB (255, 0, 255) },
484 {"magenta2" , PALETTERGB (238, 0, 238) },
485 {"magenta3" , PALETTERGB (205, 0, 205) },
486 {"magenta4" , PALETTERGB (139, 0, 139) },
487 {"orchid1" , PALETTERGB (255, 131, 250) },
488 {"orchid2" , PALETTERGB (238, 122, 233) },
489 {"orchid3" , PALETTERGB (205, 105, 201) },
490 {"orchid4" , PALETTERGB (139, 71, 137) },
491 {"plum1" , PALETTERGB (255, 187, 255) },
492 {"plum2" , PALETTERGB (238, 174, 238) },
493 {"plum3" , PALETTERGB (205, 150, 205) },
494 {"plum4" , PALETTERGB (139, 102, 139) },
495 {"MediumOrchid1" , PALETTERGB (224, 102, 255) },
496 {"MediumOrchid2" , PALETTERGB (209, 95, 238) },
497 {"MediumOrchid3" , PALETTERGB (180, 82, 205) },
498 {"MediumOrchid4" , PALETTERGB (122, 55, 139) },
499 {"DarkOrchid1" , PALETTERGB (191, 62, 255) },
500 {"DarkOrchid2" , PALETTERGB (178, 58, 238) },
501 {"DarkOrchid3" , PALETTERGB (154, 50, 205) },
502 {"DarkOrchid4" , PALETTERGB (104, 34, 139) },
503 {"purple1" , PALETTERGB (155, 48, 255) },
504 {"purple2" , PALETTERGB (145, 44, 238) },
505 {"purple3" , PALETTERGB (125, 38, 205) },
506 {"purple4" , PALETTERGB (85, 26, 139) },
507 {"MediumPurple1" , PALETTERGB (171, 130, 255) },
508 {"MediumPurple2" , PALETTERGB (159, 121, 238) },
509 {"MediumPurple3" , PALETTERGB (137, 104, 205) },
510 {"MediumPurple4" , PALETTERGB (93, 71, 139) },
511 {"thistle1" , PALETTERGB (255, 225, 255) },
512 {"thistle2" , PALETTERGB (238, 210, 238) },
513 {"thistle3" , PALETTERGB (205, 181, 205) },
514 {"thistle4" , PALETTERGB (139, 123, 139) },
515 {"gray0" , PALETTERGB (0, 0, 0) },
516 {"grey0" , PALETTERGB (0, 0, 0) },
517 {"gray1" , PALETTERGB (3, 3, 3) },
518 {"grey1" , PALETTERGB (3, 3, 3) },
519 {"gray2" , PALETTERGB (5, 5, 5) },
520 {"grey2" , PALETTERGB (5, 5, 5) },
521 {"gray3" , PALETTERGB (8, 8, 8) },
522 {"grey3" , PALETTERGB (8, 8, 8) },
523 {"gray4" , PALETTERGB (10, 10, 10) },
524 {"grey4" , PALETTERGB (10, 10, 10) },
525 {"gray5" , PALETTERGB (13, 13, 13) },
526 {"grey5" , PALETTERGB (13, 13, 13) },
527 {"gray6" , PALETTERGB (15, 15, 15) },
528 {"grey6" , PALETTERGB (15, 15, 15) },
529 {"gray7" , PALETTERGB (18, 18, 18) },
530 {"grey7" , PALETTERGB (18, 18, 18) },
531 {"gray8" , PALETTERGB (20, 20, 20) },
532 {"grey8" , PALETTERGB (20, 20, 20) },
533 {"gray9" , PALETTERGB (23, 23, 23) },
534 {"grey9" , PALETTERGB (23, 23, 23) },
535 {"gray10" , PALETTERGB (26, 26, 26) },
536 {"grey10" , PALETTERGB (26, 26, 26) },
537 {"gray11" , PALETTERGB (28, 28, 28) },
538 {"grey11" , PALETTERGB (28, 28, 28) },
539 {"gray12" , PALETTERGB (31, 31, 31) },
540 {"grey12" , PALETTERGB (31, 31, 31) },
541 {"gray13" , PALETTERGB (33, 33, 33) },
542 {"grey13" , PALETTERGB (33, 33, 33) },
543 {"gray14" , PALETTERGB (36, 36, 36) },
544 {"grey14" , PALETTERGB (36, 36, 36) },
545 {"gray15" , PALETTERGB (38, 38, 38) },
546 {"grey15" , PALETTERGB (38, 38, 38) },
547 {"gray16" , PALETTERGB (41, 41, 41) },
548 {"grey16" , PALETTERGB (41, 41, 41) },
549 {"gray17" , PALETTERGB (43, 43, 43) },
550 {"grey17" , PALETTERGB (43, 43, 43) },
551 {"gray18" , PALETTERGB (46, 46, 46) },
552 {"grey18" , PALETTERGB (46, 46, 46) },
553 {"gray19" , PALETTERGB (48, 48, 48) },
554 {"grey19" , PALETTERGB (48, 48, 48) },
555 {"gray20" , PALETTERGB (51, 51, 51) },
556 {"grey20" , PALETTERGB (51, 51, 51) },
557 {"gray21" , PALETTERGB (54, 54, 54) },
558 {"grey21" , PALETTERGB (54, 54, 54) },
559 {"gray22" , PALETTERGB (56, 56, 56) },
560 {"grey22" , PALETTERGB (56, 56, 56) },
561 {"gray23" , PALETTERGB (59, 59, 59) },
562 {"grey23" , PALETTERGB (59, 59, 59) },
563 {"gray24" , PALETTERGB (61, 61, 61) },
564 {"grey24" , PALETTERGB (61, 61, 61) },
565 {"gray25" , PALETTERGB (64, 64, 64) },
566 {"grey25" , PALETTERGB (64, 64, 64) },
567 {"gray26" , PALETTERGB (66, 66, 66) },
568 {"grey26" , PALETTERGB (66, 66, 66) },
569 {"gray27" , PALETTERGB (69, 69, 69) },
570 {"grey27" , PALETTERGB (69, 69, 69) },
571 {"gray28" , PALETTERGB (71, 71, 71) },
572 {"grey28" , PALETTERGB (71, 71, 71) },
573 {"gray29" , PALETTERGB (74, 74, 74) },
574 {"grey29" , PALETTERGB (74, 74, 74) },
575 {"gray30" , PALETTERGB (77, 77, 77) },
576 {"grey30" , PALETTERGB (77, 77, 77) },
577 {"gray31" , PALETTERGB (79, 79, 79) },
578 {"grey31" , PALETTERGB (79, 79, 79) },
579 {"gray32" , PALETTERGB (82, 82, 82) },
580 {"grey32" , PALETTERGB (82, 82, 82) },
581 {"gray33" , PALETTERGB (84, 84, 84) },
582 {"grey33" , PALETTERGB (84, 84, 84) },
583 {"gray34" , PALETTERGB (87, 87, 87) },
584 {"grey34" , PALETTERGB (87, 87, 87) },
585 {"gray35" , PALETTERGB (89, 89, 89) },
586 {"grey35" , PALETTERGB (89, 89, 89) },
587 {"gray36" , PALETTERGB (92, 92, 92) },
588 {"grey36" , PALETTERGB (92, 92, 92) },
589 {"gray37" , PALETTERGB (94, 94, 94) },
590 {"grey37" , PALETTERGB (94, 94, 94) },
591 {"gray38" , PALETTERGB (97, 97, 97) },
592 {"grey38" , PALETTERGB (97, 97, 97) },
593 {"gray39" , PALETTERGB (99, 99, 99) },
594 {"grey39" , PALETTERGB (99, 99, 99) },
595 {"gray40" , PALETTERGB (102, 102, 102) },
596 {"grey40" , PALETTERGB (102, 102, 102) },
597 {"gray41" , PALETTERGB (105, 105, 105) },
598 {"grey41" , PALETTERGB (105, 105, 105) },
599 {"gray42" , PALETTERGB (107, 107, 107) },
600 {"grey42" , PALETTERGB (107, 107, 107) },
601 {"gray43" , PALETTERGB (110, 110, 110) },
602 {"grey43" , PALETTERGB (110, 110, 110) },
603 {"gray44" , PALETTERGB (112, 112, 112) },
604 {"grey44" , PALETTERGB (112, 112, 112) },
605 {"gray45" , PALETTERGB (115, 115, 115) },
606 {"grey45" , PALETTERGB (115, 115, 115) },
607 {"gray46" , PALETTERGB (117, 117, 117) },
608 {"grey46" , PALETTERGB (117, 117, 117) },
609 {"gray47" , PALETTERGB (120, 120, 120) },
610 {"grey47" , PALETTERGB (120, 120, 120) },
611 {"gray48" , PALETTERGB (122, 122, 122) },
612 {"grey48" , PALETTERGB (122, 122, 122) },
613 {"gray49" , PALETTERGB (125, 125, 125) },
614 {"grey49" , PALETTERGB (125, 125, 125) },
615 {"gray50" , PALETTERGB (128, 128, 128) }, /* Adjusted */
616 {"grey50" , PALETTERGB (128, 128, 128) }, /* Adjusted */
617 {"gray51" , PALETTERGB (130, 130, 130) },
618 {"grey51" , PALETTERGB (130, 130, 130) },
619 {"gray52" , PALETTERGB (133, 133, 133) },
620 {"grey52" , PALETTERGB (133, 133, 133) },
621 {"gray53" , PALETTERGB (135, 135, 135) },
622 {"grey53" , PALETTERGB (135, 135, 135) },
623 {"gray54" , PALETTERGB (138, 138, 138) },
624 {"grey54" , PALETTERGB (138, 138, 138) },
625 {"gray55" , PALETTERGB (140, 140, 140) },
626 {"grey55" , PALETTERGB (140, 140, 140) },
627 {"gray56" , PALETTERGB (143, 143, 143) },
628 {"grey56" , PALETTERGB (143, 143, 143) },
629 {"gray57" , PALETTERGB (145, 145, 145) },
630 {"grey57" , PALETTERGB (145, 145, 145) },
631 {"gray58" , PALETTERGB (148, 148, 148) },
632 {"grey58" , PALETTERGB (148, 148, 148) },
633 {"gray59" , PALETTERGB (150, 150, 150) },
634 {"grey59" , PALETTERGB (150, 150, 150) },
635 {"gray60" , PALETTERGB (153, 153, 153) },
636 {"grey60" , PALETTERGB (153, 153, 153) },
637 {"gray61" , PALETTERGB (156, 156, 156) },
638 {"grey61" , PALETTERGB (156, 156, 156) },
639 {"gray62" , PALETTERGB (158, 158, 158) },
640 {"grey62" , PALETTERGB (158, 158, 158) },
641 {"gray63" , PALETTERGB (161, 161, 161) },
642 {"grey63" , PALETTERGB (161, 161, 161) },
643 {"gray64" , PALETTERGB (163, 163, 163) },
644 {"grey64" , PALETTERGB (163, 163, 163) },
645 {"gray65" , PALETTERGB (166, 166, 166) },
646 {"grey65" , PALETTERGB (166, 166, 166) },
647 {"gray66" , PALETTERGB (168, 168, 168) },
648 {"grey66" , PALETTERGB (168, 168, 168) },
649 {"gray67" , PALETTERGB (171, 171, 171) },
650 {"grey67" , PALETTERGB (171, 171, 171) },
651 {"gray68" , PALETTERGB (173, 173, 173) },
652 {"grey68" , PALETTERGB (173, 173, 173) },
653 {"gray69" , PALETTERGB (176, 176, 176) },
654 {"grey69" , PALETTERGB (176, 176, 176) },
655 {"gray70" , PALETTERGB (179, 179, 179) },
656 {"grey70" , PALETTERGB (179, 179, 179) },
657 {"gray71" , PALETTERGB (181, 181, 181) },
658 {"grey71" , PALETTERGB (181, 181, 181) },
659 {"gray72" , PALETTERGB (184, 184, 184) },
660 {"grey72" , PALETTERGB (184, 184, 184) },
661 {"gray73" , PALETTERGB (186, 186, 186) },
662 {"grey73" , PALETTERGB (186, 186, 186) },
663 {"gray74" , PALETTERGB (189, 189, 189) },
664 {"grey74" , PALETTERGB (189, 189, 189) },
665 {"gray75" , PALETTERGB (192, 192, 192) }, /* Adjusted */
666 {"grey75" , PALETTERGB (192, 192, 192) }, /* Adjusted */
667 {"gray76" , PALETTERGB (194, 194, 194) },
668 {"grey76" , PALETTERGB (194, 194, 194) },
669 {"gray77" , PALETTERGB (196, 196, 196) },
670 {"grey77" , PALETTERGB (196, 196, 196) },
671 {"gray78" , PALETTERGB (199, 199, 199) },
672 {"grey78" , PALETTERGB (199, 199, 199) },
673 {"gray79" , PALETTERGB (201, 201, 201) },
674 {"grey79" , PALETTERGB (201, 201, 201) },
675 {"gray80" , PALETTERGB (204, 204, 204) },
676 {"grey80" , PALETTERGB (204, 204, 204) },
677 {"gray81" , PALETTERGB (207, 207, 207) },
678 {"grey81" , PALETTERGB (207, 207, 207) },
679 {"gray82" , PALETTERGB (209, 209, 209) },
680 {"grey82" , PALETTERGB (209, 209, 209) },
681 {"gray83" , PALETTERGB (212, 212, 212) },
682 {"grey83" , PALETTERGB (212, 212, 212) },
683 {"gray84" , PALETTERGB (214, 214, 214) },
684 {"grey84" , PALETTERGB (214, 214, 214) },
685 {"gray85" , PALETTERGB (217, 217, 217) },
686 {"grey85" , PALETTERGB (217, 217, 217) },
687 {"gray86" , PALETTERGB (219, 219, 219) },
688 {"grey86" , PALETTERGB (219, 219, 219) },
689 {"gray87" , PALETTERGB (222, 222, 222) },
690 {"grey87" , PALETTERGB (222, 222, 222) },
691 {"gray88" , PALETTERGB (224, 224, 224) },
692 {"grey88" , PALETTERGB (224, 224, 224) },
693 {"gray89" , PALETTERGB (227, 227, 227) },
694 {"grey89" , PALETTERGB (227, 227, 227) },
695 {"gray90" , PALETTERGB (229, 229, 229) },
696 {"grey90" , PALETTERGB (229, 229, 229) },
697 {"gray91" , PALETTERGB (232, 232, 232) },
698 {"grey91" , PALETTERGB (232, 232, 232) },
699 {"gray92" , PALETTERGB (235, 235, 235) },
700 {"grey92" , PALETTERGB (235, 235, 235) },
701 {"gray93" , PALETTERGB (237, 237, 237) },
702 {"grey93" , PALETTERGB (237, 237, 237) },
703 {"gray94" , PALETTERGB (240, 240, 240) },
704 {"grey94" , PALETTERGB (240, 240, 240) },
705 {"gray95" , PALETTERGB (242, 242, 242) },
706 {"grey95" , PALETTERGB (242, 242, 242) },
707 {"gray96" , PALETTERGB (245, 245, 245) },
708 {"grey96" , PALETTERGB (245, 245, 245) },
709 {"gray97" , PALETTERGB (247, 247, 247) },
710 {"grey97" , PALETTERGB (247, 247, 247) },
711 {"gray98" , PALETTERGB (250, 250, 250) },
712 {"grey98" , PALETTERGB (250, 250, 250) },
713 {"gray99" , PALETTERGB (252, 252, 252) },
714 {"grey99" , PALETTERGB (252, 252, 252) },
715 {"gray100" , PALETTERGB (255, 255, 255) },
716 {"grey100" , PALETTERGB (255, 255, 255) },
717 {"DarkGrey" , PALETTERGB (169, 169, 169) },
718 {"DarkGray" , PALETTERGB (169, 169, 169) },
719 {"DarkBlue" , PALETTERGB (0, 0, 128) }, /* Adjusted == Navy */
720 {"DarkCyan" , PALETTERGB (0, 128, 128) }, /* Adjusted */
721 {"DarkMagenta" , PALETTERGB (128, 0, 128) }, /* Adjusted */
722 {"DarkRed" , PALETTERGB (128, 0, 0) }, /* Adjusted */
723 {"LightGreen" , PALETTERGB (144, 238, 144) },
724 /* Added to match values in the default Windows palette: */
725 {"DarkYellow" , PALETTERGB (128, 128, 0) },
726 {"PaleYellow" , PALETTERGB (255, 255, 128) }
727 }; 729 };
728 730
729 731
730 typedef struct fontmap_t 732 typedef struct fontmap_t
731 { 733 {
925 return c - 'A' + 10; 927 return c - 'A' + 10;
926 else 928 else
927 return c - '0'; 929 return c - '0';
928 } 930 }
929 931
932 static int
933 colormap_t_compare (const void *a, const void *b)
934 {
935 return ascii_strcasecmp (((colormap_t *)a)->name,
936 ((colormap_t *)b)->name);
937 }
938
930 COLORREF 939 COLORREF
931 mswindows_string_to_color (const Ibyte *name) 940 mswindows_string_to_color (const Ibyte *name)
932 { 941 {
933 int i; 942 int i;
934 943
989 else 998 else
990 return (COLORREF) -1; 999 return (COLORREF) -1;
991 } 1000 }
992 else if (*name) /* Can't be an empty string */ 1001 else if (*name) /* Can't be an empty string */
993 { 1002 {
994 Ibyte *nospaces = alloca_ibytes (qxestrlen (name) + 1); 1003 colormap_t key = { alloca_ascbytes (qxestrlen (name) + 1),
995 Ibyte *c = nospaces; 1004 PALETTERGB (255, 255, 255) }, *res;
1005 Ascbyte *c = (Ascbyte *)(key.name);
1006
996 while (*name) 1007 while (*name)
997 if (*name != ' ') 1008 {
998 *c++ = *name++; 1009 if (*name != ' ')
999 else 1010 {
1000 name++; 1011 if (!byte_ascii_p (*name))
1012 {
1013 return (COLORREF) -1;
1014 }
1015
1016 *c++ = *name++;
1017 }
1018 else
1019 {
1020 name++;
1021 }
1022 }
1001 *c = '\0'; 1023 *c = '\0';
1002 1024
1003 for (i = 0; i < countof (mswindows_X_color_map); i++) 1025 if ((res = bsearch (&key, mswindows_X_color_map,
1004 if (!qxestrcasecmp_ascii (nospaces, mswindows_X_color_map[i].name)) 1026 countof (mswindows_X_color_map),
1005 return (mswindows_X_color_map[i].colorref); 1027 sizeof (mswindows_X_color_map[0]),
1028 colormap_t_compare)) != NULL)
1029 {
1030 return res->colorref;
1031 }
1006 } 1032 }
1007 return (COLORREF) -1; 1033 return (COLORREF) -1;
1008 } 1034 }
1009 1035
1010 Lisp_Object 1036 Lisp_Object
2244 mswindows_color_list (void) 2270 mswindows_color_list (void)
2245 { 2271 {
2246 Lisp_Object result = Qnil; 2272 Lisp_Object result = Qnil;
2247 int i; 2273 int i;
2248 2274
2249 for (i = 0; i < countof (mswindows_X_color_map); i++) 2275 for (i = countof (mswindows_X_color_map); i != 0;)
2250 result = Fcons (build_ascstring (mswindows_X_color_map[i].name), result); 2276 result = Fcons (build_ascstring (mswindows_X_color_map[--i].name), result);
2251 2277
2252 return Fnreverse (result); 2278 return result;
2253 } 2279 }
2254 2280
2255 2281
2256 /************************************************************************/ 2282 /************************************************************************/
2257 /* initialization */ 2283 /* initialization */