| 1 | package Graphics::ColorNames::IE; | ||
| 2 | |||
| 3 | 3 | require 5.006; | |
| 4 | |||
| 5 | 3 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 3 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 3 | our $VERSION = '1.13'; | |
| 9 | |||
| 10 | 2 | ▶ | sub NamesRgbTable() { |
|
Subroutine
NamesRgbTable: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 11 | 3 | ▶ | use integer; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 12 | return { | ||
| 13 | 2 | (lc 'AliceBlue') => 0xF0F8FF, # 240,248,255 | |
| 14 | (lc 'AntiqueWhite') => 0xFAEBD7, # 250,235,215 | ||
| 15 | (lc 'Aqua') => 0x00FFFF, # 0,255,255 | ||
| 16 | (lc 'Aquamarine') => 0x7FFFD4, # 127,255,212 | ||
| 17 | (lc 'Azure') => 0xF0FFFF, # 240,255,255 | ||
| 18 | (lc 'Beige') => 0xF5F5DC, # 245,245,220 | ||
| 19 | (lc 'Bisque') => 0xFFE4C4, # 255,228,196 | ||
| 20 | (lc 'Black') => 0x000000, # 0,0,0 | ||
| 21 | (lc 'BlanchedAlmond') => 0xFFEBCD, # 255,235,205 | ||
| 22 | (lc 'Blue') => 0x0000FF, # 0,0,255 | ||
| 23 | (lc 'BlueViolet') => 0x8A2BE2, # 138,43,226 | ||
| 24 | (lc 'Brown') => 0xA52A2A, # 165,42,42 | ||
| 25 | (lc 'BurlyWood') => 0xDEB887, # 222,184,135 | ||
| 26 | (lc 'CadetBlue') => 0x5F9EA0, # 95,158,160 | ||
| 27 | (lc 'Chartreuse') => 0x7FFF00, # 127,255,0 | ||
| 28 | (lc 'Chocolate') => 0xD2691E, # 210,105,30 | ||
| 29 | (lc 'Coral') => 0xFF7F50, # 255,127,80 | ||
| 30 | (lc 'CornflowerBlue') => 0x6495ED, # 100,149,237 | ||
| 31 | (lc 'Cornsilk') => 0xFFF8DC, # 255,248,220 | ||
| 32 | (lc 'Crimson') => 0xDC143C, # 220,20,60 | ||
| 33 | (lc 'Cyan') => 0x00FFFF, # 0,255,255 | ||
| 34 | (lc 'DarkBlue') => 0x00008B, # 0,0,139 | ||
| 35 | (lc 'DarkCyan') => 0x008B8B, # 0,139,139 | ||
| 36 | (lc 'DarkGoldenrod') => 0xB8860B, # 184,134,11 | ||
| 37 | (lc 'DarkGray') => 0xA9A9A9, # 169,169,169 | ||
| 38 | (lc 'DarkGreen') => 0x006400, # 0,100,0 | ||
| 39 | (lc 'DarkKhaki') => 0xBDB76B, # 189,183,107 | ||
| 40 | (lc 'DarkMagenta') => 0x8B008B, # 139,0,139 | ||
| 41 | (lc 'DarkOliveGreen') => 0x556B2F, # 85,107,47 | ||
| 42 | (lc 'DarkOrange') => 0xFF8C00, # 255,140,0 | ||
| 43 | (lc 'DarkOrchid') => 0x9932CC, # 153,50,204 | ||
| 44 | (lc 'DarkRed') => 0x8B0000, # 139,0,0 | ||
| 45 | (lc 'DarkSalmon') => 0xE9967A, # 233,150,122 | ||
| 46 | (lc 'DarkSeaGreen') => 0x8FBC8F, # 143,188,143 | ||
| 47 | (lc 'DarkSlateBlue') => 0x483D8B, # 72,61,139 | ||
| 48 | (lc 'DarkSlateGray') => 0x2F4F4F, # 47,79,79 | ||
| 49 | (lc 'DarkTurquoise') => 0x00CED1, # 0,206,209 | ||
| 50 | (lc 'DarkViolet') => 0x9400D3, # 148,0,211 | ||
| 51 | (lc 'DeepPink') => 0xFF1493, # 255,20,147 | ||
| 52 | (lc 'DeepSkyBlue') => 0x00BFFF, # 0,191,255 | ||
| 53 | (lc 'DimGray') => 0x696969, # 105,105,105 | ||
| 54 | (lc 'DodgerBlue') => 0x1E90FF, # 30,144,255 | ||
| 55 | (lc 'FireBrick') => 0xB22222, # 178,34,34 | ||
| 56 | (lc 'FloralWhite') => 0xFFFAF0, # 255,250,240 | ||
| 57 | (lc 'ForestGreen') => 0x228B22, # 34,139,34 | ||
| 58 | (lc 'Fuchsia') => 0xFF00FF, # 255,0,255 | ||
| 59 | (lc 'Gainsboro') => 0xDCDCDC, # 220,220,220 | ||
| 60 | (lc 'GhostWhite') => 0xF8F8FF, # 248,248,255 | ||
| 61 | (lc 'Gold') => 0xFFD700, # 255,215,0 | ||
| 62 | (lc 'Goldenrod') => 0xDAA520, # 218,165,32 | ||
| 63 | (lc 'Gray') => 0x808080, # 128,128,128 ## NB: Grey is missing! | ||
| 64 | (lc 'Green') => 0x008000, # 0,128,0 | ||
| 65 | (lc 'GreenYellow') => 0xADFF2F, # 173,255,47 | ||
| 66 | (lc 'Honeydew') => 0xF0FFF0, # 240,255,240 | ||
| 67 | (lc 'HotPink') => 0xFF69B4, # 255,105,180 | ||
| 68 | (lc 'IndianRed') => 0xCD5C5C, # 205,92,92 | ||
| 69 | (lc 'Indigo') => 0x4B0082, # 75,0,130 | ||
| 70 | (lc 'Ivory') => 0xFFFFF0, # 255,255,240 | ||
| 71 | (lc 'Khaki') => 0xF0E68C, # 240,230,140 | ||
| 72 | (lc 'Lavender') => 0xE6E6FA, # 230,230,250 | ||
| 73 | (lc 'LavenderBlush') => 0xFFF0F5, # 255,240,245 | ||
| 74 | (lc 'LawnGreen') => 0x7CFC00, # 124,252,0 | ||
| 75 | (lc 'LemonChiffon') => 0xFFFACD, # 255,250,205 | ||
| 76 | (lc 'LightBlue') => 0xADD8E6, # 173,216,230 | ||
| 77 | (lc 'LightCoral') => 0xF08080, # 240,128,128 | ||
| 78 | (lc 'LightCyan') => 0xE0FFFF, # 224,255,255 | ||
| 79 | (lc 'LightGoldenrodYellow') => 0xFAFAD2, # 250,250,210 | ||
| 80 | (lc 'LightGreen') => 0x90EE90, # 144,238,144 | ||
| 81 | (lc 'LightGrey') => 0xD3D3D3, # 211,211,211 | ||
| 82 | (lc 'LightPink') => 0xFFB6C1, # 255,182,193 | ||
| 83 | (lc 'LightSalmon') => 0xFFA07A, # 255,160,122 | ||
| 84 | (lc 'LightSeaGreen') => 0x20B2AA, # 32,178,170 | ||
| 85 | (lc 'LightSkyBlue') => 0x87CEFA, # 135,206,250 | ||
| 86 | (lc 'LightSlateGray') => 0x778899, # 119,136,153 | ||
| 87 | (lc 'LightSteelBlue') => 0xB0C4DE, # 176,196,222 | ||
| 88 | (lc 'LightYellow') => 0xFFFFE0, # 255,255,224 | ||
| 89 | (lc 'Lime') => 0x00FF00, # 0,255,0 | ||
| 90 | (lc 'LimeGreen') => 0x32CD32, # 50,205,50 | ||
| 91 | (lc 'Linen') => 0xFAF0E6, # 250,240,230 | ||
| 92 | (lc 'Magenta') => 0xFF00FF, # 255,0,255 | ||
| 93 | (lc 'Maroon') => 0x800000, # 128,0,0 | ||
| 94 | (lc 'MediumAquamarine') => 0x66CDAA, # 102,205,170 | ||
| 95 | (lc 'MediumBlue') => 0x0000CD, # 0,0,205 | ||
| 96 | (lc 'MediumOrchid') => 0xBA55D3, # 186,85,211 | ||
| 97 | (lc 'MediumPurple') => 0x9370DB, # 147,112,219 | ||
| 98 | (lc 'MediumSeaGreen') => 0x3CB371, # 60,179,113 | ||
| 99 | (lc 'MediumSlateBlue') => 0x7B68EE, # 123,104,238 | ||
| 100 | (lc 'MediumSpringGreen') => 0x00FA9A, # 0,250,154 | ||
| 101 | (lc 'MediumTurquoise') => 0x48D1CC, # 72,209,204 | ||
| 102 | (lc 'MediumVioletRed') => 0xC71585, # 199,21,133 | ||
| 103 | (lc 'MidnightBlue') => 0x191970, # 25,25,112 | ||
| 104 | (lc 'MintCream') => 0xF5FFFA, # 245,255,250 | ||
| 105 | (lc 'MistyRose') => 0xFFE4E1, # 255,228,225 | ||
| 106 | (lc 'Moccasin') => 0xFFE4B5, # 255,228,181 | ||
| 107 | (lc 'NavajoWhite') => 0xFFDEAD, # 255,222,173 | ||
| 108 | (lc 'Navy') => 0x000080, # 0,0,128 | ||
| 109 | (lc 'OldLace') => 0xFDF5E6, # 253,245,230 | ||
| 110 | (lc 'Olive') => 0x808000, # 128,128,0 | ||
| 111 | (lc 'OliveDrab') => 0x6B8E23, # 107,142,35 | ||
| 112 | (lc 'Orange') => 0xFFA500, # 255,165,0 | ||
| 113 | (lc 'OrangeRed') => 0xFF4500, # 255,69,0 | ||
| 114 | (lc 'Orchid') => 0xDA70D6, # 218,112,214 | ||
| 115 | (lc 'PaleGoldenrod') => 0xEEE8AA, # 238,232,170 | ||
| 116 | (lc 'PaleGreen') => 0x98FB98, # 152,251,152 | ||
| 117 | (lc 'PaleTurquoise') => 0xAFEEEE, # 175,238,238 | ||
| 118 | (lc 'PaleVioletRed') => 0xDB7093, # 219,112,147 | ||
| 119 | (lc 'PapayaWhip') => 0xFFEFD5, # 255,239,213 | ||
| 120 | (lc 'PeachPuff') => 0xFFDAB9, # 255,218,185 | ||
| 121 | (lc 'Peru') => 0xCD853F, # 205,133,63 | ||
| 122 | (lc 'Pink') => 0xFFC0CB, # 255,192,203 | ||
| 123 | (lc 'Plum') => 0xDDA0DD, # 221,160,221 | ||
| 124 | (lc 'PowderBlue') => 0xB0E0E6, # 176,224,230 | ||
| 125 | (lc 'Purple') => 0x800080, # 128,0,128 | ||
| 126 | (lc 'Red') => 0xFF0000, # 255,0,0 | ||
| 127 | (lc 'RosyBrown') => 0xBC8F8F, # 188,143,143 | ||
| 128 | (lc 'RoyalBlue') => 0x4169E1, # 65,105,225 | ||
| 129 | (lc 'SaddleBrown') => 0x8B4513, # 139,69,19 | ||
| 130 | (lc 'Salmon') => 0xFA8072, # 250,128,114 | ||
| 131 | (lc 'SandyBrown') => 0xF4A460, # 244,164,96 | ||
| 132 | (lc 'SeaGreen') => 0x2E8B57, # 46,139,87 | ||
| 133 | (lc 'Seashell') => 0xFFF5EE, # 255,245,238 | ||
| 134 | (lc 'Sienna') => 0xA0522D, # 160,82,45 | ||
| 135 | (lc 'Silver') => 0xC0C0C0, # 192,192,192 | ||
| 136 | (lc 'SkyBlue') => 0x87CEEB, # 135,206,235 | ||
| 137 | (lc 'SlateBlue') => 0x6A5ACD, # 106,90,205 | ||
| 138 | (lc 'SlateGray') => 0x708090, # 112,128,144 | ||
| 139 | (lc 'Snow') => 0xFFFAFA, # 255,250,250 | ||
| 140 | (lc 'SpringGreen') => 0x00FF7F, # 0,255,127 | ||
| 141 | (lc 'SteelBlue') => 0x4682B4, # 70,130,180 | ||
| 142 | (lc 'Tan') => 0xD2B48C, # 210,180,140 | ||
| 143 | (lc 'Teal') => 0x008080, # 0,128,128 | ||
| 144 | (lc 'Thistle') => 0xD8BFD8, # 216,191,216 | ||
| 145 | (lc 'Tomato') => 0xFF6347, # 255,99,71 | ||
| 146 | (lc 'Turquoise') => 0x40E0D0, # 64,224,208 | ||
| 147 | (lc 'Violet') => 0xEE82EE, # 238,130,238 | ||
| 148 | (lc 'Wheat') => 0xF5DEB3, # 245,222,179 | ||
| 149 | (lc 'White') => 0xFFFFFF, # 255,255,255 | ||
| 150 | (lc 'WhiteSmoke') => 0xF5F5F5, # 245,245,245 | ||
| 151 | (lc 'Yellow') => 0xFFFF00, # 255,255,0 | ||
| 152 | (lc 'YellowGreen') => 0x9ACD32, # 154,205,50 | ||
| 153 | }; | ||
| 154 | } | ||
| 155 | |||
| 156 | 3 | 1; | |
| 157 | |||
| 158 | =head1 NAME | ||
| 159 | |||
| 160 | Graphics::ColorNames::IE - MS Internet Explorer color names and equivalent RGB values | ||
| 161 | |||
| 162 | =head1 SYNOPSIS | ||
| 163 | |||
| 164 | require Graphics::ColorNames::IE; | ||
| 165 | |||
| 166 | $NameTable = Graphics::ColorNames::IE->NamesRgbTable(); | ||
| 167 | $RgbBlack = $NameTable->{black}; | ||
| 168 | |||
| 169 | =head1 DESCRIPTION | ||
| 170 | |||
| 171 | This module defines color names and their associated RGB values recognized by | ||
| 172 | Microsoft Internet Explorer. | ||
| 173 | |||
| 174 | This currently is a subset of the colors defined by CSS and SVG specifications. | ||
| 175 | |||
| 176 | See the documentation of L<Graphics::ColorNames> for information how to use | ||
| 177 | this module. | ||
| 178 | |||
| 179 | =head2 NOTE | ||
| 180 | |||
| 181 | Although Microsoft calls them "X11 color names", some of them are not identical | ||
| 182 | to the definitions in the X Specification. | ||
| 183 | |||
| 184 | =head1 SEE ALSO | ||
| 185 | |||
| 186 | C<Graphics::ColorNames::WWW>, MSDN <http://msdn.microsoft.com/library/en-us/dnwebgen/html/X11_names.asp> | ||
| 187 | |||
| 188 | =head1 AUTHOR | ||
| 189 | |||
| 190 | Claus FE<auml>rber <CFAERBER@cpan.org> | ||
| 191 | |||
| 192 | Based on C<Graphics::ColorNames::HTML> by Robert Rothenberg. | ||
| 193 | |||
| 194 | =head1 LICENSE | ||
| 195 | |||
| 196 | Copyright 2005-2009 Claus FE<auml>rber. | ||
| 197 | |||
| 198 | Copyright 2001-2004 Robert Rothenberg. | ||
| 199 | |||
| 200 | This program is free software; you can redistribute it | ||
| 201 | and/or modify it under the same terms as Perl itself. | ||
| 202 | |||
| 203 | =cut | ||