1. /*
  2. * @(#)XColors.java 1.4 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package com.sun.java.swing.plaf.gtk;
  8. import java.awt.Color;
  9. import java.util.Arrays;
  10. import javax.swing.plaf.ColorUIResource;
  11. /**
  12. * @author Shannon Hickey
  13. * @version 1.4 01/23/03
  14. */
  15. class XColors {
  16. private static class XColor implements Comparable {
  17. String name;
  18. int red;
  19. int green;
  20. int blue;
  21. XColor(String name, int red, int green, int blue) {
  22. this.name = name;
  23. this.red = red;
  24. this.green = green;
  25. this.blue = blue;
  26. }
  27. Color toColor() {
  28. return new ColorUIResource(red, green, blue);
  29. }
  30. public int compareTo(Object o) {
  31. XColor other = (XColor)o;
  32. return name.compareTo(other.name);
  33. }
  34. }
  35. private static XColor key = new XColor("", -1, -1, -1);
  36. static Color lookupColor(String name) {
  37. key.name = name.toLowerCase();
  38. int pos = Arrays.binarySearch(colors, key);
  39. if (pos < 0) {
  40. return null;
  41. }
  42. return colors[pos].toColor();
  43. }
  44. private static final XColor[] colors = {
  45. new XColor("alice blue", 240, 248, 255),
  46. new XColor("aliceblue", 240, 248, 255),
  47. new XColor("antique white", 250, 235, 215),
  48. new XColor("antiquewhite", 250, 235, 215),
  49. new XColor("antiquewhite1", 255, 239, 219),
  50. new XColor("antiquewhite2", 238, 223, 204),
  51. new XColor("antiquewhite3", 205, 192, 176),
  52. new XColor("antiquewhite4", 139, 131, 120),
  53. new XColor("aquamarine", 127, 255, 212),
  54. new XColor("aquamarine1", 127, 255, 212),
  55. new XColor("aquamarine2", 118, 238, 198),
  56. new XColor("aquamarine3", 102, 205, 170),
  57. new XColor("aquamarine4", 69, 139, 116),
  58. new XColor("azure", 240, 255, 255),
  59. new XColor("azure1", 240, 255, 255),
  60. new XColor("azure2", 224, 238, 238),
  61. new XColor("azure3", 193, 205, 205),
  62. new XColor("azure4", 131, 139, 139),
  63. new XColor("beige", 245, 245, 220),
  64. new XColor("bisque", 255, 228, 196),
  65. new XColor("bisque1", 255, 228, 196),
  66. new XColor("bisque2", 238, 213, 183),
  67. new XColor("bisque3", 205, 183, 158),
  68. new XColor("bisque4", 139, 125, 107),
  69. new XColor("black", 0, 0, 0),
  70. new XColor("blanched almond", 255, 235, 205),
  71. new XColor("blanchedalmond", 255, 235, 205),
  72. new XColor("blue", 0, 0, 255),
  73. new XColor("blue violet", 138, 43, 226),
  74. new XColor("blue1", 0, 0, 255),
  75. new XColor("blue2", 0, 0, 238),
  76. new XColor("blue3", 0, 0, 205),
  77. new XColor("blue4", 0, 0, 139),
  78. new XColor("blueviolet", 138, 43, 226),
  79. new XColor("brown", 165, 42, 42),
  80. new XColor("brown1", 255, 64, 64),
  81. new XColor("brown2", 238, 59, 59),
  82. new XColor("brown3", 205, 51, 51),
  83. new XColor("brown4", 139, 35, 35),
  84. new XColor("burlywood", 222, 184, 135),
  85. new XColor("burlywood1", 255, 211, 155),
  86. new XColor("burlywood2", 238, 197, 145),
  87. new XColor("burlywood3", 205, 170, 125),
  88. new XColor("burlywood4", 139, 115, 85),
  89. new XColor("cadet blue", 95, 158, 160),
  90. new XColor("cadetblue", 95, 158, 160),
  91. new XColor("cadetblue1", 152, 245, 255),
  92. new XColor("cadetblue2", 142, 229, 238),
  93. new XColor("cadetblue3", 122, 197, 205),
  94. new XColor("cadetblue4", 83, 134, 139),
  95. new XColor("chartreuse", 127, 255, 0),
  96. new XColor("chartreuse1", 127, 255, 0),
  97. new XColor("chartreuse2", 118, 238, 0),
  98. new XColor("chartreuse3", 102, 205, 0),
  99. new XColor("chartreuse4", 69, 139, 0),
  100. new XColor("chocolate", 210, 105, 30),
  101. new XColor("chocolate1", 255, 127, 36),
  102. new XColor("chocolate2", 238, 118, 33),
  103. new XColor("chocolate3", 205, 102, 29),
  104. new XColor("chocolate4", 139, 69, 19),
  105. new XColor("coral", 255, 127, 80),
  106. new XColor("coral1", 255, 114, 86),
  107. new XColor("coral2", 238, 106, 80),
  108. new XColor("coral3", 205, 91, 69),
  109. new XColor("coral4", 139, 62, 47),
  110. new XColor("cornflower blue", 100, 149, 237),
  111. new XColor("cornflowerblue", 100, 149, 237),
  112. new XColor("cornsilk", 255, 248, 220),
  113. new XColor("cornsilk1", 255, 248, 220),
  114. new XColor("cornsilk2", 238, 232, 205),
  115. new XColor("cornsilk3", 205, 200, 177),
  116. new XColor("cornsilk4", 139, 136, 120),
  117. new XColor("cyan", 0, 255, 255),
  118. new XColor("cyan1", 0, 255, 255),
  119. new XColor("cyan2", 0, 238, 238),
  120. new XColor("cyan3", 0, 205, 205),
  121. new XColor("cyan4", 0, 139, 139),
  122. new XColor("dark blue", 0, 0, 139),
  123. new XColor("dark cyan", 0, 139, 139),
  124. new XColor("dark goldenrod", 184, 134, 11),
  125. new XColor("dark gray", 169, 169, 169),
  126. new XColor("dark green", 0, 100, 0),
  127. new XColor("dark grey", 169, 169, 169),
  128. new XColor("dark khaki", 189, 183, 107),
  129. new XColor("dark magenta", 139, 0, 139),
  130. new XColor("dark olive green", 85, 107, 47),
  131. new XColor("dark orange", 255, 140, 0),
  132. new XColor("dark orchid", 153, 50, 204),
  133. new XColor("dark red", 139, 0, 0),
  134. new XColor("dark salmon", 233, 150, 122),
  135. new XColor("dark sea green", 143, 188, 143),
  136. new XColor("dark slate blue", 72, 61, 139),
  137. new XColor("dark slate gray", 47, 79, 79),
  138. new XColor("dark slate grey", 47, 79, 79),
  139. new XColor("dark turquoise", 0, 206, 209),
  140. new XColor("dark violet", 148, 0, 211),
  141. new XColor("darkblue", 0, 0, 139),
  142. new XColor("darkcyan", 0, 139, 139),
  143. new XColor("darkgoldenrod", 184, 134, 11),
  144. new XColor("darkgoldenrod1", 255, 185, 15),
  145. new XColor("darkgoldenrod2", 238, 173, 14),
  146. new XColor("darkgoldenrod3", 205, 149, 12),
  147. new XColor("darkgoldenrod4", 139, 101, 8),
  148. new XColor("darkgray", 169, 169, 169),
  149. new XColor("darkgreen", 0, 100, 0),
  150. new XColor("darkgrey", 169, 169, 169),
  151. new XColor("darkkhaki", 189, 183, 107),
  152. new XColor("darkmagenta", 139, 0, 139),
  153. new XColor("darkolivegreen", 85, 107, 47),
  154. new XColor("darkolivegreen1", 202, 255, 112),
  155. new XColor("darkolivegreen2", 188, 238, 104),
  156. new XColor("darkolivegreen3", 162, 205, 90),
  157. new XColor("darkolivegreen4", 110, 139, 61),
  158. new XColor("darkorange", 255, 140, 0),
  159. new XColor("darkorange1", 255, 127, 0),
  160. new XColor("darkorange2", 238, 118, 0),
  161. new XColor("darkorange3", 205, 102, 0),
  162. new XColor("darkorange4", 139, 69, 0),
  163. new XColor("darkorchid", 153, 50, 204),
  164. new XColor("darkorchid1", 191, 62, 255),
  165. new XColor("darkorchid2", 178, 58, 238),
  166. new XColor("darkorchid3", 154, 50, 205),
  167. new XColor("darkorchid4", 104, 34, 139),
  168. new XColor("darkred", 139, 0, 0),
  169. new XColor("darksalmon", 233, 150, 122),
  170. new XColor("darkseagreen", 143, 188, 143),
  171. new XColor("darkseagreen1", 193, 255, 193),
  172. new XColor("darkseagreen2", 180, 238, 180),
  173. new XColor("darkseagreen3", 155, 205, 155),
  174. new XColor("darkseagreen4", 105, 139, 105),
  175. new XColor("darkslateblue", 72, 61, 139),
  176. new XColor("darkslategray", 47, 79, 79),
  177. new XColor("darkslategray1", 151, 255, 255),
  178. new XColor("darkslategray2", 141, 238, 238),
  179. new XColor("darkslategray3", 121, 205, 205),
  180. new XColor("darkslategray4", 82, 139, 139),
  181. new XColor("darkslategrey", 47, 79, 79),
  182. new XColor("darkturquoise", 0, 206, 209),
  183. new XColor("darkviolet", 148, 0, 211),
  184. new XColor("deep pink", 255, 20, 147),
  185. new XColor("deep sky blue", 0, 191, 255),
  186. new XColor("deeppink", 255, 20, 147),
  187. new XColor("deeppink1", 255, 20, 147),
  188. new XColor("deeppink2", 238, 18, 137),
  189. new XColor("deeppink3", 205, 16, 118),
  190. new XColor("deeppink4", 139, 10, 80),
  191. new XColor("deepskyblue", 0, 191, 255),
  192. new XColor("deepskyblue1", 0, 191, 255),
  193. new XColor("deepskyblue2", 0, 178, 238),
  194. new XColor("deepskyblue3", 0, 154, 205),
  195. new XColor("deepskyblue4", 0, 104, 139),
  196. new XColor("dim gray", 105, 105, 105),
  197. new XColor("dim grey", 105, 105, 105),
  198. new XColor("dimgray", 105, 105, 105),
  199. new XColor("dimgrey", 105, 105, 105),
  200. new XColor("dodger blue", 30, 144, 255),
  201. new XColor("dodgerblue", 30, 144, 255),
  202. new XColor("dodgerblue1", 30, 144, 255),
  203. new XColor("dodgerblue2", 28, 134, 238),
  204. new XColor("dodgerblue3", 24, 116, 205),
  205. new XColor("dodgerblue4", 16, 78, 139),
  206. new XColor("firebrick", 178, 34, 34),
  207. new XColor("firebrick1", 255, 48, 48),
  208. new XColor("firebrick2", 238, 44, 44),
  209. new XColor("firebrick3", 205, 38, 38),
  210. new XColor("firebrick4", 139, 26, 26),
  211. new XColor("floral white", 255, 250, 240),
  212. new XColor("floralwhite", 255, 250, 240),
  213. new XColor("forest green", 34, 139, 34),
  214. new XColor("forestgreen", 34, 139, 34),
  215. new XColor("gainsboro", 220, 220, 220),
  216. new XColor("ghost white", 248, 248, 255),
  217. new XColor("ghostwhite", 248, 248, 255),
  218. new XColor("gold", 255, 215, 0),
  219. new XColor("gold1", 255, 215, 0),
  220. new XColor("gold2", 238, 201, 0),
  221. new XColor("gold3", 205, 173, 0),
  222. new XColor("gold4", 139, 117, 0),
  223. new XColor("goldenrod", 218, 165, 32),
  224. new XColor("goldenrod1", 255, 193, 37),
  225. new XColor("goldenrod2", 238, 180, 34),
  226. new XColor("goldenrod3", 205, 155, 29),
  227. new XColor("goldenrod4", 139, 105, 20),
  228. new XColor("gray", 190, 190, 190),
  229. new XColor("gray0", 0, 0, 0),
  230. new XColor("gray1", 3, 3, 3),
  231. new XColor("gray10", 26, 26, 26),
  232. new XColor("gray100", 255, 255, 255),
  233. new XColor("gray11", 28, 28, 28),
  234. new XColor("gray12", 31, 31, 31),
  235. new XColor("gray13", 33, 33, 33),
  236. new XColor("gray14", 36, 36, 36),
  237. new XColor("gray15", 38, 38, 38),
  238. new XColor("gray16", 41, 41, 41),
  239. new XColor("gray17", 43, 43, 43),
  240. new XColor("gray18", 46, 46, 46),
  241. new XColor("gray19", 48, 48, 48),
  242. new XColor("gray2", 5, 5, 5),
  243. new XColor("gray20", 51, 51, 51),
  244. new XColor("gray21", 54, 54, 54),
  245. new XColor("gray22", 56, 56, 56),
  246. new XColor("gray23", 59, 59, 59),
  247. new XColor("gray24", 61, 61, 61),
  248. new XColor("gray25", 64, 64, 64),
  249. new XColor("gray26", 66, 66, 66),
  250. new XColor("gray27", 69, 69, 69),
  251. new XColor("gray28", 71, 71, 71),
  252. new XColor("gray29", 74, 74, 74),
  253. new XColor("gray3", 8, 8, 8),
  254. new XColor("gray30", 77, 77, 77),
  255. new XColor("gray31", 79, 79, 79),
  256. new XColor("gray32", 82, 82, 82),
  257. new XColor("gray33", 84, 84, 84),
  258. new XColor("gray34", 87, 87, 87),
  259. new XColor("gray35", 89, 89, 89),
  260. new XColor("gray36", 92, 92, 92),
  261. new XColor("gray37", 94, 94, 94),
  262. new XColor("gray38", 97, 97, 97),
  263. new XColor("gray39", 99, 99, 99),
  264. new XColor("gray4", 10, 10, 10),
  265. new XColor("gray40", 102, 102, 102),
  266. new XColor("gray41", 105, 105, 105),
  267. new XColor("gray42", 107, 107, 107),
  268. new XColor("gray43", 110, 110, 110),
  269. new XColor("gray44", 112, 112, 112),
  270. new XColor("gray45", 115, 115, 115),
  271. new XColor("gray46", 117, 117, 117),
  272. new XColor("gray47", 120, 120, 120),
  273. new XColor("gray48", 122, 122, 122),
  274. new XColor("gray49", 125, 125, 125),
  275. new XColor("gray5", 13, 13, 13),
  276. new XColor("gray50", 127, 127, 127),
  277. new XColor("gray51", 130, 130, 130),
  278. new XColor("gray52", 133, 133, 133),
  279. new XColor("gray53", 135, 135, 135),
  280. new XColor("gray54", 138, 138, 138),
  281. new XColor("gray55", 140, 140, 140),
  282. new XColor("gray56", 143, 143, 143),
  283. new XColor("gray57", 145, 145, 145),
  284. new XColor("gray58", 148, 148, 148),
  285. new XColor("gray59", 150, 150, 150),
  286. new XColor("gray6", 15, 15, 15),
  287. new XColor("gray60", 153, 153, 153),
  288. new XColor("gray61", 156, 156, 156),
  289. new XColor("gray62", 158, 158, 158),
  290. new XColor("gray63", 161, 161, 161),
  291. new XColor("gray64", 163, 163, 163),
  292. new XColor("gray65", 166, 166, 166),
  293. new XColor("gray66", 168, 168, 168),
  294. new XColor("gray67", 171, 171, 171),
  295. new XColor("gray68", 173, 173, 173),
  296. new XColor("gray69", 176, 176, 176),
  297. new XColor("gray7", 18, 18, 18),
  298. new XColor("gray70", 179, 179, 179),
  299. new XColor("gray71", 181, 181, 181),
  300. new XColor("gray72", 184, 184, 184),
  301. new XColor("gray73", 186, 186, 186),
  302. new XColor("gray74", 189, 189, 189),
  303. new XColor("gray75", 191, 191, 191),
  304. new XColor("gray76", 194, 194, 194),
  305. new XColor("gray77", 196, 196, 196),
  306. new XColor("gray78", 199, 199, 199),
  307. new XColor("gray79", 201, 201, 201),
  308. new XColor("gray8", 20, 20, 20),
  309. new XColor("gray80", 204, 204, 204),
  310. new XColor("gray81", 207, 207, 207),
  311. new XColor("gray82", 209, 209, 209),
  312. new XColor("gray83", 212, 212, 212),
  313. new XColor("gray84", 214, 214, 214),
  314. new XColor("gray85", 217, 217, 217),
  315. new XColor("gray86", 219, 219, 219),
  316. new XColor("gray87", 222, 222, 222),
  317. new XColor("gray88", 224, 224, 224),
  318. new XColor("gray89", 227, 227, 227),
  319. new XColor("gray9", 23, 23, 23),
  320. new XColor("gray90", 229, 229, 229),
  321. new XColor("gray91", 232, 232, 232),
  322. new XColor("gray92", 235, 235, 235),
  323. new XColor("gray93", 237, 237, 237),
  324. new XColor("gray94", 240, 240, 240),
  325. new XColor("gray95", 242, 242, 242),
  326. new XColor("gray96", 245, 245, 245),
  327. new XColor("gray97", 247, 247, 247),
  328. new XColor("gray98", 250, 250, 250),
  329. new XColor("gray99", 252, 252, 252),
  330. new XColor("green", 0, 255, 0),
  331. new XColor("green yellow", 173, 255, 47),
  332. new XColor("green1", 0, 255, 0),
  333. new XColor("green2", 0, 238, 0),
  334. new XColor("green3", 0, 205, 0),
  335. new XColor("green4", 0, 139, 0),
  336. new XColor("greenyellow", 173, 255, 47),
  337. new XColor("grey", 190, 190, 190),
  338. new XColor("grey0", 0, 0, 0),
  339. new XColor("grey1", 3, 3, 3),
  340. new XColor("grey10", 26, 26, 26),
  341. new XColor("grey100", 255, 255, 255),
  342. new XColor("grey11", 28, 28, 28),
  343. new XColor("grey12", 31, 31, 31),
  344. new XColor("grey13", 33, 33, 33),
  345. new XColor("grey14", 36, 36, 36),
  346. new XColor("grey15", 38, 38, 38),
  347. new XColor("grey16", 41, 41, 41),
  348. new XColor("grey17", 43, 43, 43),
  349. new XColor("grey18", 46, 46, 46),
  350. new XColor("grey19", 48, 48, 48),
  351. new XColor("grey2", 5, 5, 5),
  352. new XColor("grey20", 51, 51, 51),
  353. new XColor("grey21", 54, 54, 54),
  354. new XColor("grey22", 56, 56, 56),
  355. new XColor("grey23", 59, 59, 59),
  356. new XColor("grey24", 61, 61, 61),
  357. new XColor("grey25", 64, 64, 64),
  358. new XColor("grey26", 66, 66, 66),
  359. new XColor("grey27", 69, 69, 69),
  360. new XColor("grey28", 71, 71, 71),
  361. new XColor("grey29", 74, 74, 74),
  362. new XColor("grey3", 8, 8, 8),
  363. new XColor("grey30", 77, 77, 77),
  364. new XColor("grey31", 79, 79, 79),
  365. new XColor("grey32", 82, 82, 82),
  366. new XColor("grey33", 84, 84, 84),
  367. new XColor("grey34", 87, 87, 87),
  368. new XColor("grey35", 89, 89, 89),
  369. new XColor("grey36", 92, 92, 92),
  370. new XColor("grey37", 94, 94, 94),
  371. new XColor("grey38", 97, 97, 97),
  372. new XColor("grey39", 99, 99, 99),
  373. new XColor("grey4", 10, 10, 10),
  374. new XColor("grey40", 102, 102, 102),
  375. new XColor("grey41", 105, 105, 105),
  376. new XColor("grey42", 107, 107, 107),
  377. new XColor("grey43", 110, 110, 110),
  378. new XColor("grey44", 112, 112, 112),
  379. new XColor("grey45", 115, 115, 115),
  380. new XColor("grey46", 117, 117, 117),
  381. new XColor("grey47", 120, 120, 120),
  382. new XColor("grey48", 122, 122, 122),
  383. new XColor("grey49", 125, 125, 125),
  384. new XColor("grey5", 13, 13, 13),
  385. new XColor("grey50", 127, 127, 127),
  386. new XColor("grey51", 130, 130, 130),
  387. new XColor("grey52", 133, 133, 133),
  388. new XColor("grey53", 135, 135, 135),
  389. new XColor("grey54", 138, 138, 138),
  390. new XColor("grey55", 140, 140, 140),
  391. new XColor("grey56", 143, 143, 143),
  392. new XColor("grey57", 145, 145, 145),
  393. new XColor("grey58", 148, 148, 148),
  394. new XColor("grey59", 150, 150, 150),
  395. new XColor("grey6", 15, 15, 15),
  396. new XColor("grey60", 153, 153, 153),
  397. new XColor("grey61", 156, 156, 156),
  398. new XColor("grey62", 158, 158, 158),
  399. new XColor("grey63", 161, 161, 161),
  400. new XColor("grey64", 163, 163, 163),
  401. new XColor("grey65", 166, 166, 166),
  402. new XColor("grey66", 168, 168, 168),
  403. new XColor("grey67", 171, 171, 171),
  404. new XColor("grey68", 173, 173, 173),
  405. new XColor("grey69", 176, 176, 176),
  406. new XColor("grey7", 18, 18, 18),
  407. new XColor("grey70", 179, 179, 179),
  408. new XColor("grey71", 181, 181, 181),
  409. new XColor("grey72", 184, 184, 184),
  410. new XColor("grey73", 186, 186, 186),
  411. new XColor("grey74", 189, 189, 189),
  412. new XColor("grey75", 191, 191, 191),
  413. new XColor("grey76", 194, 194, 194),
  414. new XColor("grey77", 196, 196, 196),
  415. new XColor("grey78", 199, 199, 199),
  416. new XColor("grey79", 201, 201, 201),
  417. new XColor("grey8", 20, 20, 20),
  418. new XColor("grey80", 204, 204, 204),
  419. new XColor("grey81", 207, 207, 207),
  420. new XColor("grey82", 209, 209, 209),
  421. new XColor("grey83", 212, 212, 212),
  422. new XColor("grey84", 214, 214, 214),
  423. new XColor("grey85", 217, 217, 217),
  424. new XColor("grey86", 219, 219, 219),
  425. new XColor("grey87", 222, 222, 222),
  426. new XColor("grey88", 224, 224, 224),
  427. new XColor("grey89", 227, 227, 227),
  428. new XColor("grey9", 23, 23, 23),
  429. new XColor("grey90", 229, 229, 229),
  430. new XColor("grey91", 232, 232, 232),
  431. new XColor("grey92", 235, 235, 235),
  432. new XColor("grey93", 237, 237, 237),
  433. new XColor("grey94", 240, 240, 240),
  434. new XColor("grey95", 242, 242, 242),
  435. new XColor("grey96", 245, 245, 245),
  436. new XColor("grey97", 247, 247, 247),
  437. new XColor("grey98", 250, 250, 250),
  438. new XColor("grey99", 252, 252, 252),
  439. new XColor("honeydew", 240, 255, 240),
  440. new XColor("honeydew1", 240, 255, 240),
  441. new XColor("honeydew2", 224, 238, 224),
  442. new XColor("honeydew3", 193, 205, 193),
  443. new XColor("honeydew4", 131, 139, 131),
  444. new XColor("hot pink", 255, 105, 180),
  445. new XColor("hotpink", 255, 105, 180),
  446. new XColor("hotpink1", 255, 110, 180),
  447. new XColor("hotpink2", 238, 106, 167),
  448. new XColor("hotpink3", 205, 96, 144),
  449. new XColor("hotpink4", 139, 58, 98),
  450. new XColor("indian red", 205, 92, 92),
  451. new XColor("indianred", 205, 92, 92),
  452. new XColor("indianred1", 255, 106, 106),
  453. new XColor("indianred2", 238, 99, 99),
  454. new XColor("indianred3", 205, 85, 85),
  455. new XColor("indianred4", 139, 58, 58),
  456. new XColor("ivory", 255, 255, 240),
  457. new XColor("ivory1", 255, 255, 240),
  458. new XColor("ivory2", 238, 238, 224),
  459. new XColor("ivory3", 205, 205, 193),
  460. new XColor("ivory4", 139, 139, 131),
  461. new XColor("khaki", 240, 230, 140),
  462. new XColor("khaki1", 255, 246, 143),
  463. new XColor("khaki2", 238, 230, 133),
  464. new XColor("khaki3", 205, 198, 115),
  465. new XColor("khaki4", 139, 134, 78),
  466. new XColor("lavender", 230, 230, 250),
  467. new XColor("lavender blush", 255, 240, 245),
  468. new XColor("lavenderblush", 255, 240, 245),
  469. new XColor("lavenderblush1", 255, 240, 245),
  470. new XColor("lavenderblush2", 238, 224, 229),
  471. new XColor("lavenderblush3", 205, 193, 197),
  472. new XColor("lavenderblush4", 139, 131, 134),
  473. new XColor("lawn green", 124, 252, 0),
  474. new XColor("lawngreen", 124, 252, 0),
  475. new XColor("lemon chiffon", 255, 250, 205),
  476. new XColor("lemonchiffon", 255, 250, 205),
  477. new XColor("lemonchiffon1", 255, 250, 205),
  478. new XColor("lemonchiffon2", 238, 233, 191),
  479. new XColor("lemonchiffon3", 205, 201, 165),
  480. new XColor("lemonchiffon4", 139, 137, 112),
  481. new XColor("light blue", 173, 216, 230),
  482. new XColor("light coral", 240, 128, 128),
  483. new XColor("light cyan", 224, 255, 255),
  484. new XColor("light goldenrod", 238, 221, 130),
  485. new XColor("light goldenrod yellow", 250, 250, 210),
  486. new XColor("light gray", 211, 211, 211),
  487. new XColor("light green", 144, 238, 144),
  488. new XColor("light grey", 211, 211, 211),
  489. new XColor("light pink", 255, 182, 193),
  490. new XColor("light salmon", 255, 160, 122),
  491. new XColor("light sea green", 32, 178, 170),
  492. new XColor("light sky blue", 135, 206, 250),
  493. new XColor("light slate blue", 132, 112, 255),
  494. new XColor("light slate gray", 119, 136, 153),
  495. new XColor("light slate grey", 119, 136, 153),
  496. new XColor("light steel blue", 176, 196, 222),
  497. new XColor("light yellow", 255, 255, 224),
  498. new XColor("lightblue", 173, 216, 230),
  499. new XColor("lightblue1", 191, 239, 255),
  500. new XColor("lightblue2", 178, 223, 238),
  501. new XColor("lightblue3", 154, 192, 205),
  502. new XColor("lightblue4", 104, 131, 139),
  503. new XColor("lightcoral", 240, 128, 128),
  504. new XColor("lightcyan", 224, 255, 255),
  505. new XColor("lightcyan1", 224, 255, 255),
  506. new XColor("lightcyan2", 209, 238, 238),
  507. new XColor("lightcyan3", 180, 205, 205),
  508. new XColor("lightcyan4", 122, 139, 139),
  509. new XColor("lightgoldenrod", 238, 221, 130),
  510. new XColor("lightgoldenrod1", 255, 236, 139),
  511. new XColor("lightgoldenrod2", 238, 220, 130),
  512. new XColor("lightgoldenrod3", 205, 190, 112),
  513. new XColor("lightgoldenrod4", 139, 129, 76),
  514. new XColor("lightgoldenrodyellow", 250, 250, 210),
  515. new XColor("lightgray", 211, 211, 211),
  516. new XColor("lightgreen", 144, 238, 144),
  517. new XColor("lightgrey", 211, 211, 211),
  518. new XColor("lightpink", 255, 182, 193),
  519. new XColor("lightpink1", 255, 174, 185),
  520. new XColor("lightpink2", 238, 162, 173),
  521. new XColor("lightpink3", 205, 140, 149),
  522. new XColor("lightpink4", 139, 95, 101),
  523. new XColor("lightsalmon", 255, 160, 122),
  524. new XColor("lightsalmon1", 255, 160, 122),
  525. new XColor("lightsalmon2", 238, 149, 114),
  526. new XColor("lightsalmon3", 205, 129, 98),
  527. new XColor("lightsalmon4", 139, 87, 66),
  528. new XColor("lightseagreen", 32, 178, 170),
  529. new XColor("lightskyblue", 135, 206, 250),
  530. new XColor("lightskyblue1", 176, 226, 255),
  531. new XColor("lightskyblue2", 164, 211, 238),
  532. new XColor("lightskyblue3", 141, 182, 205),
  533. new XColor("lightskyblue4", 96, 123, 139),
  534. new XColor("lightslateblue", 132, 112, 255),
  535. new XColor("lightslategray", 119, 136, 153),
  536. new XColor("lightslategrey", 119, 136, 153),
  537. new XColor("lightsteelblue", 176, 196, 222),
  538. new XColor("lightsteelblue1", 202, 225, 255),
  539. new XColor("lightsteelblue2", 188, 210, 238),
  540. new XColor("lightsteelblue3", 162, 181, 205),
  541. new XColor("lightsteelblue4", 110, 123, 139),
  542. new XColor("lightyellow", 255, 255, 224),
  543. new XColor("lightyellow1", 255, 255, 224),
  544. new XColor("lightyellow2", 238, 238, 209),
  545. new XColor("lightyellow3", 205, 205, 180),
  546. new XColor("lightyellow4", 139, 139, 122),
  547. new XColor("lime green", 50, 205, 50),
  548. new XColor("limegreen", 50, 205, 50),
  549. new XColor("linen", 250, 240, 230),
  550. new XColor("magenta", 255, 0, 255),
  551. new XColor("magenta1", 255, 0, 255),
  552. new XColor("magenta2", 238, 0, 238),
  553. new XColor("magenta3", 205, 0, 205),
  554. new XColor("magenta4", 139, 0, 139),
  555. new XColor("maroon", 176, 48, 96),
  556. new XColor("maroon1", 255, 52, 179),
  557. new XColor("maroon2", 238, 48, 167),
  558. new XColor("maroon3", 205, 41, 144),
  559. new XColor("maroon4", 139, 28, 98),
  560. new XColor("medium aquamarine", 102, 205, 170),
  561. new XColor("medium blue", 0, 0, 205),
  562. new XColor("medium orchid", 186, 85, 211),
  563. new XColor("medium purple", 147, 112, 219),
  564. new XColor("medium sea green", 60, 179, 113),
  565. new XColor("medium slate blue", 123, 104, 238),
  566. new XColor("medium spring green", 0, 250, 154),
  567. new XColor("medium turquoise", 72, 209, 204),
  568. new XColor("medium violet red", 199, 21, 133),
  569. new XColor("mediumaquamarine", 102, 205, 170),
  570. new XColor("mediumblue", 0, 0, 205),
  571. new XColor("mediumorchid", 186, 85, 211),
  572. new XColor("mediumorchid1", 224, 102, 255),
  573. new XColor("mediumorchid2", 209, 95, 238),
  574. new XColor("mediumorchid3", 180, 82, 205),
  575. new XColor("mediumorchid4", 122, 55, 139),
  576. new XColor("mediumpurple", 147, 112, 219),
  577. new XColor("mediumpurple1", 171, 130, 255),
  578. new XColor("mediumpurple2", 159, 121, 238),
  579. new XColor("mediumpurple3", 137, 104, 205),
  580. new XColor("mediumpurple4", 93, 71, 139),
  581. new XColor("mediumseagreen", 60, 179, 113),
  582. new XColor("mediumslateblue", 123, 104, 238),
  583. new XColor("mediumspringgreen", 0, 250, 154),
  584. new XColor("mediumturquoise", 72, 209, 204),
  585. new XColor("mediumvioletred", 199, 21, 133),
  586. new XColor("midnight blue", 25, 25, 112),
  587. new XColor("midnightblue", 25, 25, 112),
  588. new XColor("mint cream", 245, 255, 250),
  589. new XColor("mintcream", 245, 255, 250),
  590. new XColor("misty rose", 255, 228, 225),
  591. new XColor("mistyrose", 255, 228, 225),
  592. new XColor("mistyrose1", 255, 228, 225),
  593. new XColor("mistyrose2", 238, 213, 210),
  594. new XColor("mistyrose3", 205, 183, 181),
  595. new XColor("mistyrose4", 139, 125, 123),
  596. new XColor("moccasin", 255, 228, 181),
  597. new XColor("navajo white", 255, 222, 173),
  598. new XColor("navajowhite", 255, 222, 173),
  599. new XColor("navajowhite1", 255, 222, 173),
  600. new XColor("navajowhite2", 238, 207, 161),
  601. new XColor("navajowhite3", 205, 179, 139),
  602. new XColor("navajowhite4", 139, 121, 94),
  603. new XColor("navy", 0, 0, 128),
  604. new XColor("navy blue", 0, 0, 128),
  605. new XColor("navyblue", 0, 0, 128),
  606. new XColor("old lace", 253, 245, 230),
  607. new XColor("oldlace", 253, 245, 230),
  608. new XColor("olive drab", 107, 142, 35),
  609. new XColor("olivedrab", 107, 142, 35),
  610. new XColor("olivedrab1", 192, 255, 62),
  611. new XColor("olivedrab2", 179, 238, 58),
  612. new XColor("olivedrab3", 154, 205, 50),
  613. new XColor("olivedrab4", 105, 139, 34),
  614. new XColor("orange", 255, 165, 0),
  615. new XColor("orange red", 255, 69, 0),
  616. new XColor("orange1", 255, 165, 0),
  617. new XColor("orange2", 238, 154, 0),
  618. new XColor("orange3", 205, 133, 0),
  619. new XColor("orange4", 139, 90, 0),
  620. new XColor("orangered", 255, 69, 0),
  621. new XColor("orangered1", 255, 69, 0),
  622. new XColor("orangered2", 238, 64, 0),
  623. new XColor("orangered3", 205, 55, 0),
  624. new XColor("orangered4", 139, 37, 0),
  625. new XColor("orchid", 218, 112, 214),
  626. new XColor("orchid1", 255, 131, 250),
  627. new XColor("orchid2", 238, 122, 233),
  628. new XColor("orchid3", 205, 105, 201),
  629. new XColor("orchid4", 139, 71, 137),
  630. new XColor("pale goldenrod", 238, 232, 170),
  631. new XColor("pale green", 152, 251, 152),
  632. new XColor("pale turquoise", 175, 238, 238),
  633. new XColor("pale violet red", 219, 112, 147),
  634. new XColor("palegoldenrod", 238, 232, 170),
  635. new XColor("palegreen", 152, 251, 152),
  636. new XColor("palegreen1", 154, 255, 154),
  637. new XColor("palegreen2", 144, 238, 144),
  638. new XColor("palegreen3", 124, 205, 124),
  639. new XColor("palegreen4", 84, 139, 84),
  640. new XColor("paleturquoise", 175, 238, 238),
  641. new XColor("paleturquoise1", 187, 255, 255),
  642. new XColor("paleturquoise2", 174, 238, 238),
  643. new XColor("paleturquoise3", 150, 205, 205),
  644. new XColor("paleturquoise4", 102, 139, 139),
  645. new XColor("palevioletred", 219, 112, 147),
  646. new XColor("palevioletred1", 255, 130, 171),
  647. new XColor("palevioletred2", 238, 121, 159),
  648. new XColor("palevioletred3", 205, 104, 137),
  649. new XColor("palevioletred4", 139, 71, 93),
  650. new XColor("papaya whip", 255, 239, 213),
  651. new XColor("papayawhip", 255, 239, 213),
  652. new XColor("peach puff", 255, 218, 185),
  653. new XColor("peachpuff", 255, 218, 185),
  654. new XColor("peachpuff1", 255, 218, 185),
  655. new XColor("peachpuff2", 238, 203, 173),
  656. new XColor("peachpuff3", 205, 175, 149),
  657. new XColor("peachpuff4", 139, 119, 101),
  658. new XColor("peru", 205, 133, 63),
  659. new XColor("pink", 255, 192, 203),
  660. new XColor("pink1", 255, 181, 197),
  661. new XColor("pink2", 238, 169, 184),
  662. new XColor("pink3", 205, 145, 158),
  663. new XColor("pink4", 139, 99, 108),
  664. new XColor("plum", 221, 160, 221),
  665. new XColor("plum1", 255, 187, 255),
  666. new XColor("plum2", 238, 174, 238),
  667. new XColor("plum3", 205, 150, 205),
  668. new XColor("plum4", 139, 102, 139),
  669. new XColor("powder blue", 176, 224, 230),
  670. new XColor("powderblue", 176, 224, 230),
  671. new XColor("purple", 160, 32, 240),
  672. new XColor("purple1", 155, 48, 255),
  673. new XColor("purple2", 145, 44, 238),
  674. new XColor("purple3", 125, 38, 205),
  675. new XColor("purple4", 85, 26, 139),
  676. new XColor("red", 255, 0, 0),
  677. new XColor("red1", 255, 0, 0),
  678. new XColor("red2", 238, 0, 0),
  679. new XColor("red3", 205, 0, 0),
  680. new XColor("red4", 139, 0, 0),
  681. new XColor("rosy brown", 188, 143, 143),
  682. new XColor("rosybrown", 188, 143, 143),
  683. new XColor("rosybrown1", 255, 193, 193),
  684. new XColor("rosybrown2", 238, 180, 180),
  685. new XColor("rosybrown3", 205, 155, 155),
  686. new XColor("rosybrown4", 139, 105, 105),
  687. new XColor("royal blue", 65, 105, 225),
  688. new XColor("royalblue", 65, 105, 225),
  689. new XColor("royalblue1", 72, 118, 255),
  690. new XColor("royalblue2", 67, 110, 238),
  691. new XColor("royalblue3", 58, 95, 205),
  692. new XColor("royalblue4", 39, 64, 139),
  693. new XColor("saddle brown", 139, 69, 19),
  694. new XColor("saddlebrown", 139, 69, 19),
  695. new XColor("salmon", 250, 128, 114),
  696. new XColor("salmon1", 255, 140, 105),
  697. new XColor("salmon2", 238, 130, 98),
  698. new XColor("salmon3", 205, 112, 84),
  699. new XColor("salmon4", 139, 76, 57),
  700. new XColor("sandy brown", 244, 164, 96),
  701. new XColor("sandybrown", 244, 164, 96),
  702. new XColor("sea green", 46, 139, 87),
  703. new XColor("seagreen", 46, 139, 87),
  704. new XColor("seagreen1", 84, 255, 159),
  705. new XColor("seagreen2", 78, 238, 148),
  706. new XColor("seagreen3", 67, 205, 128),
  707. new XColor("seagreen4", 46, 139, 87),
  708. new XColor("seashell", 255, 245, 238),
  709. new XColor("seashell1", 255, 245, 238),
  710. new XColor("seashell2", 238, 229, 222),
  711. new XColor("seashell3", 205, 197, 191),
  712. new XColor("seashell4", 139, 134, 130),
  713. new XColor("sienna", 160, 82, 45),
  714. new XColor("sienna1", 255, 130, 71),
  715. new XColor("sienna2", 238, 121, 66),
  716. new XColor("sienna3", 205, 104, 57),
  717. new XColor("sienna4", 139, 71, 38),
  718. new XColor("sky blue", 135, 206, 235),
  719. new XColor("skyblue", 135, 206, 235),
  720. new XColor("skyblue1", 135, 206, 255),
  721. new XColor("skyblue2", 126, 192, 238),
  722. new XColor("skyblue3", 108, 166, 205),
  723. new XColor("skyblue4", 74, 112, 139),
  724. new XColor("slate blue", 106, 90, 205),
  725. new XColor("slate gray", 112, 128, 144),
  726. new XColor("slate grey", 112, 128, 144),
  727. new XColor("slateblue", 106, 90, 205),
  728. new XColor("slateblue1", 131, 111, 255),
  729. new XColor("slateblue2", 122, 103, 238),
  730. new XColor("slateblue3", 105, 89, 205),
  731. new XColor("slateblue4", 71, 60, 139),
  732. new XColor("slategray", 112, 128, 144),
  733. new XColor("slategray1", 198, 226, 255),
  734. new XColor("slategray2", 185, 211, 238),
  735. new XColor("slategray3", 159, 182, 205),
  736. new XColor("slategray4", 108, 123, 139),
  737. new XColor("slategrey", 112, 128, 144),
  738. new XColor("snow", 255, 250, 250),
  739. new XColor("snow1", 255, 250, 250),
  740. new XColor("snow2", 238, 233, 233),
  741. new XColor("snow3", 205, 201, 201),
  742. new XColor("snow4", 139, 137, 137),
  743. new XColor("spring green", 0, 255, 127),
  744. new XColor("springgreen", 0, 255, 127),
  745. new XColor("springgreen1", 0, 255, 127),
  746. new XColor("springgreen2", 0, 238, 118),
  747. new XColor("springgreen3", 0, 205, 102),
  748. new XColor("springgreen4", 0, 139, 69),
  749. new XColor("steel blue", 70, 130, 180),
  750. new XColor("steelblue", 70, 130, 180),
  751. new XColor("steelblue1", 99, 184, 255),
  752. new XColor("steelblue2", 92, 172, 238),
  753. new XColor("steelblue3", 79, 148, 205),
  754. new XColor("steelblue4", 54, 100, 139),
  755. new XColor("tan", 210, 180, 140),
  756. new XColor("tan1", 255, 165, 79),
  757. new XColor("tan2", 238, 154, 73),
  758. new XColor("tan3", 205, 133, 63),
  759. new XColor("tan4", 139, 90, 43),
  760. new XColor("thistle", 216, 191, 216),
  761. new XColor("thistle1", 255, 225, 255),
  762. new XColor("thistle2", 238, 210, 238),
  763. new XColor("thistle3", 205, 181, 205),
  764. new XColor("thistle4", 139, 123, 139),
  765. new XColor("tomato", 255, 99, 71),
  766. new XColor("tomato1", 255, 99, 71),
  767. new XColor("tomato2", 238, 92, 66),
  768. new XColor("tomato3", 205, 79, 57),
  769. new XColor("tomato4", 139, 54, 38),
  770. new XColor("turquoise", 64, 224, 208),
  771. new XColor("turquoise1", 0, 245, 255),
  772. new XColor("turquoise2", 0, 229, 238),
  773. new XColor("turquoise3", 0, 197, 205),
  774. new XColor("turquoise4", 0, 134, 139),
  775. new XColor("violet", 238, 130, 238),
  776. new XColor("violet red", 208, 32, 144),
  777. new XColor("violetred", 208, 32, 144),
  778. new XColor("violetred1", 255, 62, 150),
  779. new XColor("violetred2", 238, 58, 140),
  780. new XColor("violetred3", 205, 50, 120),
  781. new XColor("violetred4", 139, 34, 82),
  782. new XColor("wheat", 245, 222, 179),
  783. new XColor("wheat1", 255, 231, 186),
  784. new XColor("wheat2", 238, 216, 174),
  785. new XColor("wheat3", 205, 186, 150),
  786. new XColor("wheat4", 139, 126, 102),
  787. new XColor("white", 255, 255, 255),
  788. new XColor("white smoke", 245, 245, 245),
  789. new XColor("whitesmoke", 245, 245, 245),
  790. new XColor("yellow", 255, 255, 0),
  791. new XColor("yellow green", 154, 205, 50),
  792. new XColor("yellow1", 255, 255, 0),
  793. new XColor("yellow2", 238, 238, 0),
  794. new XColor("yellow3", 205, 205, 0),
  795. new XColor("yellow4", 139, 139, 0),
  796. new XColor("yellowgreen", 154, 205, 5)
  797. };
  798. }