| 1 |
// Copyright 2006 The Closure Library Authors. All Rights Reserved. |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS-IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
/** |
| 16 |
* @fileoverview Names of standard colors with their associated hex values. |
| 17 |
*/ |
| 18 |
|
| 19 |
goog.provide('goog.color.names'); |
| 20 |
|
| 21 |
|
| 22 |
/** |
| 23 |
* A map that contains a lot of colors that are recognised by various browsers. |
| 24 |
* This list is way larger than the minimal one dictated by W3C. |
| 25 |
* The keys of this map are the lowercase "readable" names of the colors, while |
| 26 |
* the values are the "hex" values. |
| 27 |
* |
| 28 |
* @type {!Object<string, string>} |
| 29 |
*/ |
| 30 |
goog.color.names = { |
| 31 |
'aliceblue': '#f0f8ff', |
| 32 |
'antiquewhite': '#faebd7', |
| 33 |
'aqua': '#00ffff', |
| 34 |
'aquamarine': '#7fffd4', |
| 35 |
'azure': '#f0ffff', |
| 36 |
'beige': '#f5f5dc', |
| 37 |
'bisque': '#ffe4c4', |
| 38 |
'black': '#000000', |
| 39 |
'blanchedalmond': '#ffebcd', |
| 40 |
'blue': '#0000ff', |
| 41 |
'blueviolet': '#8a2be2', |
| 42 |
'brown': '#a52a2a', |
| 43 |
'burlywood': '#deb887', |
| 44 |
'cadetblue': '#5f9ea0', |
| 45 |
'chartreuse': '#7fff00', |
| 46 |
'chocolate': '#d2691e', |
| 47 |
'coral': '#ff7f50', |
| 48 |
'cornflowerblue': '#6495ed', |
| 49 |
'cornsilk': '#fff8dc', |
| 50 |
'crimson': '#dc143c', |
| 51 |
'cyan': '#00ffff', |
| 52 |
'darkblue': '#00008b', |
| 53 |
'darkcyan': '#008b8b', |
| 54 |
'darkgoldenrod': '#b8860b', |
| 55 |
'darkgray': '#a9a9a9', |
| 56 |
'darkgreen': '#006400', |
| 57 |
'darkgrey': '#a9a9a9', |
| 58 |
'darkkhaki': '#bdb76b', |
| 59 |
'darkmagenta': '#8b008b', |
| 60 |
'darkolivegreen': '#556b2f', |
| 61 |
'darkorange': '#ff8c00', |
| 62 |
'darkorchid': '#9932cc', |
| 63 |
'darkred': '#8b0000', |
| 64 |
'darksalmon': '#e9967a', |
| 65 |
'darkseagreen': '#8fbc8f', |
| 66 |
'darkslateblue': '#483d8b', |
| 67 |
'darkslategray': '#2f4f4f', |
| 68 |
'darkslategrey': '#2f4f4f', |
| 69 |
'darkturquoise': '#00ced1', |
| 70 |
'darkviolet': '#9400d3', |
| 71 |
'deeppink': '#ff1493', |
| 72 |
'deepskyblue': '#00bfff', |
| 73 |
'dimgray': '#696969', |
| 74 |
'dimgrey': '#696969', |
| 75 |
'dodgerblue': '#1e90ff', |
| 76 |
'firebrick': '#b22222', |
| 77 |
'floralwhite': '#fffaf0', |
| 78 |
'forestgreen': '#228b22', |
| 79 |
'fuchsia': '#ff00ff', |
| 80 |
'gainsboro': '#dcdcdc', |
| 81 |
'ghostwhite': '#f8f8ff', |
| 82 |
'gold': '#ffd700', |
| 83 |
'goldenrod': '#daa520', |
| 84 |
'gray': '#808080', |
| 85 |
'green': '#008000', |
| 86 |
'greenyellow': '#adff2f', |
| 87 |
'grey': '#808080', |
| 88 |
'honeydew': '#f0fff0', |
| 89 |
'hotpink': '#ff69b4', |
| 90 |
'indianred': '#cd5c5c', |
| 91 |
'indigo': '#4b0082', |
| 92 |
'ivory': '#fffff0', |
| 93 |
'khaki': '#f0e68c', |
| 94 |
'lavender': '#e6e6fa', |
| 95 |
'lavenderblush': '#fff0f5', |
| 96 |
'lawngreen': '#7cfc00', |
| 97 |
'lemonchiffon': '#fffacd', |
| 98 |
'lightblue': '#add8e6', |
| 99 |
'lightcoral': '#f08080', |
| 100 |
'lightcyan': '#e0ffff', |
| 101 |
'lightgoldenrodyellow': '#fafad2', |
| 102 |
'lightgray': '#d3d3d3', |
| 103 |
'lightgreen': '#90ee90', |
| 104 |
'lightgrey': '#d3d3d3', |
| 105 |
'lightpink': '#ffb6c1', |
| 106 |
'lightsalmon': '#ffa07a', |
| 107 |
'lightseagreen': '#20b2aa', |
| 108 |
'lightskyblue': '#87cefa', |
| 109 |
'lightslategray': '#778899', |
| 110 |
'lightslategrey': '#778899', |
| 111 |
'lightsteelblue': '#b0c4de', |
| 112 |
'lightyellow': '#ffffe0', |
| 113 |
'lime': '#00ff00', |
| 114 |
'limegreen': '#32cd32', |
| 115 |
'linen': '#faf0e6', |
| 116 |
'magenta': '#ff00ff', |
| 117 |
'maroon': '#800000', |
| 118 |
'mediumaquamarine': '#66cdaa', |
| 119 |
'mediumblue': '#0000cd', |
| 120 |
'mediumorchid': '#ba55d3', |
| 121 |
'mediumpurple': '#9370db', |
| 122 |
'mediumseagreen': '#3cb371', |
| 123 |
'mediumslateblue': '#7b68ee', |
| 124 |
'mediumspringgreen': '#00fa9a', |
| 125 |
'mediumturquoise': '#48d1cc', |
| 126 |
'mediumvioletred': '#c71585', |
| 127 |
'midnightblue': '#191970', |
| 128 |
'mintcream': '#f5fffa', |
| 129 |
'mistyrose': '#ffe4e1', |
| 130 |
'moccasin': '#ffe4b5', |
| 131 |
'navajowhite': '#ffdead', |
| 132 |
'navy': '#000080', |
| 133 |
'oldlace': '#fdf5e6', |
| 134 |
'olive': '#808000', |
| 135 |
'olivedrab': '#6b8e23', |
| 136 |
'orange': '#ffa500', |
| 137 |
'orangered': '#ff4500', |
| 138 |
'orchid': '#da70d6', |
| 139 |
'palegoldenrod': '#eee8aa', |
| 140 |
'palegreen': '#98fb98', |
| 141 |
'paleturquoise': '#afeeee', |
| 142 |
'palevioletred': '#db7093', |
| 143 |
'papayawhip': '#ffefd5', |
| 144 |
'peachpuff': '#ffdab9', |
| 145 |
'peru': '#cd853f', |
| 146 |
'pink': '#ffc0cb', |
| 147 |
'plum': '#dda0dd', |
| 148 |
'powderblue': '#b0e0e6', |
| 149 |
'purple': '#800080', |
| 150 |
'red': '#ff0000', |
| 151 |
'rosybrown': '#bc8f8f', |
| 152 |
'royalblue': '#4169e1', |
| 153 |
'saddlebrown': '#8b4513', |
| 154 |
'salmon': '#fa8072', |
| 155 |
'sandybrown': '#f4a460', |
| 156 |
'seagreen': '#2e8b57', |
| 157 |
'seashell': '#fff5ee', |
| 158 |
'sienna': '#a0522d', |
| 159 |
'silver': '#c0c0c0', |
| 160 |
'skyblue': '#87ceeb', |
| 161 |
'slateblue': '#6a5acd', |
| 162 |
'slategray': '#708090', |
| 163 |
'slategrey': '#708090', |
| 164 |
'snow': '#fffafa', |
| 165 |
'springgreen': '#00ff7f', |
| 166 |
'steelblue': '#4682b4', |
| 167 |
'tan': '#d2b48c', |
| 168 |
'teal': '#008080', |
| 169 |
'thistle': '#d8bfd8', |
| 170 |
'tomato': '#ff6347', |
| 171 |
'turquoise': '#40e0d0', |
| 172 |
'violet': '#ee82ee', |
| 173 |
'wheat': '#f5deb3', |
| 174 |
'white': '#ffffff', |
| 175 |
'whitesmoke': '#f5f5f5', |
| 176 |
'yellow': '#ffff00', |
| 177 |
'yellowgreen': '#9acd32' |
| 178 |
}; |