]> git.imager.perl.org - imager.git/blob - lib/Imager/Color/Table.pm
only prepend ./ to font filenames when passing them to T1Lib and
[imager.git] / lib / Imager / Color / Table.pm
1 package Imager::Color::Table;
2 use strict;
3 use vars qw($VERSION);
4
5 $VERSION = "1.003";
6
7     my %colors;
8
9 {
10   local $_;
11   while (<DATA>) {
12     next if /^#/ or !/\S/;
13     chomp;
14     my ($r, $g, $b, $name) = split ' ', $_, 4;
15     if ($name) {
16       $colors{lc $name} = [ $r, $g, $b ];
17     }
18   } 
19 }
20
21 sub get {
22   my ($class, $name) = @_;
23
24   exists $colors{lc $name} or return;
25
26   return @{$colors{lc $name}};
27 }
28
29 1;
30
31 __DATA__
32 # This color data was extracted from the freedesktop.org CVS tree, and
33 # appears to be under the following license:
34 #
35 # Copyright (C) 2004 X Consortium
36
37 # Permission is hereby granted, free of charge, to any person obtaining a copy
38 # of this software and associated documentation files (the "Software"), to
39 # deal in the Software without restriction, including without limitation the
40 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
41 # sell copies of the Software, and to permit persons to whom the Software is
42 # furnished to do so, subject to the following conditions:
43
44 # The above copyright notice and this permission notice shall be included in
45 # all copies or substantial portions of the Software.
46
47 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
48 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
49 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
50 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
51 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
52 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
53
54 # Except as contained in this notice, the name of the X Consortium shall not
55 # be used in advertising or otherwise to promote the sale, use or other deal-
56 # ings in this Software without prior written authorization from the X Consor-
57 # tium.
58
59 # X Window System is a trademark of X Consortium, Inc.
60
61 255 250 250             snow
62 248 248 255             ghost white
63 248 248 255             GhostWhite
64 245 245 245             white smoke
65 245 245 245             WhiteSmoke
66 220 220 220             gainsboro
67 255 250 240             floral white
68 255 250 240             FloralWhite
69 253 245 230             old lace
70 253 245 230             OldLace
71 250 240 230             linen
72 250 235 215             antique white
73 250 235 215             AntiqueWhite
74 255 239 213             papaya whip
75 255 239 213             PapayaWhip
76 255 235 205             blanched almond
77 255 235 205             BlanchedAlmond
78 255 228 196             bisque
79 255 218 185             peach puff
80 255 218 185             PeachPuff
81 255 222 173             navajo white
82 255 222 173             NavajoWhite
83 255 228 181             moccasin
84 255 248 220             cornsilk
85 255 255 240             ivory
86 255 250 205             lemon chiffon
87 255 250 205             LemonChiffon
88 255 245 238             seashell
89 240 255 240             honeydew
90 245 255 250             mint cream
91 245 255 250             MintCream
92 240 255 255             azure
93 240 248 255             alice blue
94 240 248 255             AliceBlue
95 230 230 250             lavender
96 255 240 245             lavender blush
97 255 240 245             LavenderBlush
98 255 228 225             misty rose
99 255 228 225             MistyRose
100 255 255 255             white
101   0   0   0             black
102  47  79  79             dark slate gray
103  47  79  79             DarkSlateGray
104  47  79  79             dark slate grey
105  47  79  79             DarkSlateGrey
106 105 105 105             dim gray
107 105 105 105             DimGray
108 105 105 105             dim grey
109 105 105 105             DimGrey
110 112 128 144             slate gray
111 112 128 144             SlateGray
112 112 128 144             slate grey
113 112 128 144             SlateGrey
114 119 136 153             light slate gray
115 119 136 153             LightSlateGray
116 119 136 153             light slate grey
117 119 136 153             LightSlateGrey
118 190 190 190             gray
119 190 190 190             grey
120 211 211 211             light grey
121 211 211 211             LightGrey
122 211 211 211             light gray
123 211 211 211             LightGray
124  25  25 112             midnight blue
125  25  25 112             MidnightBlue
126   0   0 128             navy
127   0   0 128             navy blue
128   0   0 128             NavyBlue
129 100 149 237             cornflower blue
130 100 149 237             CornflowerBlue
131  72  61 139             dark slate blue
132  72  61 139             DarkSlateBlue
133 106  90 205             slate blue
134 106  90 205             SlateBlue
135 123 104 238             medium slate blue
136 123 104 238             MediumSlateBlue
137 132 112 255             light slate blue
138 132 112 255             LightSlateBlue
139   0   0 205             medium blue
140   0   0 205             MediumBlue
141  65 105 225             royal blue
142  65 105 225             RoyalBlue
143   0   0 255             blue
144  30 144 255             dodger blue
145  30 144 255             DodgerBlue
146   0 191 255             deep sky blue
147   0 191 255             DeepSkyBlue
148 135 206 235             sky blue
149 135 206 235             SkyBlue
150 135 206 250             light sky blue
151 135 206 250             LightSkyBlue
152  70 130 180             steel blue
153  70 130 180             SteelBlue
154 176 196 222             light steel blue
155 176 196 222             LightSteelBlue
156 173 216 230             light blue
157 173 216 230             LightBlue
158 176 224 230             powder blue
159 176 224 230             PowderBlue
160 175 238 238             pale turquoise
161 175 238 238             PaleTurquoise
162   0 206 209             dark turquoise
163   0 206 209             DarkTurquoise
164  72 209 204             medium turquoise
165  72 209 204             MediumTurquoise
166  64 224 208             turquoise
167   0 255 255             cyan
168 224 255 255             light cyan
169 224 255 255             LightCyan
170  95 158 160             cadet blue
171  95 158 160             CadetBlue
172 102 205 170             medium aquamarine
173 102 205 170             MediumAquamarine
174 127 255 212             aquamarine
175   0 100   0             dark green
176   0 100   0             DarkGreen
177  85 107  47             dark olive green
178  85 107  47             DarkOliveGreen
179 143 188 143             dark sea green
180 143 188 143             DarkSeaGreen
181  46 139  87             sea green
182  46 139  87             SeaGreen
183  60 179 113             medium sea green
184  60 179 113             MediumSeaGreen
185  32 178 170             light sea green
186  32 178 170             LightSeaGreen
187 152 251 152             pale green
188 152 251 152             PaleGreen
189   0 255 127             spring green
190   0 255 127             SpringGreen
191 124 252   0             lawn green
192 124 252   0             LawnGreen
193   0 255   0             green
194 127 255   0             chartreuse
195   0 250 154             medium spring green
196   0 250 154             MediumSpringGreen
197 173 255  47             green yellow
198 173 255  47             GreenYellow
199  50 205  50             lime green
200  50 205  50             LimeGreen
201 154 205  50             yellow green
202 154 205  50             YellowGreen
203  34 139  34             forest green
204  34 139  34             ForestGreen
205 107 142  35             olive drab
206 107 142  35             OliveDrab
207 189 183 107             dark khaki
208 189 183 107             DarkKhaki
209 240 230 140             khaki
210 238 232 170             pale goldenrod
211 238 232 170             PaleGoldenrod
212 250 250 210             light goldenrod yellow
213 250 250 210             LightGoldenrodYellow
214 255 255 224             light yellow
215 255 255 224             LightYellow
216 255 255   0             yellow
217 255 215   0             gold
218 238 221 130             light goldenrod
219 238 221 130             LightGoldenrod
220 218 165  32             goldenrod
221 184 134  11             dark goldenrod
222 184 134  11             DarkGoldenrod
223 188 143 143             rosy brown
224 188 143 143             RosyBrown
225 205  92  92             indian red
226 205  92  92             IndianRed
227 139  69  19             saddle brown
228 139  69  19             SaddleBrown
229 160  82  45             sienna
230 205 133  63             peru
231 222 184 135             burlywood
232 245 245 220             beige
233 245 222 179             wheat
234 244 164  96             sandy brown
235 244 164  96             SandyBrown
236 210 180 140             tan
237 210 105  30             chocolate
238 178  34  34             firebrick
239 165  42  42             brown
240 233 150 122             dark salmon
241 233 150 122             DarkSalmon
242 250 128 114             salmon
243 255 160 122             light salmon
244 255 160 122             LightSalmon
245 255 165   0             orange
246 255 140   0             dark orange
247 255 140   0             DarkOrange
248 255 127  80             coral
249 240 128 128             light coral
250 240 128 128             LightCoral
251 255  99  71             tomato
252 255  69   0             orange red
253 255  69   0             OrangeRed
254 255   0   0             red
255 255 105 180             hot pink
256 255 105 180             HotPink
257 255  20 147             deep pink
258 255  20 147             DeepPink
259 255 192 203             pink
260 255 182 193             light pink
261 255 182 193             LightPink
262 219 112 147             pale violet red
263 219 112 147             PaleVioletRed
264 176  48  96             maroon
265 199  21 133             medium violet red
266 199  21 133             MediumVioletRed
267 208  32 144             violet red
268 208  32 144             VioletRed
269 255   0 255             magenta
270 238 130 238             violet
271 221 160 221             plum
272 218 112 214             orchid
273 186  85 211             medium orchid
274 186  85 211             MediumOrchid
275 153  50 204             dark orchid
276 153  50 204             DarkOrchid
277 148   0 211             dark violet
278 148   0 211             DarkViolet
279 138  43 226             blue violet
280 138  43 226             BlueViolet
281 160  32 240             purple
282 147 112 219             medium purple
283 147 112 219             MediumPurple
284 216 191 216             thistle
285 255 250 250             snow1
286 238 233 233             snow2
287 205 201 201             snow3
288 139 137 137             snow4
289 255 245 238             seashell1
290 238 229 222             seashell2
291 205 197 191             seashell3
292 139 134 130             seashell4
293 255 239 219             AntiqueWhite1
294 238 223 204             AntiqueWhite2
295 205 192 176             AntiqueWhite3
296 139 131 120             AntiqueWhite4
297 255 228 196             bisque1
298 238 213 183             bisque2
299 205 183 158             bisque3
300 139 125 107             bisque4
301 255 218 185             PeachPuff1
302 238 203 173             PeachPuff2
303 205 175 149             PeachPuff3
304 139 119 101             PeachPuff4
305 255 222 173             NavajoWhite1
306 238 207 161             NavajoWhite2
307 205 179 139             NavajoWhite3
308 139 121  94             NavajoWhite4
309 255 250 205             LemonChiffon1
310 238 233 191             LemonChiffon2
311 205 201 165             LemonChiffon3
312 139 137 112             LemonChiffon4
313 255 248 220             cornsilk1
314 238 232 205             cornsilk2
315 205 200 177             cornsilk3
316 139 136 120             cornsilk4
317 255 255 240             ivory1
318 238 238 224             ivory2
319 205 205 193             ivory3
320 139 139 131             ivory4
321 240 255 240             honeydew1
322 224 238 224             honeydew2
323 193 205 193             honeydew3
324 131 139 131             honeydew4
325 255 240 245             LavenderBlush1
326 238 224 229             LavenderBlush2
327 205 193 197             LavenderBlush3
328 139 131 134             LavenderBlush4
329 255 228 225             MistyRose1
330 238 213 210             MistyRose2
331 205 183 181             MistyRose3
332 139 125 123             MistyRose4
333 240 255 255             azure1
334 224 238 238             azure2
335 193 205 205             azure3
336 131 139 139             azure4
337 131 111 255             SlateBlue1
338 122 103 238             SlateBlue2
339 105  89 205             SlateBlue3
340  71  60 139             SlateBlue4
341  72 118 255             RoyalBlue1
342  67 110 238             RoyalBlue2
343  58  95 205             RoyalBlue3
344  39  64 139             RoyalBlue4
345   0   0 255             blue1
346   0   0 238             blue2
347   0   0 205             blue3
348   0   0 139             blue4
349  30 144 255             DodgerBlue1
350  28 134 238             DodgerBlue2
351  24 116 205             DodgerBlue3
352  16  78 139             DodgerBlue4
353  99 184 255             SteelBlue1
354  92 172 238             SteelBlue2
355  79 148 205             SteelBlue3
356  54 100 139             SteelBlue4
357   0 191 255             DeepSkyBlue1
358   0 178 238             DeepSkyBlue2
359   0 154 205             DeepSkyBlue3
360   0 104 139             DeepSkyBlue4
361 135 206 255             SkyBlue1
362 126 192 238             SkyBlue2
363 108 166 205             SkyBlue3
364  74 112 139             SkyBlue4
365 176 226 255             LightSkyBlue1
366 164 211 238             LightSkyBlue2
367 141 182 205             LightSkyBlue3
368  96 123 139             LightSkyBlue4
369 198 226 255             SlateGray1
370 185 211 238             SlateGray2
371 159 182 205             SlateGray3
372 108 123 139             SlateGray4
373 202 225 255             LightSteelBlue1
374 188 210 238             LightSteelBlue2
375 162 181 205             LightSteelBlue3
376 110 123 139             LightSteelBlue4
377 191 239 255             LightBlue1
378 178 223 238             LightBlue2
379 154 192 205             LightBlue3
380 104 131 139             LightBlue4
381 224 255 255             LightCyan1
382 209 238 238             LightCyan2
383 180 205 205             LightCyan3
384 122 139 139             LightCyan4
385 187 255 255             PaleTurquoise1
386 174 238 238             PaleTurquoise2
387 150 205 205             PaleTurquoise3
388 102 139 139             PaleTurquoise4
389 152 245 255             CadetBlue1
390 142 229 238             CadetBlue2
391 122 197 205             CadetBlue3
392  83 134 139             CadetBlue4
393   0 245 255             turquoise1
394   0 229 238             turquoise2
395   0 197 205             turquoise3
396   0 134 139             turquoise4
397   0 255 255             cyan1
398   0 238 238             cyan2
399   0 205 205             cyan3
400   0 139 139             cyan4
401 151 255 255             DarkSlateGray1
402 141 238 238             DarkSlateGray2
403 121 205 205             DarkSlateGray3
404  82 139 139             DarkSlateGray4
405 127 255 212             aquamarine1
406 118 238 198             aquamarine2
407 102 205 170             aquamarine3
408  69 139 116             aquamarine4
409 193 255 193             DarkSeaGreen1
410 180 238 180             DarkSeaGreen2
411 155 205 155             DarkSeaGreen3
412 105 139 105             DarkSeaGreen4
413  84 255 159             SeaGreen1
414  78 238 148             SeaGreen2
415  67 205 128             SeaGreen3
416  46 139  87             SeaGreen4
417 154 255 154             PaleGreen1
418 144 238 144             PaleGreen2
419 124 205 124             PaleGreen3
420  84 139  84             PaleGreen4
421   0 255 127             SpringGreen1
422   0 238 118             SpringGreen2
423   0 205 102             SpringGreen3
424   0 139  69             SpringGreen4
425   0 255   0             green1
426   0 238   0             green2
427   0 205   0             green3
428   0 139   0             green4
429 127 255   0             chartreuse1
430 118 238   0             chartreuse2
431 102 205   0             chartreuse3
432  69 139   0             chartreuse4
433 192 255  62             OliveDrab1
434 179 238  58             OliveDrab2
435 154 205  50             OliveDrab3
436 105 139  34             OliveDrab4
437 202 255 112             DarkOliveGreen1
438 188 238 104             DarkOliveGreen2
439 162 205  90             DarkOliveGreen3
440 110 139  61             DarkOliveGreen4
441 255 246 143             khaki1
442 238 230 133             khaki2
443 205 198 115             khaki3
444 139 134  78             khaki4
445 255 236 139             LightGoldenrod1
446 238 220 130             LightGoldenrod2
447 205 190 112             LightGoldenrod3
448 139 129  76             LightGoldenrod4
449 255 255 224             LightYellow1
450 238 238 209             LightYellow2
451 205 205 180             LightYellow3
452 139 139 122             LightYellow4
453 255 255   0             yellow1
454 238 238   0             yellow2
455 205 205   0             yellow3
456 139 139   0             yellow4
457 255 215   0             gold1
458 238 201   0             gold2
459 205 173   0             gold3
460 139 117   0             gold4
461 255 193  37             goldenrod1
462 238 180  34             goldenrod2
463 205 155  29             goldenrod3
464 139 105  20             goldenrod4
465 255 185  15             DarkGoldenrod1
466 238 173  14             DarkGoldenrod2
467 205 149  12             DarkGoldenrod3
468 139 101   8             DarkGoldenrod4
469 255 193 193             RosyBrown1
470 238 180 180             RosyBrown2
471 205 155 155             RosyBrown3
472 139 105 105             RosyBrown4
473 255 106 106             IndianRed1
474 238  99  99             IndianRed2
475 205  85  85             IndianRed3
476 139  58  58             IndianRed4
477 255 130  71             sienna1
478 238 121  66             sienna2
479 205 104  57             sienna3
480 139  71  38             sienna4
481 255 211 155             burlywood1
482 238 197 145             burlywood2
483 205 170 125             burlywood3
484 139 115  85             burlywood4
485 255 231 186             wheat1
486 238 216 174             wheat2
487 205 186 150             wheat3
488 139 126 102             wheat4
489 255 165  79             tan1
490 238 154  73             tan2
491 205 133  63             tan3
492 139  90  43             tan4
493 255 127  36             chocolate1
494 238 118  33             chocolate2
495 205 102  29             chocolate3
496 139  69  19             chocolate4
497 255  48  48             firebrick1
498 238  44  44             firebrick2
499 205  38  38             firebrick3
500 139  26  26             firebrick4
501 255  64  64             brown1
502 238  59  59             brown2
503 205  51  51             brown3
504 139  35  35             brown4
505 255 140 105             salmon1
506 238 130  98             salmon2
507 205 112  84             salmon3
508 139  76  57             salmon4
509 255 160 122             LightSalmon1
510 238 149 114             LightSalmon2
511 205 129  98             LightSalmon3
512 139  87  66             LightSalmon4
513 255 165   0             orange1
514 238 154   0             orange2
515 205 133   0             orange3
516 139  90   0             orange4
517 255 127   0             DarkOrange1
518 238 118   0             DarkOrange2
519 205 102   0             DarkOrange3
520 139  69   0             DarkOrange4
521 255 114  86             coral1
522 238 106  80             coral2
523 205  91  69             coral3
524 139  62  47             coral4
525 255  99  71             tomato1
526 238  92  66             tomato2
527 205  79  57             tomato3
528 139  54  38             tomato4
529 255  69   0             OrangeRed1
530 238  64   0             OrangeRed2
531 205  55   0             OrangeRed3
532 139  37   0             OrangeRed4
533 255   0   0             red1
534 238   0   0             red2
535 205   0   0             red3
536 139   0   0             red4
537 255  20 147             DeepPink1
538 238  18 137             DeepPink2
539 205  16 118             DeepPink3
540 139  10  80             DeepPink4
541 255 110 180             HotPink1
542 238 106 167             HotPink2
543 205  96 144             HotPink3
544 139  58  98             HotPink4
545 255 181 197             pink1
546 238 169 184             pink2
547 205 145 158             pink3
548 139  99 108             pink4
549 255 174 185             LightPink1
550 238 162 173             LightPink2
551 205 140 149             LightPink3
552 139  95 101             LightPink4
553 255 130 171             PaleVioletRed1
554 238 121 159             PaleVioletRed2
555 205 104 137             PaleVioletRed3
556 139  71  93             PaleVioletRed4
557 255  52 179             maroon1
558 238  48 167             maroon2
559 205  41 144             maroon3
560 139  28  98             maroon4
561 255  62 150             VioletRed1
562 238  58 140             VioletRed2
563 205  50 120             VioletRed3
564 139  34  82             VioletRed4
565 255   0 255             magenta1
566 238   0 238             magenta2
567 205   0 205             magenta3
568 139   0 139             magenta4
569 255 131 250             orchid1
570 238 122 233             orchid2
571 205 105 201             orchid3
572 139  71 137             orchid4
573 255 187 255             plum1
574 238 174 238             plum2
575 205 150 205             plum3
576 139 102 139             plum4
577 224 102 255             MediumOrchid1
578 209  95 238             MediumOrchid2
579 180  82 205             MediumOrchid3
580 122  55 139             MediumOrchid4
581 191  62 255             DarkOrchid1
582 178  58 238             DarkOrchid2
583 154  50 205             DarkOrchid3
584 104  34 139             DarkOrchid4
585 155  48 255             purple1
586 145  44 238             purple2
587 125  38 205             purple3
588  85  26 139             purple4
589 171 130 255             MediumPurple1
590 159 121 238             MediumPurple2
591 137 104 205             MediumPurple3
592  93  71 139             MediumPurple4
593 255 225 255             thistle1
594 238 210 238             thistle2
595 205 181 205             thistle3
596 139 123 139             thistle4
597   0   0   0             gray0
598   0   0   0             grey0
599   3   3   3             gray1
600   3   3   3             grey1
601   5   5   5             gray2
602   5   5   5             grey2
603   8   8   8             gray3
604   8   8   8             grey3
605  10  10  10             gray4
606  10  10  10             grey4
607  13  13  13             gray5
608  13  13  13             grey5
609  15  15  15             gray6
610  15  15  15             grey6
611  18  18  18             gray7
612  18  18  18             grey7
613  20  20  20             gray8
614  20  20  20             grey8
615  23  23  23             gray9
616  23  23  23             grey9
617  26  26  26             gray10
618  26  26  26             grey10
619  28  28  28             gray11
620  28  28  28             grey11
621  31  31  31             gray12
622  31  31  31             grey12
623  33  33  33             gray13
624  33  33  33             grey13
625  36  36  36             gray14
626  36  36  36             grey14
627  38  38  38             gray15
628  38  38  38             grey15
629  41  41  41             gray16
630  41  41  41             grey16
631  43  43  43             gray17
632  43  43  43             grey17
633  46  46  46             gray18
634  46  46  46             grey18
635  48  48  48             gray19
636  48  48  48             grey19
637  51  51  51             gray20
638  51  51  51             grey20
639  54  54  54             gray21
640  54  54  54             grey21
641  56  56  56             gray22
642  56  56  56             grey22
643  59  59  59             gray23
644  59  59  59             grey23
645  61  61  61             gray24
646  61  61  61             grey24
647  64  64  64             gray25
648  64  64  64             grey25
649  66  66  66             gray26
650  66  66  66             grey26
651  69  69  69             gray27
652  69  69  69             grey27
653  71  71  71             gray28
654  71  71  71             grey28
655  74  74  74             gray29
656  74  74  74             grey29
657  77  77  77             gray30
658  77  77  77             grey30
659  79  79  79             gray31
660  79  79  79             grey31
661  82  82  82             gray32
662  82  82  82             grey32
663  84  84  84             gray33
664  84  84  84             grey33
665  87  87  87             gray34
666  87  87  87             grey34
667  89  89  89             gray35
668  89  89  89             grey35
669  92  92  92             gray36
670  92  92  92             grey36
671  94  94  94             gray37
672  94  94  94             grey37
673  97  97  97             gray38
674  97  97  97             grey38
675  99  99  99             gray39
676  99  99  99             grey39
677 102 102 102             gray40
678 102 102 102             grey40
679 105 105 105             gray41
680 105 105 105             grey41
681 107 107 107             gray42
682 107 107 107             grey42
683 110 110 110             gray43
684 110 110 110             grey43
685 112 112 112             gray44
686 112 112 112             grey44
687 115 115 115             gray45
688 115 115 115             grey45
689 117 117 117             gray46
690 117 117 117             grey46
691 120 120 120             gray47
692 120 120 120             grey47
693 122 122 122             gray48
694 122 122 122             grey48
695 125 125 125             gray49
696 125 125 125             grey49
697 127 127 127             gray50
698 127 127 127             grey50
699 130 130 130             gray51
700 130 130 130             grey51
701 133 133 133             gray52
702 133 133 133             grey52
703 135 135 135             gray53
704 135 135 135             grey53
705 138 138 138             gray54
706 138 138 138             grey54
707 140 140 140             gray55
708 140 140 140             grey55
709 143 143 143             gray56
710 143 143 143             grey56
711 145 145 145             gray57
712 145 145 145             grey57
713 148 148 148             gray58
714 148 148 148             grey58
715 150 150 150             gray59
716 150 150 150             grey59
717 153 153 153             gray60
718 153 153 153             grey60
719 156 156 156             gray61
720 156 156 156             grey61
721 158 158 158             gray62
722 158 158 158             grey62
723 161 161 161             gray63
724 161 161 161             grey63
725 163 163 163             gray64
726 163 163 163             grey64
727 166 166 166             gray65
728 166 166 166             grey65
729 168 168 168             gray66
730 168 168 168             grey66
731 171 171 171             gray67
732 171 171 171             grey67
733 173 173 173             gray68
734 173 173 173             grey68
735 176 176 176             gray69
736 176 176 176             grey69
737 179 179 179             gray70
738 179 179 179             grey70
739 181 181 181             gray71
740 181 181 181             grey71
741 184 184 184             gray72
742 184 184 184             grey72
743 186 186 186             gray73
744 186 186 186             grey73
745 189 189 189             gray74
746 189 189 189             grey74
747 191 191 191             gray75
748 191 191 191             grey75
749 194 194 194             gray76
750 194 194 194             grey76
751 196 196 196             gray77
752 196 196 196             grey77
753 199 199 199             gray78
754 199 199 199             grey78
755 201 201 201             gray79
756 201 201 201             grey79
757 204 204 204             gray80
758 204 204 204             grey80
759 207 207 207             gray81
760 207 207 207             grey81
761 209 209 209             gray82
762 209 209 209             grey82
763 212 212 212             gray83
764 212 212 212             grey83
765 214 214 214             gray84
766 214 214 214             grey84
767 217 217 217             gray85
768 217 217 217             grey85
769 219 219 219             gray86
770 219 219 219             grey86
771 222 222 222             gray87
772 222 222 222             grey87
773 224 224 224             gray88
774 224 224 224             grey88
775 227 227 227             gray89
776 227 227 227             grey89
777 229 229 229             gray90
778 229 229 229             grey90
779 232 232 232             gray91
780 232 232 232             grey91
781 235 235 235             gray92
782 235 235 235             grey92
783 237 237 237             gray93
784 237 237 237             grey93
785 240 240 240             gray94
786 240 240 240             grey94
787 242 242 242             gray95
788 242 242 242             grey95
789 245 245 245             gray96
790 245 245 245             grey96
791 247 247 247             gray97
792 247 247 247             grey97
793 250 250 250             gray98
794 250 250 250             grey98
795 252 252 252             gray99
796 252 252 252             grey99
797 255 255 255             gray100
798 255 255 255             grey100
799 169 169 169             dark grey
800 169 169 169             DarkGrey
801 169 169 169             dark gray
802 169 169 169             DarkGray
803 0     0 139             dark blue
804 0     0 139             DarkBlue
805 0   139 139             dark cyan
806 0   139 139             DarkCyan
807 139   0 139             dark magenta
808 139   0 139             DarkMagenta
809 139   0   0             dark red
810 139   0   0             DarkRed
811 144 238 144             light green
812 144 238 144             LightGreen
813 __END__
814
815 =head1 NAME
816
817 Imager::Color::Table - built-in Imager color table
818
819 =head1 SYNOPSIS
820
821   use Imager::Color::Table;
822   my @rgb = Imager::Color::Table->get($name)
823     or die "Color $name not found";
824
825 =head1 DESCRIPTION
826
827 This class provides a base color table for use in resolving color names.
828
829 The table contains the standard X11 C<rgb.txt> colors.
830
831 This table is not included as part of Imager::Color itself since it's
832 moderately large.
833
834 There is only one method:
835
836 =over
837
838 =item get
839
840   my @rgb = Imager::Color::Table->get('red')
841     or die "No red found";
842
843 Retrieves a color from Imager::Color::Tables built-in color table.
844
845 =back
846
847 =head1 AUTHOR
848
849 Tony Cook <tony@develop-help.com>
850
851 =cut
852