]> git.saurik.com Git - wxWidgets.git/blob - wxPython/wx/lib/colourdb.py
avoid assert in wxMac port, only change the font point size when we
[wxWidgets.git] / wxPython / wx / lib / colourdb.py
1 #----------------------------------------------------------------------
2 # Name: wxPython.lib.colourdb.py
3 # Purpose: Adds a bunch of colour names and RGB values to the
4 # colour database so they can be found by name
5 #
6 # Author: Robin Dunn
7 #
8 # Created: 13-March-2001
9 # RCS-ID: $Id$
10 # Copyright: (c) 2001 by Total Control Software
11 # Licence: wxWindows license
12 #----------------------------------------------------------------------
13
14 """
15 Load addition color names/values into the wx colour database. These
16 names and values originally came from the rgb.txt file on my system...
17 """
18
19
20 def getColourList():
21 """Returns a list of just the colour names used by this module."""
22 return [ x[0] for x in getColourInfoList() ]
23
24
25
26 def getColourInfoList():
27 """Returns the list of colour name/value tuples used by this module."""
28 return [
29 ("SNOW", 255, 250, 250),
30 ("GHOST WHITE", 248, 248, 255),
31 ("GHOSTWHITE", 248, 248, 255),
32 ("WHITE SMOKE", 245, 245, 245),
33 ("WHITESMOKE", 245, 245, 245),
34 ("GAINSBORO", 220, 220, 220),
35 ("FLORAL WHITE", 255, 250, 240),
36 ("FLORALWHITE", 255, 250, 240),
37 ("OLD LACE", 253, 245, 230),
38 ("OLDLACE", 253, 245, 230),
39 ("LINEN", 250, 240, 230),
40 ("ANTIQUE WHITE", 250, 235, 215),
41 ("ANTIQUEWHITE", 250, 235, 215),
42 ("PAPAYA WHIP", 255, 239, 213),
43 ("PAPAYAWHIP", 255, 239, 213),
44 ("BLANCHED ALMOND", 255, 235, 205),
45 ("BLANCHEDALMOND", 255, 235, 205),
46 ("BISQUE", 255, 228, 196),
47 ("PEACH PUFF", 255, 218, 185),
48 ("PEACHPUFF", 255, 218, 185),
49 ("NAVAJO WHITE", 255, 222, 173),
50 ("NAVAJOWHITE", 255, 222, 173),
51 ("MOCCASIN", 255, 228, 181),
52 ("CORNSILK", 255, 248, 220),
53 ("IVORY", 255, 255, 240),
54 ("LEMON CHIFFON", 255, 250, 205),
55 ("LEMONCHIFFON", 255, 250, 205),
56 ("SEASHELL", 255, 245, 238),
57 ("HONEYDEW", 240, 255, 240),
58 ("MINT CREAM", 245, 255, 250),
59 ("MINTCREAM", 245, 255, 250),
60 ("AZURE", 240, 255, 255),
61 ("ALICE BLUE", 240, 248, 255),
62 ("ALICEBLUE", 240, 248, 255),
63 ("LAVENDER", 230, 230, 250),
64 ("LAVENDER BLUSH", 255, 240, 245),
65 ("LAVENDERBLUSH", 255, 240, 245),
66 ("MISTY ROSE", 255, 228, 225),
67 ("MISTYROSE", 255, 228, 225),
68 ("WHITE", 255, 255, 255),
69 ("BLACK", 0, 0, 0),
70 ("DARK SLATE GREY", 47, 79, 79),
71 ("DARKSLATEGREY", 47, 79, 79),
72 ("DIM GREY", 105, 105, 105),
73 ("DIMGREY", 105, 105, 105),
74 ("SLATE GREY", 112, 128, 144),
75 ("SLATEGREY", 112, 128, 144),
76 ("LIGHT SLATE GREY", 119, 136, 153),
77 ("LIGHTSLATEGREY", 119, 136, 153),
78 ("GREY", 190, 190, 190),
79 ("LIGHT GREY", 211, 211, 211),
80 ("LIGHTGREY", 211, 211, 211),
81 ("MIDNIGHT BLUE", 25, 25, 112),
82 ("MIDNIGHTBLUE", 25, 25, 112),
83 ("NAVY", 0, 0, 128),
84 ("NAVY BLUE", 0, 0, 128),
85 ("NAVYBLUE", 0, 0, 128),
86 ("CORNFLOWER BLUE", 100, 149, 237),
87 ("CORNFLOWERBLUE", 100, 149, 237),
88 ("DARK SLATE BLUE", 72, 61, 139),
89 ("DARKSLATEBLUE", 72, 61, 139),
90 ("SLATE BLUE", 106, 90, 205),
91 ("SLATEBLUE", 106, 90, 205),
92 ("MEDIUM SLATE BLUE", 123, 104, 238),
93 ("MEDIUMSLATEBLUE", 123, 104, 238),
94 ("LIGHT SLATE BLUE", 132, 112, 255),
95 ("LIGHTSLATEBLUE", 132, 112, 255),
96 ("MEDIUM BLUE", 0, 0, 205),
97 ("MEDIUMBLUE", 0, 0, 205),
98 ("ROYAL BLUE", 65, 105, 225),
99 ("ROYALBLUE", 65, 105, 225),
100 ("BLUE", 0, 0, 255),
101 ("DODGER BLUE", 30, 144, 255),
102 ("DODGERBLUE", 30, 144, 255),
103 ("DEEP SKY BLUE", 0, 191, 255),
104 ("DEEPSKYBLUE", 0, 191, 255),
105 ("SKY BLUE", 135, 206, 235),
106 ("SKYBLUE", 135, 206, 235),
107 ("LIGHT SKY BLUE", 135, 206, 250),
108 ("LIGHTSKYBLUE", 135, 206, 250),
109 ("STEEL BLUE", 70, 130, 180),
110 ("STEELBLUE", 70, 130, 180),
111 ("LIGHT STEEL BLUE", 176, 196, 222),
112 ("LIGHTSTEELBLUE", 176, 196, 222),
113 ("LIGHT BLUE", 173, 216, 230),
114 ("LIGHTBLUE", 173, 216, 230),
115 ("POWDER BLUE", 176, 224, 230),
116 ("POWDERBLUE", 176, 224, 230),
117 ("PALE TURQUOISE", 175, 238, 238),
118 ("PALETURQUOISE", 175, 238, 238),
119 ("DARK TURQUOISE", 0, 206, 209),
120 ("DARKTURQUOISE", 0, 206, 209),
121 ("MEDIUM TURQUOISE", 72, 209, 204),
122 ("MEDIUMTURQUOISE", 72, 209, 204),
123 ("TURQUOISE", 64, 224, 208),
124 ("CYAN", 0, 255, 255),
125 ("LIGHT CYAN", 224, 255, 255),
126 ("LIGHTCYAN", 224, 255, 255),
127 ("CADET BLUE", 95, 158, 160),
128 ("CADETBLUE", 95, 158, 160),
129 ("MEDIUM AQUAMARINE", 102, 205, 170),
130 ("MEDIUMAQUAMARINE", 102, 205, 170),
131 ("AQUAMARINE", 127, 255, 212),
132 ("DARK GREEN", 0, 100, 0),
133 ("DARKGREEN", 0, 100, 0),
134 ("DARK OLIVE GREEN", 85, 107, 47),
135 ("DARKOLIVEGREEN", 85, 107, 47),
136 ("DARK SEA GREEN", 143, 188, 143),
137 ("DARKSEAGREEN", 143, 188, 143),
138 ("SEA GREEN", 46, 139, 87),
139 ("SEAGREEN", 46, 139, 87),
140 ("MEDIUM SEA GREEN", 60, 179, 113),
141 ("MEDIUMSEAGREEN", 60, 179, 113),
142 ("LIGHT SEA GREEN", 32, 178, 170),
143 ("LIGHTSEAGREEN", 32, 178, 170),
144 ("PALE GREEN", 152, 251, 152),
145 ("PALEGREEN", 152, 251, 152),
146 ("SPRING GREEN", 0, 255, 127),
147 ("SPRINGGREEN", 0, 255, 127),
148 ("LAWN GREEN", 124, 252, 0),
149 ("LAWNGREEN", 124, 252, 0),
150 ("GREEN", 0, 255, 0),
151 ("CHARTREUSE", 127, 255, 0),
152 ("MEDIUM SPRING GREEN", 0, 250, 154),
153 ("MEDIUMSPRINGGREEN", 0, 250, 154),
154 ("GREEN YELLOW", 173, 255, 47),
155 ("GREENYELLOW", 173, 255, 47),
156 ("LIME GREEN", 50, 205, 50),
157 ("LIMEGREEN", 50, 205, 50),
158 ("YELLOW GREEN", 154, 205, 50),
159 ("YELLOWGREEN", 154, 205, 50),
160 ("FOREST GREEN", 34, 139, 34),
161 ("FORESTGREEN", 34, 139, 34),
162 ("OLIVE DRAB", 107, 142, 35),
163 ("OLIVEDRAB", 107, 142, 35),
164 ("DARK KHAKI", 189, 183, 107),
165 ("DARKKHAKI", 189, 183, 107),
166 ("KHAKI", 240, 230, 140),
167 ("PALE GOLDENROD", 238, 232, 170),
168 ("PALEGOLDENROD", 238, 232, 170),
169 ("LIGHT GOLDENROD YELLOW", 250, 250, 210),
170 ("LIGHTGOLDENRODYELLOW", 250, 250, 210),
171 ("LIGHT YELLOW", 255, 255, 224),
172 ("LIGHTYELLOW", 255, 255, 224),
173 ("YELLOW", 255, 255, 0),
174 ("GOLD", 255, 215, 0),
175 ("LIGHT GOLDENROD", 238, 221, 130),
176 ("LIGHTGOLDENROD", 238, 221, 130),
177 ("GOLDENROD", 218, 165, 32),
178 ("DARK GOLDENROD", 184, 134, 11),
179 ("DARKGOLDENROD", 184, 134, 11),
180 ("ROSY BROWN", 188, 143, 143),
181 ("ROSYBROWN", 188, 143, 143),
182 ("INDIAN RED", 205, 92, 92),
183 ("INDIANRED", 205, 92, 92),
184 ("SADDLE BROWN", 139, 69, 19),
185 ("SADDLEBROWN", 139, 69, 19),
186 ("SIENNA", 160, 82, 45),
187 ("PERU", 205, 133, 63),
188 ("BURLYWOOD", 222, 184, 135),
189 ("BEIGE", 245, 245, 220),
190 ("WHEAT", 245, 222, 179),
191 ("SANDY BROWN", 244, 164, 96),
192 ("SANDYBROWN", 244, 164, 96),
193 ("TAN", 210, 180, 140),
194 ("CHOCOLATE", 210, 105, 30),
195 ("FIREBRICK", 178, 34, 34),
196 ("BROWN", 165, 42, 42),
197 ("DARK SALMON", 233, 150, 122),
198 ("DARKSALMON", 233, 150, 122),
199 ("SALMON", 250, 128, 114),
200 ("LIGHT SALMON", 255, 160, 122),
201 ("LIGHTSALMON", 255, 160, 122),
202 ("ORANGE", 255, 165, 0),
203 ("DARK ORANGE", 255, 140, 0),
204 ("DARKORANGE", 255, 140, 0),
205 ("CORAL", 255, 127, 80),
206 ("LIGHT CORAL", 240, 128, 128),
207 ("LIGHTCORAL", 240, 128, 128),
208 ("TOMATO", 255, 99, 71),
209 ("ORANGE RED", 255, 69, 0),
210 ("ORANGERED", 255, 69, 0),
211 ("RED", 255, 0, 0),
212 ("HOT PINK", 255, 105, 180),
213 ("HOTPINK", 255, 105, 180),
214 ("DEEP PINK", 255, 20, 147),
215 ("DEEPPINK", 255, 20, 147),
216 ("PINK", 255, 192, 203),
217 ("LIGHT PINK", 255, 182, 193),
218 ("LIGHTPINK", 255, 182, 193),
219 ("PALE VIOLET RED", 219, 112, 147),
220 ("PALEVIOLETRED", 219, 112, 147),
221 ("MAROON", 176, 48, 96),
222 ("MEDIUM VIOLET RED", 199, 21, 133),
223 ("MEDIUMVIOLETRED", 199, 21, 133),
224 ("VIOLET RED", 208, 32, 144),
225 ("VIOLETRED", 208, 32, 144),
226 ("MAGENTA", 255, 0, 255),
227 ("VIOLET", 238, 130, 238),
228 ("PLUM", 221, 160, 221),
229 ("ORCHID", 218, 112, 214),
230 ("MEDIUM ORCHID", 186, 85, 211),
231 ("MEDIUMORCHID", 186, 85, 211),
232 ("DARK ORCHID", 153, 50, 204),
233 ("DARKORCHID", 153, 50, 204),
234 ("DARK VIOLET", 148, 0, 211),
235 ("DARKVIOLET", 148, 0, 211),
236 ("BLUE VIOLET", 138, 43, 226),
237 ("BLUEVIOLET", 138, 43, 226),
238 ("PURPLE", 160, 32, 240),
239 ("MEDIUM PURPLE", 147, 112, 219),
240 ("MEDIUMPURPLE", 147, 112, 219),
241 ("THISTLE", 216, 191, 216),
242 ("SNOW1", 255, 250, 250),
243 ("SNOW2", 238, 233, 233),
244 ("SNOW3", 205, 201, 201),
245 ("SNOW4", 139, 137, 137),
246 ("SEASHELL1", 255, 245, 238),
247 ("SEASHELL2", 238, 229, 222),
248 ("SEASHELL3", 205, 197, 191),
249 ("SEASHELL4", 139, 134, 130),
250 ("ANTIQUEWHITE1", 255, 239, 219),
251 ("ANTIQUEWHITE2", 238, 223, 204),
252 ("ANTIQUEWHITE3", 205, 192, 176),
253 ("ANTIQUEWHITE4", 139, 131, 120),
254 ("BISQUE1", 255, 228, 196),
255 ("BISQUE2", 238, 213, 183),
256 ("BISQUE3", 205, 183, 158),
257 ("BISQUE4", 139, 125, 107),
258 ("PEACHPUFF1", 255, 218, 185),
259 ("PEACHPUFF2", 238, 203, 173),
260 ("PEACHPUFF3", 205, 175, 149),
261 ("PEACHPUFF4", 139, 119, 101),
262 ("NAVAJOWHITE1", 255, 222, 173),
263 ("NAVAJOWHITE2", 238, 207, 161),
264 ("NAVAJOWHITE3", 205, 179, 139),
265 ("NAVAJOWHITE4", 139, 121, 94),
266 ("LEMONCHIFFON1", 255, 250, 205),
267 ("LEMONCHIFFON2", 238, 233, 191),
268 ("LEMONCHIFFON3", 205, 201, 165),
269 ("LEMONCHIFFON4", 139, 137, 112),
270 ("CORNSILK1", 255, 248, 220),
271 ("CORNSILK2", 238, 232, 205),
272 ("CORNSILK3", 205, 200, 177),
273 ("CORNSILK4", 139, 136, 120),
274 ("IVORY1", 255, 255, 240),
275 ("IVORY2", 238, 238, 224),
276 ("IVORY3", 205, 205, 193),
277 ("IVORY4", 139, 139, 131),
278 ("HONEYDEW1", 240, 255, 240),
279 ("HONEYDEW2", 224, 238, 224),
280 ("HONEYDEW3", 193, 205, 193),
281 ("HONEYDEW4", 131, 139, 131),
282 ("LAVENDERBLUSH1", 255, 240, 245),
283 ("LAVENDERBLUSH2", 238, 224, 229),
284 ("LAVENDERBLUSH3", 205, 193, 197),
285 ("LAVENDERBLUSH4", 139, 131, 134),
286 ("MISTYROSE1", 255, 228, 225),
287 ("MISTYROSE2", 238, 213, 210),
288 ("MISTYROSE3", 205, 183, 181),
289 ("MISTYROSE4", 139, 125, 123),
290 ("AZURE1", 240, 255, 255),
291 ("AZURE2", 224, 238, 238),
292 ("AZURE3", 193, 205, 205),
293 ("AZURE4", 131, 139, 139),
294 ("SLATEBLUE1", 131, 111, 255),
295 ("SLATEBLUE2", 122, 103, 238),
296 ("SLATEBLUE3", 105, 89, 205),
297 ("SLATEBLUE4", 71, 60, 139),
298 ("ROYALBLUE1", 72, 118, 255),
299 ("ROYALBLUE2", 67, 110, 238),
300 ("ROYALBLUE3", 58, 95, 205),
301 ("ROYALBLUE4", 39, 64, 139),
302 ("BLUE1", 0, 0, 255),
303 ("BLUE2", 0, 0, 238),
304 ("BLUE3", 0, 0, 205),
305 ("BLUE4", 0, 0, 139),
306 ("DODGERBLUE1", 30, 144, 255),
307 ("DODGERBLUE2", 28, 134, 238),
308 ("DODGERBLUE3", 24, 116, 205),
309 ("DODGERBLUE4", 16, 78, 139),
310 ("STEELBLUE1", 99, 184, 255),
311 ("STEELBLUE2", 92, 172, 238),
312 ("STEELBLUE3", 79, 148, 205),
313 ("STEELBLUE4", 54, 100, 139),
314 ("DEEPSKYBLUE1", 0, 191, 255),
315 ("DEEPSKYBLUE2", 0, 178, 238),
316 ("DEEPSKYBLUE3", 0, 154, 205),
317 ("DEEPSKYBLUE4", 0, 104, 139),
318 ("SKYBLUE1", 135, 206, 255),
319 ("SKYBLUE2", 126, 192, 238),
320 ("SKYBLUE3", 108, 166, 205),
321 ("SKYBLUE4", 74, 112, 139),
322 ("LIGHTSKYBLUE1", 176, 226, 255),
323 ("LIGHTSKYBLUE2", 164, 211, 238),
324 ("LIGHTSKYBLUE3", 141, 182, 205),
325 ("LIGHTSKYBLUE4", 96, 123, 139),
326 ("LIGHTSTEELBLUE1", 202, 225, 255),
327 ("LIGHTSTEELBLUE2", 188, 210, 238),
328 ("LIGHTSTEELBLUE3", 162, 181, 205),
329 ("LIGHTSTEELBLUE4", 110, 123, 139),
330 ("LIGHTBLUE1", 191, 239, 255),
331 ("LIGHTBLUE2", 178, 223, 238),
332 ("LIGHTBLUE3", 154, 192, 205),
333 ("LIGHTBLUE4", 104, 131, 139),
334 ("LIGHTCYAN1", 224, 255, 255),
335 ("LIGHTCYAN2", 209, 238, 238),
336 ("LIGHTCYAN3", 180, 205, 205),
337 ("LIGHTCYAN4", 122, 139, 139),
338 ("PALETURQUOISE1", 187, 255, 255),
339 ("PALETURQUOISE2", 174, 238, 238),
340 ("PALETURQUOISE3", 150, 205, 205),
341 ("PALETURQUOISE4", 102, 139, 139),
342 ("CADETBLUE1", 152, 245, 255),
343 ("CADETBLUE2", 142, 229, 238),
344 ("CADETBLUE3", 122, 197, 205),
345 ("CADETBLUE4", 83, 134, 139),
346 ("TURQUOISE1", 0, 245, 255),
347 ("TURQUOISE2", 0, 229, 238),
348 ("TURQUOISE3", 0, 197, 205),
349 ("TURQUOISE4", 0, 134, 139),
350 ("CYAN1", 0, 255, 255),
351 ("CYAN2", 0, 238, 238),
352 ("CYAN3", 0, 205, 205),
353 ("CYAN4", 0, 139, 139),
354 ("AQUAMARINE1", 127, 255, 212),
355 ("AQUAMARINE2", 118, 238, 198),
356 ("AQUAMARINE3", 102, 205, 170),
357 ("AQUAMARINE4", 69, 139, 116),
358 ("DARKSEAGREEN1", 193, 255, 193),
359 ("DARKSEAGREEN2", 180, 238, 180),
360 ("DARKSEAGREEN3", 155, 205, 155),
361 ("DARKSEAGREEN4", 105, 139, 105),
362 ("SEAGREEN1", 84, 255, 159),
363 ("SEAGREEN2", 78, 238, 148),
364 ("SEAGREEN3", 67, 205, 128),
365 ("SEAGREEN4", 46, 139, 87),
366 ("PALEGREEN1", 154, 255, 154),
367 ("PALEGREEN2", 144, 238, 144),
368 ("PALEGREEN3", 124, 205, 124),
369 ("PALEGREEN4", 84, 139, 84),
370 ("SPRINGGREEN1", 0, 255, 127),
371 ("SPRINGGREEN2", 0, 238, 118),
372 ("SPRINGGREEN3", 0, 205, 102),
373 ("SPRINGGREEN4", 0, 139, 69),
374 ("GREEN1", 0, 255, 0),
375 ("GREEN2", 0, 238, 0),
376 ("GREEN3", 0, 205, 0),
377 ("GREEN4", 0, 139, 0),
378 ("CHARTREUSE1", 127, 255, 0),
379 ("CHARTREUSE2", 118, 238, 0),
380 ("CHARTREUSE3", 102, 205, 0),
381 ("CHARTREUSE4", 69, 139, 0),
382 ("OLIVEDRAB1", 192, 255, 62),
383 ("OLIVEDRAB2", 179, 238, 58),
384 ("OLIVEDRAB3", 154, 205, 50),
385 ("OLIVEDRAB4", 105, 139, 34),
386 ("DARKOLIVEGREEN1", 202, 255, 112),
387 ("DARKOLIVEGREEN2", 188, 238, 104),
388 ("DARKOLIVEGREEN3", 162, 205, 90),
389 ("DARKOLIVEGREEN4", 110, 139, 61),
390 ("KHAKI1", 255, 246, 143),
391 ("KHAKI2", 238, 230, 133),
392 ("KHAKI3", 205, 198, 115),
393 ("KHAKI4", 139, 134, 78),
394 ("LIGHTGOLDENROD1", 255, 236, 139),
395 ("LIGHTGOLDENROD2", 238, 220, 130),
396 ("LIGHTGOLDENROD3", 205, 190, 112),
397 ("LIGHTGOLDENROD4", 139, 129, 76),
398 ("LIGHTYELLOW1", 255, 255, 224),
399 ("LIGHTYELLOW2", 238, 238, 209),
400 ("LIGHTYELLOW3", 205, 205, 180),
401 ("LIGHTYELLOW4", 139, 139, 122),
402 ("YELLOW1", 255, 255, 0),
403 ("YELLOW2", 238, 238, 0),
404 ("YELLOW3", 205, 205, 0),
405 ("YELLOW4", 139, 139, 0),
406 ("GOLD1", 255, 215, 0),
407 ("GOLD2", 238, 201, 0),
408 ("GOLD3", 205, 173, 0),
409 ("GOLD4", 139, 117, 0),
410 ("GOLDENROD1", 255, 193, 37),
411 ("GOLDENROD2", 238, 180, 34),
412 ("GOLDENROD3", 205, 155, 29),
413 ("GOLDENROD4", 139, 105, 20),
414 ("DARKGOLDENROD1", 255, 185, 15),
415 ("DARKGOLDENROD2", 238, 173, 14),
416 ("DARKGOLDENROD3", 205, 149, 12),
417 ("DARKGOLDENROD4", 139, 101, 8),
418 ("ROSYBROWN1", 255, 193, 193),
419 ("ROSYBROWN2", 238, 180, 180),
420 ("ROSYBROWN3", 205, 155, 155),
421 ("ROSYBROWN4", 139, 105, 105),
422 ("INDIANRED1", 255, 106, 106),
423 ("INDIANRED2", 238, 99, 99),
424 ("INDIANRED3", 205, 85, 85),
425 ("INDIANRED4", 139, 58, 58),
426 ("SIENNA1", 255, 130, 71),
427 ("SIENNA2", 238, 121, 66),
428 ("SIENNA3", 205, 104, 57),
429 ("SIENNA4", 139, 71, 38),
430 ("BURLYWOOD1", 255, 211, 155),
431 ("BURLYWOOD2", 238, 197, 145),
432 ("BURLYWOOD3", 205, 170, 125),
433 ("BURLYWOOD4", 139, 115, 85),
434 ("WHEAT1", 255, 231, 186),
435 ("WHEAT2", 238, 216, 174),
436 ("WHEAT3", 205, 186, 150),
437 ("WHEAT4", 139, 126, 102),
438 ("TAN1", 255, 165, 79),
439 ("TAN2", 238, 154, 73),
440 ("TAN3", 205, 133, 63),
441 ("TAN4", 139, 90, 43),
442 ("CHOCOLATE1", 255, 127, 36),
443 ("CHOCOLATE2", 238, 118, 33),
444 ("CHOCOLATE3", 205, 102, 29),
445 ("CHOCOLATE4", 139, 69, 19),
446 ("FIREBRICK1", 255, 48, 48),
447 ("FIREBRICK2", 238, 44, 44),
448 ("FIREBRICK3", 205, 38, 38),
449 ("FIREBRICK4", 139, 26, 26),
450 ("BROWN1", 255, 64, 64),
451 ("BROWN2", 238, 59, 59),
452 ("BROWN3", 205, 51, 51),
453 ("BROWN4", 139, 35, 35),
454 ("SALMON1", 255, 140, 105),
455 ("SALMON2", 238, 130, 98),
456 ("SALMON3", 205, 112, 84),
457 ("SALMON4", 139, 76, 57),
458 ("LIGHTSALMON1", 255, 160, 122),
459 ("LIGHTSALMON2", 238, 149, 114),
460 ("LIGHTSALMON3", 205, 129, 98),
461 ("LIGHTSALMON4", 139, 87, 66),
462 ("ORANGE1", 255, 165, 0),
463 ("ORANGE2", 238, 154, 0),
464 ("ORANGE3", 205, 133, 0),
465 ("ORANGE4", 139, 90, 0),
466 ("DARKORANGE1", 255, 127, 0),
467 ("DARKORANGE2", 238, 118, 0),
468 ("DARKORANGE3", 205, 102, 0),
469 ("DARKORANGE4", 139, 69, 0),
470 ("CORAL1", 255, 114, 86),
471 ("CORAL2", 238, 106, 80),
472 ("CORAL3", 205, 91, 69),
473 ("CORAL4", 139, 62, 47),
474 ("TOMATO1", 255, 99, 71),
475 ("TOMATO2", 238, 92, 66),
476 ("TOMATO3", 205, 79, 57),
477 ("TOMATO4", 139, 54, 38),
478 ("ORANGERED1", 255, 69, 0),
479 ("ORANGERED2", 238, 64, 0),
480 ("ORANGERED3", 205, 55, 0),
481 ("ORANGERED4", 139, 37, 0),
482 ("RED1", 255, 0, 0),
483 ("RED2", 238, 0, 0),
484 ("RED3", 205, 0, 0),
485 ("RED4", 139, 0, 0),
486 ("DEEPPINK1", 255, 20, 147),
487 ("DEEPPINK2", 238, 18, 137),
488 ("DEEPPINK3", 205, 16, 118),
489 ("DEEPPINK4", 139, 10, 80),
490 ("HOTPINK1", 255, 110, 180),
491 ("HOTPINK2", 238, 106, 167),
492 ("HOTPINK3", 205, 96, 144),
493 ("HOTPINK4", 139, 58, 98),
494 ("PINK1", 255, 181, 197),
495 ("PINK2", 238, 169, 184),
496 ("PINK3", 205, 145, 158),
497 ("PINK4", 139, 99, 108),
498 ("LIGHTPINK1", 255, 174, 185),
499 ("LIGHTPINK2", 238, 162, 173),
500 ("LIGHTPINK3", 205, 140, 149),
501 ("LIGHTPINK4", 139, 95, 101),
502 ("PALEVIOLETRED1", 255, 130, 171),
503 ("PALEVIOLETRED2", 238, 121, 159),
504 ("PALEVIOLETRED3", 205, 104, 137),
505 ("PALEVIOLETRED4", 139, 71, 93),
506 ("MAROON1", 255, 52, 179),
507 ("MAROON2", 238, 48, 167),
508 ("MAROON3", 205, 41, 144),
509 ("MAROON4", 139, 28, 98),
510 ("VIOLETRED1", 255, 62, 150),
511 ("VIOLETRED2", 238, 58, 140),
512 ("VIOLETRED3", 205, 50, 120),
513 ("VIOLETRED4", 139, 34, 82),
514 ("MAGENTA1", 255, 0, 255),
515 ("MAGENTA2", 238, 0, 238),
516 ("MAGENTA3", 205, 0, 205),
517 ("MAGENTA4", 139, 0, 139),
518 ("ORCHID1", 255, 131, 250),
519 ("ORCHID2", 238, 122, 233),
520 ("ORCHID3", 205, 105, 201),
521 ("ORCHID4", 139, 71, 137),
522 ("PLUM1", 255, 187, 255),
523 ("PLUM2", 238, 174, 238),
524 ("PLUM3", 205, 150, 205),
525 ("PLUM4", 139, 102, 139),
526 ("MEDIUMORCHID1", 224, 102, 255),
527 ("MEDIUMORCHID2", 209, 95, 238),
528 ("MEDIUMORCHID3", 180, 82, 205),
529 ("MEDIUMORCHID4", 122, 55, 139),
530 ("DARKORCHID1", 191, 62, 255),
531 ("DARKORCHID2", 178, 58, 238),
532 ("DARKORCHID3", 154, 50, 205),
533 ("DARKORCHID4", 104, 34, 139),
534 ("PURPLE1", 155, 48, 255),
535 ("PURPLE2", 145, 44, 238),
536 ("PURPLE3", 125, 38, 205),
537 ("PURPLE4", 85, 26, 139),
538 ("MEDIUMPURPLE1", 171, 130, 255),
539 ("MEDIUMPURPLE2", 159, 121, 238),
540 ("MEDIUMPURPLE3", 137, 104, 205),
541 ("MEDIUMPURPLE4", 93, 71, 139),
542 ("THISTLE1", 255, 225, 255),
543 ("THISTLE2", 238, 210, 238),
544 ("THISTLE3", 205, 181, 205),
545 ("THISTLE4", 139, 123, 139),
546 ("GREY0", 0, 0, 0),
547 ("GREY1", 3, 3, 3),
548 ("GREY2", 5, 5, 5),
549 ("GREY3", 8, 8, 8),
550 ("GREY4", 10, 10, 10),
551 ("GREY5", 13, 13, 13),
552 ("GREY6", 15, 15, 15),
553 ("GREY7", 18, 18, 18),
554 ("GREY8", 20, 20, 20),
555 ("GREY9", 23, 23, 23),
556 ("GREY10", 26, 26, 26),
557 ("GREY11", 28, 28, 28),
558 ("GREY12", 31, 31, 31),
559 ("GREY13", 33, 33, 33),
560 ("GREY14", 36, 36, 36),
561 ("GREY15", 38, 38, 38),
562 ("GREY16", 41, 41, 41),
563 ("GREY17", 43, 43, 43),
564 ("GREY18", 46, 46, 46),
565 ("GREY19", 48, 48, 48),
566 ("GREY20", 51, 51, 51),
567 ("GREY21", 54, 54, 54),
568 ("GREY22", 56, 56, 56),
569 ("GREY23", 59, 59, 59),
570 ("GREY24", 61, 61, 61),
571 ("GREY25", 64, 64, 64),
572 ("GREY26", 66, 66, 66),
573 ("GREY27", 69, 69, 69),
574 ("GREY28", 71, 71, 71),
575 ("GREY29", 74, 74, 74),
576 ("GREY30", 77, 77, 77),
577 ("GREY31", 79, 79, 79),
578 ("GREY32", 82, 82, 82),
579 ("GREY33", 84, 84, 84),
580 ("GREY34", 87, 87, 87),
581 ("GREY35", 89, 89, 89),
582 ("GREY36", 92, 92, 92),
583 ("GREY37", 94, 94, 94),
584 ("GREY38", 97, 97, 97),
585 ("GREY39", 99, 99, 99),
586 ("GREY40", 102, 102, 102),
587 ("GREY41", 105, 105, 105),
588 ("GREY42", 107, 107, 107),
589 ("GREY43", 110, 110, 110),
590 ("GREY44", 112, 112, 112),
591 ("GREY45", 115, 115, 115),
592 ("GREY46", 117, 117, 117),
593 ("GREY47", 120, 120, 120),
594 ("GREY48", 122, 122, 122),
595 ("GREY49", 125, 125, 125),
596 ("GREY50", 127, 127, 127),
597 ("GREY51", 130, 130, 130),
598 ("GREY52", 133, 133, 133),
599 ("GREY53", 135, 135, 135),
600 ("GREY54", 138, 138, 138),
601 ("GREY55", 140, 140, 140),
602 ("GREY56", 143, 143, 143),
603 ("GREY57", 145, 145, 145),
604 ("GREY58", 148, 148, 148),
605 ("GREY59", 150, 150, 150),
606 ("GREY60", 153, 153, 153),
607 ("GREY61", 156, 156, 156),
608 ("GREY62", 158, 158, 158),
609 ("GREY63", 161, 161, 161),
610 ("GREY64", 163, 163, 163),
611 ("GREY65", 166, 166, 166),
612 ("GREY66", 168, 168, 168),
613 ("GREY67", 171, 171, 171),
614 ("GREY68", 173, 173, 173),
615 ("GREY69", 176, 176, 176),
616 ("GREY70", 179, 179, 179),
617 ("GREY71", 181, 181, 181),
618 ("GREY72", 184, 184, 184),
619 ("GREY73", 186, 186, 186),
620 ("GREY74", 189, 189, 189),
621 ("GREY75", 191, 191, 191),
622 ("GREY76", 194, 194, 194),
623 ("GREY77", 196, 196, 196),
624 ("GREY78", 199, 199, 199),
625 ("GREY79", 201, 201, 201),
626 ("GREY80", 204, 204, 204),
627 ("GREY81", 207, 207, 207),
628 ("GREY82", 209, 209, 209),
629 ("GREY83", 212, 212, 212),
630 ("GREY84", 214, 214, 214),
631 ("GREY85", 217, 217, 217),
632 ("GREY86", 219, 219, 219),
633 ("GREY87", 222, 222, 222),
634 ("GREY88", 224, 224, 224),
635 ("GREY89", 227, 227, 227),
636 ("GREY90", 229, 229, 229),
637 ("GREY91", 232, 232, 232),
638 ("GREY92", 235, 235, 235),
639 ("GREY93", 237, 237, 237),
640 ("GREY94", 240, 240, 240),
641 ("GREY95", 242, 242, 242),
642 ("GREY96", 245, 245, 245),
643 ("GREY97", 247, 247, 247),
644 ("GREY98", 250, 250, 250),
645 ("GREY99", 252, 252, 252),
646 ("GREY100", 255, 255, 255),
647 ("DARK GREY", 169, 169, 169),
648 ("DARKGREY", 169, 169, 169),
649 ("DARK BLUE", 0, 0, 139),
650 ("DARKBLUE", 0, 0, 139),
651 ("DARK CYAN", 0, 139, 139),
652 ("DARKCYAN", 0, 139, 139),
653 ("DARK MAGENTA", 139, 0, 139),
654 ("DARKMAGENTA", 139, 0, 139),
655 ("DARK RED", 139, 0, 0),
656 ("DARKRED", 139, 0, 0),
657 ("LIGHT GREEN", 144, 238, 144),
658 ("LIGHTGREEN", 144, 238, 144),
659 ]
660
661
662 _haveUpdated = False
663
664 def updateColourDB():
665 """Updates the wx colour database by adding new colour names and RGB values."""
666 global _haveUpdated
667 if not _haveUpdated:
668 import wx
669 assert wx.GetApp() is not None, "You must have a wx.App object before you can use the colour database."
670 cl = getColourInfoList()
671
672 for info in cl:
673 wx.TheColourDatabase.Append(*info)
674
675 _haveUpdated = True
676