/include/BaseLib/Graphics/Colors.h

http://github.com/ungerik/BaseLib · C Header · 339 lines · 155 code · 18 blank · 166 comment · 0 complexity · b2fb1aa0718b1651b3a206ce50178b30 MD5 · raw file

  1. /******************************************************************************
  2. Developed and Copyright (c) by
  3. Erik Unger
  4. Contact: erik@erikunger.com
  5. ******************************************************************************/
  6. #ifndef BaseLib_Graphics_Colors_h
  7. #define BaseLib_Graphics_Colors_h
  8. #include "BaseLib/Common.h"
  9. namespace BaseLib {
  10. namespace Graphics {
  11. /*
  12. struct Red {};
  13. struct Green {};
  14. struct Blue {};
  15. struct Black {};
  16. struct White {};
  17. */
  18. // http://www.w3.org/TR/SVG/types.html#ColorKeywords
  19. struct Aliceblue {};
  20. struct Antiquewhite {};
  21. struct Aqua {};
  22. struct Aquamarine {};
  23. struct Azure {};
  24. struct Beige {};
  25. struct Bisque {};
  26. struct Black {};
  27. struct Blanchedalmond {};
  28. struct Blue {};
  29. struct Blueviolet {};
  30. struct Brown {};
  31. struct Burlywood {};
  32. struct Cadetblue {};
  33. struct Chartreuse {};
  34. struct Chocolate {};
  35. struct Coral {};
  36. struct Cornflowerblue {};
  37. struct Cornsilk {};
  38. struct Crimson {};
  39. struct Cyan {};
  40. struct Darkblue {};
  41. struct Darkcyan {};
  42. struct Darkgoldenrod {};
  43. struct Darkgray {};
  44. struct Darkgreen {};
  45. struct Darkgrey {};
  46. struct Darkkhaki {};
  47. struct Darkmagenta {};
  48. struct Darkolivegreen {};
  49. struct Darkorange {};
  50. struct Darkorchid {};
  51. struct Darkred {};
  52. struct Darksalmon {};
  53. struct Darkseagreen {};
  54. struct Darkslateblue {};
  55. struct Darkslategray {};
  56. struct Darkslategrey {};
  57. struct Darkturquoise {};
  58. struct Darkviolet {};
  59. struct Deeppink {};
  60. struct Deepskyblue {};
  61. struct Dimgray {};
  62. struct Dimgrey {};
  63. struct Dodgerblue {};
  64. struct Firebrick {};
  65. struct Floralwhite {};
  66. struct Forestgreen {};
  67. struct Fuchsia {};
  68. struct Gainsboro {};
  69. struct Ghostwhite {};
  70. struct Gold {};
  71. struct Goldenrod {};
  72. struct Gray {};
  73. struct Grey {};
  74. struct Green {};
  75. struct Greenyellow {};
  76. struct Honeydew {};
  77. struct Hotpink {};
  78. struct Indianred {};
  79. struct Indigo {};
  80. struct Ivory {};
  81. struct Khaki {};
  82. struct Lavender {};
  83. struct Lavenderblush {};
  84. struct Lawngreen {};
  85. struct Lemonchiffon {};
  86. struct Lightblue {};
  87. struct Lightcoral {};
  88. struct Lightcyan {};
  89. struct Lightgoldenrodyellow {};
  90. struct Lightgray {};
  91. struct Lightgreen {};
  92. struct Lightgrey {};
  93. struct Lightpink {};
  94. struct Lightsalmon {};
  95. struct Lightseagreen {};
  96. struct Lightskyblue {};
  97. struct Lightslategray {};
  98. struct Lightslategrey {};
  99. struct Lightsteelblue {};
  100. struct Lightyellow {};
  101. struct Lime {};
  102. struct Limegreen {};
  103. struct Linen {};
  104. struct Magenta {};
  105. struct Maroon {};
  106. struct Mediumaquamarine {};
  107. struct Mediumblue {};
  108. struct Mediumorchid {};
  109. struct Mediumpurple {};
  110. struct Mediumseagreen {};
  111. struct Mediumslateblue {};
  112. struct Mediumspringgreen {};
  113. struct Mediumturquoise {};
  114. struct Mediumvioletred {};
  115. struct Midnightblue {};
  116. struct Mintcream {};
  117. struct Mistyrose {};
  118. struct Moccasin {};
  119. struct Navajowhite {};
  120. struct Navy {};
  121. struct Oldlace {};
  122. struct Olive {};
  123. struct Olivedrab {};
  124. struct Orange {};
  125. struct Orangered {};
  126. struct Orchid {};
  127. struct Palegoldenrod {};
  128. struct Palegreen {};
  129. struct Paleturquoise {};
  130. struct Palevioletred {};
  131. struct Papayawhip {};
  132. struct Peachpuff {};
  133. struct Peru {};
  134. struct Pink {};
  135. struct Plum {};
  136. struct Powderblue {};
  137. struct Purple {};
  138. struct Red {};
  139. struct Rosybrown {};
  140. struct Royalblue {};
  141. struct Saddlebrown {};
  142. struct Salmon {};
  143. struct Sandybrown {};
  144. struct Seagreen {};
  145. struct Seashell {};
  146. struct Sienna {};
  147. struct Silver {};
  148. struct Skyblue {};
  149. struct Slateblue {};
  150. struct Slategray {};
  151. struct Slategrey {};
  152. struct Snow {};
  153. struct Springgreen {};
  154. struct Steelblue {};
  155. struct Tan {};
  156. struct Teal {};
  157. struct Thistle {};
  158. struct Tomato {};
  159. struct Turquoise {};
  160. struct Violet {};
  161. struct Wheat {};
  162. struct White {};
  163. struct Whitesmoke {};
  164. struct Yellow {};
  165. struct Yellowgreen {};
  166. /*
  167. aliceblue rgb(240, 248, 255)
  168. antiquewhite rgb(250, 235, 215)
  169. aqua rgb( 0, 255, 255)
  170. aquamarine rgb(127, 255, 212)
  171. azure rgb(240, 255, 255)
  172. beige rgb(245, 245, 220)
  173. bisque rgb(255, 228, 196)
  174. black rgb( 0, 0, 0)
  175. blanchedalmond rgb(255, 235, 205)
  176. blue rgb( 0, 0, 255)
  177. blueviolet rgb(138, 43, 226)
  178. brown rgb(165, 42, 42)
  179. burlywood rgb(222, 184, 135)
  180. cadetblue rgb( 95, 158, 160)
  181. chartreuse rgb(127, 255, 0)
  182. chocolate rgb(210, 105, 30)
  183. coral rgb(255, 127, 80)
  184. cornflowerblue rgb(100, 149, 237)
  185. cornsilk rgb(255, 248, 220)
  186. crimson rgb(220, 20, 60)
  187. cyan rgb( 0, 255, 255)
  188. darkblue rgb( 0, 0, 139)
  189. darkcyan rgb( 0, 139, 139)
  190. darkgoldenrod rgb(184, 134, 11)
  191. darkgray rgb(169, 169, 169)
  192. darkgreen rgb( 0, 100, 0)
  193. darkgrey rgb(169, 169, 169)
  194. darkkhaki rgb(189, 183, 107)
  195. darkmagenta rgb(139, 0, 139)
  196. darkolivegreen rgb( 85, 107, 47)
  197. darkorange rgb(255, 140, 0)
  198. darkorchid rgb(153, 50, 204)
  199. darkred rgb(139, 0, 0)
  200. darksalmon rgb(233, 150, 122)
  201. darkseagreen rgb(143, 188, 143)
  202. darkslateblue rgb( 72, 61, 139)
  203. darkslategray rgb( 47, 79, 79)
  204. darkslategrey rgb( 47, 79, 79)
  205. darkturquoise rgb( 0, 206, 209)
  206. darkviolet rgb(148, 0, 211)
  207. deeppink rgb(255, 20, 147)
  208. deepskyblue rgb( 0, 191, 255)
  209. dimgray rgb(105, 105, 105)
  210. dimgrey rgb(105, 105, 105)
  211. dodgerblue rgb( 30, 144, 255)
  212. firebrick rgb(178, 34, 34)
  213. floralwhite rgb(255, 250, 240)
  214. forestgreen rgb( 34, 139, 34)
  215. fuchsia rgb(255, 0, 255)
  216. gainsboro rgb(220, 220, 220)
  217. ghostwhite rgb(248, 248, 255)
  218. gold rgb(255, 215, 0)
  219. goldenrod rgb(218, 165, 32)
  220. gray rgb(128, 128, 128)
  221. grey rgb(128, 128, 128)
  222. green rgb( 0, 128, 0)
  223. greenyellow rgb(173, 255, 47)
  224. honeydew rgb(240, 255, 240)
  225. hotpink rgb(255, 105, 180)
  226. indianred rgb(205, 92, 92)
  227. indigo rgb( 75, 0, 130)
  228. ivory rgb(255, 255, 240)
  229. khaki rgb(240, 230, 140)
  230. lavender rgb(230, 230, 250)
  231. lavenderblush rgb(255, 240, 245)
  232. lawngreen rgb(124, 252, 0)
  233. lemonchiffon rgb(255, 250, 205)
  234. lightblue rgb(173, 216, 230)
  235. lightcoral rgb(240, 128, 128)
  236. lightcyan rgb(224, 255, 255)
  237. lightgoldenrodyellow rgb(250, 250, 210)
  238. lightgray rgb(211, 211, 211)
  239. lightgreen rgb(144, 238, 144)
  240. lightgrey rgb(211, 211, 211)
  241. lightpink rgb(255, 182, 193)
  242. lightsalmon rgb(255, 160, 122)
  243. lightseagreen rgb( 32, 178, 170)
  244. lightskyblue rgb(135, 206, 250)
  245. lightslategray rgb(119, 136, 153)
  246. lightslategrey rgb(119, 136, 153)
  247. lightsteelblue rgb(176, 196, 222)
  248. lightyellow rgb(255, 255, 224)
  249. lime rgb( 0, 255, 0)
  250. limegreen rgb( 50, 205, 50)
  251. linen rgb(250, 240, 230)
  252. magenta rgb(255, 0, 255)
  253. maroon rgb(128, 0, 0)
  254. mediumaquamarine rgb(102, 205, 170)
  255. mediumblue rgb( 0, 0, 205)
  256. mediumorchid rgb(186, 85, 211)
  257. mediumpurple rgb(147, 112, 219)
  258. mediumseagreen rgb( 60, 179, 113)
  259. mediumslateblue rgb(123, 104, 238)
  260. mediumspringgreen rgb( 0, 250, 154)
  261. mediumturquoise rgb( 72, 209, 204)
  262. mediumvioletred rgb(199, 21, 133)
  263. midnightblue rgb( 25, 25, 112)
  264. mintcream rgb(245, 255, 250)
  265. mistyrose rgb(255, 228, 225)
  266. moccasin rgb(255, 228, 181)
  267. navajowhite rgb(255, 222, 173)
  268. navy rgb( 0, 0, 128)
  269. oldlace rgb(253, 245, 230)
  270. olive rgb(128, 128, 0)
  271. olivedrab rgb(107, 142, 35)
  272. orange rgb(255, 165, 0)
  273. orangered rgb(255, 69, 0)
  274. orchid rgb(218, 112, 214)
  275. palegoldenrod rgb(238, 232, 170)
  276. palegreen rgb(152, 251, 152)
  277. paleturquoise rgb(175, 238, 238)
  278. palevioletred rgb(219, 112, 147)
  279. papayawhip rgb(255, 239, 213)
  280. peachpuff rgb(255, 218, 185)
  281. peru rgb(205, 133, 63)
  282. pink rgb(255, 192, 203)
  283. plum rgb(221, 160, 221)
  284. powderblue rgb(176, 224, 230)
  285. purple rgb(128, 0, 128)
  286. red rgb(255, 0, 0)
  287. rosybrown rgb(188, 143, 143)
  288. royalblue rgb( 65, 105, 225)
  289. saddlebrown rgb(139, 69, 19)
  290. salmon rgb(250, 128, 114)
  291. sandybrown rgb(244, 164, 96)
  292. seagreen rgb( 46, 139, 87)
  293. seashell rgb(255, 245, 238)
  294. sienna rgb(160, 82, 45)
  295. silver rgb(192, 192, 192)
  296. skyblue rgb(135, 206, 235)
  297. slateblue rgb(106, 90, 205)
  298. slategray rgb(112, 128, 144)
  299. slategrey rgb(112, 128, 144)
  300. snow rgb(255, 250, 250)
  301. springgreen rgb( 0, 255, 127)
  302. steelblue rgb( 70, 130, 180)
  303. tan rgb(210, 180, 140)
  304. teal rgb( 0, 128, 128)
  305. thistle rgb(216, 191, 216)
  306. tomato rgb(255, 99, 71)
  307. turquoise rgb( 64, 224, 208)
  308. violet rgb(238, 130, 238)
  309. wheat rgb(245, 222, 179)
  310. white rgb(255, 255, 255)
  311. whitesmoke rgb(245, 245, 245)
  312. yellow rgb(255, 255, 0)
  313. yellowgreen rgb(154, 205, 50)
  314. */
  315. } // namespace Graphics
  316. } // namespace BaseLib
  317. #endif // #ifndef BaseLib_Graphics_Colors_h