eliminate use vars
[imager.git] / lib / Imager / Color / Table.pm
CommitLineData
1c00d65b
TC
1package Imager::Color::Table;
2use strict;
ee64a81f 3use 5.006;
f17b46d8 4
ee64a81f 5our $VERSION = "1.004";
1c00d65b
TC
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
21sub get {
22 my ($class, $name) = @_;
23
24 exists $colors{lc $name} or return;
25
26 return @{$colors{lc $name}};
27}
28
291;
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
61255 250 250 snow
62248 248 255 ghost white
63248 248 255 GhostWhite
64245 245 245 white smoke
65245 245 245 WhiteSmoke
66220 220 220 gainsboro
67255 250 240 floral white
68255 250 240 FloralWhite
69253 245 230 old lace
70253 245 230 OldLace
71250 240 230 linen
72250 235 215 antique white
73250 235 215 AntiqueWhite
74255 239 213 papaya whip
75255 239 213 PapayaWhip
76255 235 205 blanched almond
77255 235 205 BlanchedAlmond
78255 228 196 bisque
79255 218 185 peach puff
80255 218 185 PeachPuff
81255 222 173 navajo white
82255 222 173 NavajoWhite
83255 228 181 moccasin
84255 248 220 cornsilk
85255 255 240 ivory
86255 250 205 lemon chiffon
87255 250 205 LemonChiffon
88255 245 238 seashell
89240 255 240 honeydew
90245 255 250 mint cream
91245 255 250 MintCream
92240 255 255 azure
93240 248 255 alice blue
94240 248 255 AliceBlue
95230 230 250 lavender
96255 240 245 lavender blush
97255 240 245 LavenderBlush
98255 228 225 misty rose
99255 228 225 MistyRose
100255 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
106105 105 105 dim gray
107105 105 105 DimGray
108105 105 105 dim grey
109105 105 105 DimGrey
110112 128 144 slate gray
111112 128 144 SlateGray
112112 128 144 slate grey
113112 128 144 SlateGrey
114119 136 153 light slate gray
115119 136 153 LightSlateGray
116119 136 153 light slate grey
117119 136 153 LightSlateGrey
118190 190 190 gray
119190 190 190 grey
120211 211 211 light grey
121211 211 211 LightGrey
122211 211 211 light gray
123211 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
129100 149 237 cornflower blue
130100 149 237 CornflowerBlue
131 72 61 139 dark slate blue
132 72 61 139 DarkSlateBlue
133106 90 205 slate blue
134106 90 205 SlateBlue
135123 104 238 medium slate blue
136123 104 238 MediumSlateBlue
137132 112 255 light slate blue
138132 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
148135 206 235 sky blue
149135 206 235 SkyBlue
150135 206 250 light sky blue
151135 206 250 LightSkyBlue
152 70 130 180 steel blue
153 70 130 180 SteelBlue
154176 196 222 light steel blue
155176 196 222 LightSteelBlue
156173 216 230 light blue
157173 216 230 LightBlue
158176 224 230 powder blue
159176 224 230 PowderBlue
160175 238 238 pale turquoise
161175 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
168224 255 255 light cyan
169224 255 255 LightCyan
170 95 158 160 cadet blue
171 95 158 160 CadetBlue
172102 205 170 medium aquamarine
173102 205 170 MediumAquamarine
174127 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
179143 188 143 dark sea green
180143 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
187152 251 152 pale green
188152 251 152 PaleGreen
189 0 255 127 spring green
190 0 255 127 SpringGreen
191124 252 0 lawn green
192124 252 0 LawnGreen
193 0 255 0 green
194127 255 0 chartreuse
195 0 250 154 medium spring green
196 0 250 154 MediumSpringGreen
197173 255 47 green yellow
198173 255 47 GreenYellow
199 50 205 50 lime green
200 50 205 50 LimeGreen
201154 205 50 yellow green
202154 205 50 YellowGreen
203 34 139 34 forest green
204 34 139 34 ForestGreen
205107 142 35 olive drab
206107 142 35 OliveDrab
207189 183 107 dark khaki
208189 183 107 DarkKhaki
209240 230 140 khaki
210238 232 170 pale goldenrod
211238 232 170 PaleGoldenrod
212250 250 210 light goldenrod yellow
213250 250 210 LightGoldenrodYellow
214255 255 224 light yellow
215255 255 224 LightYellow
216255 255 0 yellow
217255 215 0 gold
218238 221 130 light goldenrod
219238 221 130 LightGoldenrod
220218 165 32 goldenrod
221184 134 11 dark goldenrod
222184 134 11 DarkGoldenrod
223188 143 143 rosy brown
224188 143 143 RosyBrown
225205 92 92 indian red
226205 92 92 IndianRed
227139 69 19 saddle brown
228139 69 19 SaddleBrown
229160 82 45 sienna
230205 133 63 peru
231222 184 135 burlywood
232245 245 220 beige
233245 222 179 wheat
234244 164 96 sandy brown
235244 164 96 SandyBrown
236210 180 140 tan
237210 105 30 chocolate
238178 34 34 firebrick
239165 42 42 brown
240233 150 122 dark salmon
241233 150 122 DarkSalmon
242250 128 114 salmon
243255 160 122 light salmon
244255 160 122 LightSalmon
245255 165 0 orange
246255 140 0 dark orange
247255 140 0 DarkOrange
248255 127 80 coral
249240 128 128 light coral
250240 128 128 LightCoral
251255 99 71 tomato
252255 69 0 orange red
253255 69 0 OrangeRed
254255 0 0 red
255255 105 180 hot pink
256255 105 180 HotPink
257255 20 147 deep pink
258255 20 147 DeepPink
259255 192 203 pink
260255 182 193 light pink
261255 182 193 LightPink
262219 112 147 pale violet red
263219 112 147 PaleVioletRed
264176 48 96 maroon
265199 21 133 medium violet red
266199 21 133 MediumVioletRed
267208 32 144 violet red
268208 32 144 VioletRed
269255 0 255 magenta
270238 130 238 violet
271221 160 221 plum
272218 112 214 orchid
273186 85 211 medium orchid
274186 85 211 MediumOrchid
275153 50 204 dark orchid
276153 50 204 DarkOrchid
277148 0 211 dark violet
278148 0 211 DarkViolet
279138 43 226 blue violet
280138 43 226 BlueViolet
281160 32 240 purple
282147 112 219 medium purple
283147 112 219 MediumPurple
284216 191 216 thistle
285255 250 250 snow1
286238 233 233 snow2
287205 201 201 snow3
288139 137 137 snow4
289255 245 238 seashell1
290238 229 222 seashell2
291205 197 191 seashell3
292139 134 130 seashell4
293255 239 219 AntiqueWhite1
294238 223 204 AntiqueWhite2
295205 192 176 AntiqueWhite3
296139 131 120 AntiqueWhite4
297255 228 196 bisque1
298238 213 183 bisque2
299205 183 158 bisque3
300139 125 107 bisque4
301255 218 185 PeachPuff1
302238 203 173 PeachPuff2
303205 175 149 PeachPuff3
304139 119 101 PeachPuff4
305255 222 173 NavajoWhite1
306238 207 161 NavajoWhite2
307205 179 139 NavajoWhite3
308139 121 94 NavajoWhite4
309255 250 205 LemonChiffon1
310238 233 191 LemonChiffon2
311205 201 165 LemonChiffon3
312139 137 112 LemonChiffon4
313255 248 220 cornsilk1
314238 232 205 cornsilk2
315205 200 177 cornsilk3
316139 136 120 cornsilk4
317255 255 240 ivory1
318238 238 224 ivory2
319205 205 193 ivory3
320139 139 131 ivory4
321240 255 240 honeydew1
322224 238 224 honeydew2
323193 205 193 honeydew3
324131 139 131 honeydew4
325255 240 245 LavenderBlush1
326238 224 229 LavenderBlush2
327205 193 197 LavenderBlush3
328139 131 134 LavenderBlush4
329255 228 225 MistyRose1
330238 213 210 MistyRose2
331205 183 181 MistyRose3
332139 125 123 MistyRose4
333240 255 255 azure1
334224 238 238 azure2
335193 205 205 azure3
336131 139 139 azure4
337131 111 255 SlateBlue1
338122 103 238 SlateBlue2
339105 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
361135 206 255 SkyBlue1
362126 192 238 SkyBlue2
363108 166 205 SkyBlue3
364 74 112 139 SkyBlue4
365176 226 255 LightSkyBlue1
366164 211 238 LightSkyBlue2
367141 182 205 LightSkyBlue3
368 96 123 139 LightSkyBlue4
369198 226 255 SlateGray1
370185 211 238 SlateGray2
371159 182 205 SlateGray3
372108 123 139 SlateGray4
373202 225 255 LightSteelBlue1
374188 210 238 LightSteelBlue2
375162 181 205 LightSteelBlue3
376110 123 139 LightSteelBlue4
377191 239 255 LightBlue1
378178 223 238 LightBlue2
379154 192 205 LightBlue3
380104 131 139 LightBlue4
381224 255 255 LightCyan1
382209 238 238 LightCyan2
383180 205 205 LightCyan3
384122 139 139 LightCyan4
385187 255 255 PaleTurquoise1
386174 238 238 PaleTurquoise2
387150 205 205 PaleTurquoise3
388102 139 139 PaleTurquoise4
389152 245 255 CadetBlue1
390142 229 238 CadetBlue2
391122 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
401151 255 255 DarkSlateGray1
402141 238 238 DarkSlateGray2
403121 205 205 DarkSlateGray3
404 82 139 139 DarkSlateGray4
405127 255 212 aquamarine1
406118 238 198 aquamarine2
407102 205 170 aquamarine3
408 69 139 116 aquamarine4
409193 255 193 DarkSeaGreen1
410180 238 180 DarkSeaGreen2
411155 205 155 DarkSeaGreen3
412105 139 105 DarkSeaGreen4
413 84 255 159 SeaGreen1
414 78 238 148 SeaGreen2
415 67 205 128 SeaGreen3
416 46 139 87 SeaGreen4
417154 255 154 PaleGreen1
418144 238 144 PaleGreen2
419124 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
429127 255 0 chartreuse1
430118 238 0 chartreuse2
431102 205 0 chartreuse3
432 69 139 0 chartreuse4
433192 255 62 OliveDrab1
434179 238 58 OliveDrab2
435154 205 50 OliveDrab3
436105 139 34 OliveDrab4
437202 255 112 DarkOliveGreen1
438188 238 104 DarkOliveGreen2
439162 205 90 DarkOliveGreen3
440110 139 61 DarkOliveGreen4
441255 246 143 khaki1
442238 230 133 khaki2
443205 198 115 khaki3
444139 134 78 khaki4
445255 236 139 LightGoldenrod1
446238 220 130 LightGoldenrod2
447205 190 112 LightGoldenrod3
448139 129 76 LightGoldenrod4
449255 255 224 LightYellow1
450238 238 209 LightYellow2
451205 205 180 LightYellow3
452139 139 122 LightYellow4
453255 255 0 yellow1
454238 238 0 yellow2
455205 205 0 yellow3
456139 139 0 yellow4
457255 215 0 gold1
458238 201 0 gold2
459205 173 0 gold3
460139 117 0 gold4
461255 193 37 goldenrod1
462238 180 34 goldenrod2
463205 155 29 goldenrod3
464139 105 20 goldenrod4
465255 185 15 DarkGoldenrod1
466238 173 14 DarkGoldenrod2
467205 149 12 DarkGoldenrod3
468139 101 8 DarkGoldenrod4
469255 193 193 RosyBrown1
470238 180 180 RosyBrown2
471205 155 155 RosyBrown3
472139 105 105 RosyBrown4
473255 106 106 IndianRed1
474238 99 99 IndianRed2
475205 85 85 IndianRed3
476139 58 58 IndianRed4
477255 130 71 sienna1
478238 121 66 sienna2
479205 104 57 sienna3
480139 71 38 sienna4
481255 211 155 burlywood1
482238 197 145 burlywood2
483205 170 125 burlywood3
484139 115 85 burlywood4
485255 231 186 wheat1
486238 216 174 wheat2
487205 186 150 wheat3
488139 126 102 wheat4
489255 165 79 tan1
490238 154 73 tan2
491205 133 63 tan3
492139 90 43 tan4
493255 127 36 chocolate1
494238 118 33 chocolate2
495205 102 29 chocolate3
496139 69 19 chocolate4
497255 48 48 firebrick1
498238 44 44 firebrick2
499205 38 38 firebrick3
500139 26 26 firebrick4
501255 64 64 brown1
502238 59 59 brown2
503205 51 51 brown3
504139 35 35 brown4
505255 140 105 salmon1
506238 130 98 salmon2
507205 112 84 salmon3
508139 76 57 salmon4
509255 160 122 LightSalmon1
510238 149 114 LightSalmon2
511205 129 98 LightSalmon3
512139 87 66 LightSalmon4
513255 165 0 orange1
514238 154 0 orange2
515205 133 0 orange3
516139 90 0 orange4
517255 127 0 DarkOrange1
518238 118 0 DarkOrange2
519205 102 0 DarkOrange3
520139 69 0 DarkOrange4
521255 114 86 coral1
522238 106 80 coral2
523205 91 69 coral3
524139 62 47 coral4
525255 99 71 tomato1
526238 92 66 tomato2
527205 79 57 tomato3
528139 54 38 tomato4
529255 69 0 OrangeRed1
530238 64 0 OrangeRed2
531205 55 0 OrangeRed3
532139 37 0 OrangeRed4
533255 0 0 red1
534238 0 0 red2
535205 0 0 red3
536139 0 0 red4
537255 20 147 DeepPink1
538238 18 137 DeepPink2
539205 16 118 DeepPink3
540139 10 80 DeepPink4
541255 110 180 HotPink1
542238 106 167 HotPink2
543205 96 144 HotPink3
544139 58 98 HotPink4
545255 181 197 pink1
546238 169 184 pink2
547205 145 158 pink3
548139 99 108 pink4
549255 174 185 LightPink1
550238 162 173 LightPink2
551205 140 149 LightPink3
552139 95 101 LightPink4
553255 130 171 PaleVioletRed1
554238 121 159 PaleVioletRed2
555205 104 137 PaleVioletRed3
556139 71 93 PaleVioletRed4
557255 52 179 maroon1
558238 48 167 maroon2
559205 41 144 maroon3
560139 28 98 maroon4
561255 62 150 VioletRed1
562238 58 140 VioletRed2
563205 50 120 VioletRed3
564139 34 82 VioletRed4
565255 0 255 magenta1
566238 0 238 magenta2
567205 0 205 magenta3
568139 0 139 magenta4
569255 131 250 orchid1
570238 122 233 orchid2
571205 105 201 orchid3
572139 71 137 orchid4
573255 187 255 plum1
574238 174 238 plum2
575205 150 205 plum3
576139 102 139 plum4
577224 102 255 MediumOrchid1
578209 95 238 MediumOrchid2
579180 82 205 MediumOrchid3
580122 55 139 MediumOrchid4
581191 62 255 DarkOrchid1
582178 58 238 DarkOrchid2
583154 50 205 DarkOrchid3
584104 34 139 DarkOrchid4
585155 48 255 purple1
586145 44 238 purple2
587125 38 205 purple3
588 85 26 139 purple4
589171 130 255 MediumPurple1
590159 121 238 MediumPurple2
591137 104 205 MediumPurple3
592 93 71 139 MediumPurple4
593255 225 255 thistle1
594238 210 238 thistle2
595205 181 205 thistle3
596139 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
677102 102 102 gray40
678102 102 102 grey40
679105 105 105 gray41
680105 105 105 grey41
681107 107 107 gray42
682107 107 107 grey42
683110 110 110 gray43
684110 110 110 grey43
685112 112 112 gray44
686112 112 112 grey44
687115 115 115 gray45
688115 115 115 grey45
689117 117 117 gray46
690117 117 117 grey46
691120 120 120 gray47
692120 120 120 grey47
693122 122 122 gray48
694122 122 122 grey48
695125 125 125 gray49
696125 125 125 grey49
697127 127 127 gray50
698127 127 127 grey50
699130 130 130 gray51
700130 130 130 grey51
701133 133 133 gray52
702133 133 133 grey52
703135 135 135 gray53
704135 135 135 grey53
705138 138 138 gray54
706138 138 138 grey54
707140 140 140 gray55
708140 140 140 grey55
709143 143 143 gray56
710143 143 143 grey56
711145 145 145 gray57
712145 145 145 grey57
713148 148 148 gray58
714148 148 148 grey58
715150 150 150 gray59
716150 150 150 grey59
717153 153 153 gray60
718153 153 153 grey60
719156 156 156 gray61
720156 156 156 grey61
721158 158 158 gray62
722158 158 158 grey62
723161 161 161 gray63
724161 161 161 grey63
725163 163 163 gray64
726163 163 163 grey64
727166 166 166 gray65
728166 166 166 grey65
729168 168 168 gray66
730168 168 168 grey66
731171 171 171 gray67
732171 171 171 grey67
733173 173 173 gray68
734173 173 173 grey68
735176 176 176 gray69
736176 176 176 grey69
737179 179 179 gray70
738179 179 179 grey70
739181 181 181 gray71
740181 181 181 grey71
741184 184 184 gray72
742184 184 184 grey72
743186 186 186 gray73
744186 186 186 grey73
745189 189 189 gray74
746189 189 189 grey74
747191 191 191 gray75
748191 191 191 grey75
749194 194 194 gray76
750194 194 194 grey76
751196 196 196 gray77
752196 196 196 grey77
753199 199 199 gray78
754199 199 199 grey78
755201 201 201 gray79
756201 201 201 grey79
757204 204 204 gray80
758204 204 204 grey80
759207 207 207 gray81
760207 207 207 grey81
761209 209 209 gray82
762209 209 209 grey82
763212 212 212 gray83
764212 212 212 grey83
765214 214 214 gray84
766214 214 214 grey84
767217 217 217 gray85
768217 217 217 grey85
769219 219 219 gray86
770219 219 219 grey86
771222 222 222 gray87
772222 222 222 grey87
773224 224 224 gray88
774224 224 224 grey88
775227 227 227 gray89
776227 227 227 grey89
777229 229 229 gray90
778229 229 229 grey90
779232 232 232 gray91
780232 232 232 grey91
781235 235 235 gray92
782235 235 235 grey92
783237 237 237 gray93
784237 237 237 grey93
785240 240 240 gray94
786240 240 240 grey94
787242 242 242 gray95
788242 242 242 grey95
789245 245 245 gray96
790245 245 245 grey96
791247 247 247 gray97
792247 247 247 grey97
793250 250 250 gray98
794250 250 250 grey98
795252 252 252 gray99
796252 252 252 grey99
797255 255 255 gray100
798255 255 255 grey100
799169 169 169 dark grey
800169 169 169 DarkGrey
801169 169 169 dark gray
802169 169 169 DarkGray
8030 0 139 dark blue
8040 0 139 DarkBlue
8050 139 139 dark cyan
8060 139 139 DarkCyan
807139 0 139 dark magenta
808139 0 139 DarkMagenta
809139 0 0 dark red
810139 0 0 DarkRed
811144 238 144 light green
812144 238 144 LightGreen
813__END__
e8e9b503 814
1c00d65b
TC
815=head1 NAME
816
817Imager::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
827This class provides a base color table for use in resolving color names.
828
5715f7c3 829The table contains the standard X11 C<rgb.txt> colors.
1c00d65b
TC
830
831This table is not included as part of Imager::Color itself since it's
832moderately large.
833
d5556805
TC
834There 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
843Retrieves a color from Imager::Color::Tables built-in color table.
844
845=back
1c00d65b
TC
846
847=head1 AUTHOR
848
849Tony Cook <tony@develop-help.com>
850
851=cut
852