版权声明:

[cpp] view plaincopy print?
  1. // experiment_ColorRef.cpp : Defines the entry point for the console application.
  2. //
  3. #include "stdafx.h"
  4. #include <crtdbg.h>
  5. #include "LsColorRefDefine.h"
  6. /**
  7. * 如果要使用名字空间nsls
  8. * 在编译器Options设置 USE_NAMESPACE_ON_LOSTSPEED
  9. */
  10. int fnTestUse();
  11. int main(int argc, char * argv[])
  12. {
  13. fnTestUse();
  14. getchar();
  15. return 0;
  16. }
  17. int fnTestUse()
  18. {
  19. printf("COLORREF基础值定义/n");
  20. //RGB(255, 228, 196), // bisque rgb(255, 228, 196)
  21. COLORREF clrBisque = LSREF g_LsAllColorRef[6];//bisque rgb's pos is 6 at g_LsAllColorRef
  22. printf("COLORREF基础值取值和校验/n");
  23. if(clrBisque != RGB(255, 228, 196))
  24. {
  25. printf("some error happen/n");
  26. _ASSERT(0);
  27. }
  28. printf("/nCOLORREF基础值数组尺寸列表/n");
  29. size_t stLsAllColorRef = sizeof(LSREF g_LsAllColorRef) / sizeof(COLORREF);
  30. size_t stLsBuleColorRef = sizeof(LSREF g_LsBuleColorRef) / sizeof(COLORREF);
  31. size_t stLsBrownColorRef = sizeof(LSREF g_LsBrownColorRef) / sizeof(COLORREF);
  32. size_t stLsCyanColorRef = sizeof(LSREF g_LsCyanColorRef) / sizeof(COLORREF);
  33. size_t stLsGreenColorRef = sizeof(LSREF g_LsGreenColorRef) / sizeof(COLORREF);
  34. size_t stLsGrayColorRef = sizeof(LSREF g_LsGrayColorRef) / sizeof(COLORREF);
  35. size_t stLsDarkColorRef = sizeof(LSREF g_LsDarkRedColorRef) / sizeof(COLORREF);
  36. size_t stLsOrangeColorRef = sizeof(LSREF g_LsOrangeColorRef) / sizeof(COLORREF);
  37. size_t stLsRedColorRef = sizeof(LSREF g_LsRedColorRef) / sizeof(COLORREF);
  38. size_t stLsWhiteColorRef = sizeof(LSREF g_LsWhiteColorRef) / sizeof(COLORREF);
  39. size_t stLsYellowColorRef = sizeof(LSREF g_LsYellowColorRef) / sizeof(COLORREF);
  40. size_t stLsMetalColorRef = sizeof(LSREF g_LsMetalColorRef) / sizeof(COLORREF);
  41. printf("%s[%d]/n/
  42. %s[%d]/n/
  43. %s[%d]/n/
  44. %s[%d]/n/
  45. %s[%d]/n/
  46. %s[%d]/n/
  47. %s[%d]/n/
  48. %s[%d]/n/
  49. %s[%d]/n/
  50. %s[%d]/n/
  51. %s[%d]/n/
  52. %s[%d]/n",
  53. "g_LsAllColorRef",     stLsAllColorRef,
  54. "g_LsBuleColorRef",    stLsBuleColorRef,
  55. "g_LsBrownColorRef",   stLsBrownColorRef,
  56. "g_LsCyanColorRef",    stLsCyanColorRef,
  57. "g_LsGreenColorRef",   stLsGreenColorRef,
  58. "g_LsGrayColorRef",    stLsGrayColorRef,
  59. "g_LsDarkRedColorRef", stLsDarkColorRef,
  60. "g_LsOrangeColorRef",  stLsOrangeColorRef,
  61. "g_LsRedColorRef",     stLsRedColorRef,
  62. "g_LsWhiteColorRef",   stLsWhiteColorRef,
  63. "g_LsYellowColorRef",  stLsYellowColorRef,
  64. "g_LsMetalColorRef",   stLsMetalColorRef);
  65. /** run results
  66. COLORREF基础值定义
  67. COLORREF基础值取值和校验
  68. COLORREF基础值数组尺寸列表
  69. g_LsAllColorRef[147]
  70. g_LsBuleColorRef[14]
  71. g_LsBrownColorRef[13]
  72. g_LsCyanColorRef[4]
  73. g_LsGreenColorRef[14]
  74. g_LsGrayColorRef[4]
  75. g_LsDarkRedColorRef[7]
  76. g_LsOrangeColorRef[4]
  77. g_LsRedColorRef[12]
  78. g_LsWhiteColorRef[18]
  79. g_LsYellowColorRef[8]
  80. g_LsMetalColorRef[8]
  81. */
  82. return S_OK;
  83. }

// experiment_ColorRef.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <crtdbg.h> #include "LsColorRefDefine.h" /** * 如果要使用名字空间nsls * 在编译器Options设置 USE_NAMESPACE_ON_LOSTSPEED */int fnTestUse(); int main(int argc, char * argv[]) {fnTestUse();getchar();return 0; } int fnTestUse() {printf("COLORREF基础值定义/n");//RGB(255, 228, 196), // bisque rgb(255, 228, 196)COLORREF clrBisque = LSREF g_LsAllColorRef[6];//bisque rgb's pos is 6 at g_LsAllColorRefprintf("COLORREF基础值取值和校验/n");if(clrBisque != RGB(255, 228, 196)){printf("some error happen/n");_ASSERT(0);}printf("/nCOLORREF基础值数组尺寸列表/n");size_t stLsAllColorRef = sizeof(LSREF g_LsAllColorRef) / sizeof(COLORREF);size_t stLsBuleColorRef = sizeof(LSREF g_LsBuleColorRef) / sizeof(COLORREF);size_t stLsBrownColorRef = sizeof(LSREF g_LsBrownColorRef) / sizeof(COLORREF);size_t stLsCyanColorRef = sizeof(LSREF g_LsCyanColorRef) / sizeof(COLORREF);size_t stLsGreenColorRef = sizeof(LSREF g_LsGreenColorRef) / sizeof(COLORREF);size_t stLsGrayColorRef = sizeof(LSREF g_LsGrayColorRef) / sizeof(COLORREF);size_t stLsDarkColorRef = sizeof(LSREF g_LsDarkRedColorRef) / sizeof(COLORREF);size_t stLsOrangeColorRef = sizeof(LSREF g_LsOrangeColorRef) / sizeof(COLORREF);size_t stLsRedColorRef = sizeof(LSREF g_LsRedColorRef) / sizeof(COLORREF);size_t stLsWhiteColorRef = sizeof(LSREF g_LsWhiteColorRef) / sizeof(COLORREF);size_t stLsYellowColorRef = sizeof(LSREF g_LsYellowColorRef) / sizeof(COLORREF);size_t stLsMetalColorRef = sizeof(LSREF g_LsMetalColorRef) / sizeof(COLORREF);printf("%s[%d]/n/ %s[%d]/n/ %s[%d]/n/ %s[%d]/n/ %s[%d]/n/ %s[%d]/n/ %s[%d]/n/ %s[%d]/n/ %s[%d]/n/ %s[%d]/n/ %s[%d]/n/ %s[%d]/n","g_LsAllColorRef", stLsAllColorRef,"g_LsBuleColorRef", stLsBuleColorRef,"g_LsBrownColorRef", stLsBrownColorRef,"g_LsCyanColorRef", stLsCyanColorRef,"g_LsGreenColorRef", stLsGreenColorRef,"g_LsGrayColorRef", stLsGrayColorRef,"g_LsDarkRedColorRef", stLsDarkColorRef,"g_LsOrangeColorRef", stLsOrangeColorRef,"g_LsRedColorRef", stLsRedColorRef,"g_LsWhiteColorRef", stLsWhiteColorRef,"g_LsYellowColorRef", stLsYellowColorRef,"g_LsMetalColorRef", stLsMetalColorRef);/** run resultsCOLORREF基础值定义COLORREF基础值取值和校验COLORREF基础值数组尺寸列表g_LsAllColorRef[147]g_LsBuleColorRef[14]g_LsBrownColorRef[13]g_LsCyanColorRef[4]g_LsGreenColorRef[14]g_LsGrayColorRef[4]g_LsDarkRedColorRef[7]g_LsOrangeColorRef[4]g_LsRedColorRef[12]g_LsWhiteColorRef[18]g_LsYellowColorRef[8]g_LsMetalColorRef[8]*/return S_OK; }

[cpp] view plaincopy print?
  1. /**
  2. * @file LsColorRefDefine.h
  3. * @note
  4. * original data from: http://hi.baidu.com/ganxuequan/blog/item/e8412d30374fed93a9018e94.html
  5. */
  6. #ifndef _LS_COLOR_REF_DEFINE_H_
  7. #define _LS_COLOR_REF_DEFINE_H_
  8. #include <WTypes.h>
  9. #ifdef USE_NAMESPACE_ON_LOSTSPEED
  10. #define NS_LOSTSPEED LostSpeed
  11. #define LSREF NS_LOSTSPEED::
  12. #define USING_NSLS using NS_LOSTSPEED;
  13. #else
  14. #define NS_LOSTSPEED
  15. #define LSREF
  16. #define USING_NSLS
  17. #endif
  18. #ifdef USE_NAMESPACE_ON_LOSTSPEED
  19. namespace NS_LOSTSPEED
  20. {
  21. #endif
  22. /**
  23. * 定义的颜色系列如下
  24. * COLORREF const g_LsAllColorRef[];
  25. * COLORREF const g_LsBuleColorRef[];
  26. * COLORREF const g_LsBrownColorRef[];
  27. * COLORREF const g_LsCyanColorRef[];
  28. * COLORREF const g_LsGreenColorRef[];
  29. * COLORREF const g_LsGrayColorRef[];
  30. * COLORREF const g_LsDarkRedColorRef[];
  31. * COLORREF const g_LsOrangeColorRef[];
  32. * COLORREF const g_LsRedColorRef[];
  33. * COLORREF const g_LsWhiteColorRef[];
  34. * COLORREF const g_LsYellowColorRef[];
  35. * COLORREF const g_LsMetalColorRef[];
  36. */
  37. /**
  38. aliceblue rgb(240, 248, 255)
  39. antiquewhite rgb(250, 235, 215)
  40. aqua rgb( 0, 255, 255)
  41. aquamarine rgb(127, 255, 212)
  42. azure rgb(240, 255, 255)
  43. beige rgb(245, 245, 220)
  44. bisque rgb(255, 228, 196)
  45. black rgb( 0, 0, 0)
  46. blanchedalmond rgb(255, 235, 205)
  47. blue rgb( 0, 0, 255)
  48. blueviolet rgb(138, 43, 226)
  49. brown rgb(165, 42, 42)
  50. burlywood rgb(222, 184, 135)
  51. cadetblue rgb( 95, 158, 160)
  52. chartreuse rgb(127, 255, 0)
  53. chocolate rgb(210, 105, 30)
  54. coral rgb(255, 127, 80)
  55. cornflowerblue rgb(100, 149, 237)
  56. cornsilk rgb(255, 248, 220)
  57. crimson rgb(220, 20, 60)
  58. cyan rgb( 0, 255, 255)
  59. darkblue rgb( 0, 0, 139)
  60. darkcyan rgb( 0, 139, 139)
  61. darkgoldenrod rgb(184, 134, 11)
  62. darkgray rgb(169, 169, 169)
  63. darkgreen rgb( 0, 100, 0)
  64. darkgrey rgb(169, 169, 169)
  65. darkkhaki rgb(189, 183, 107)
  66. darkmagenta rgb(139, 0, 139)
  67. darkolivegreen rgb( 85, 107, 47)
  68. darkorange rgb(255, 140, 0)
  69. darkorchid rgb(153, 50, 204)
  70. darkred rgb(139, 0, 0)
  71. darksalmon rgb(233, 150, 122)
  72. darkseagreen rgb(143, 188, 143)
  73. darkslateblue rgb( 72, 61, 139)
  74. darkslategray rgb( 47, 79, 79)
  75. darkslategrey rgb( 47, 79, 79)
  76. darkturquoise rgb( 0, 206, 209)
  77. darkviolet rgb(148, 0, 211)
  78. deeppink rgb(255, 20, 147)
  79. deepskyblue rgb( 0, 191, 255)
  80. dimgray rgb(105, 105, 105)
  81. dimgrey rgb(105, 105, 105)
  82. dodgerblue rgb( 30, 144, 255)
  83. firebrick rgb(178, 34, 34)
  84. floralwhite rgb(255, 250, 240)
  85. forestgreen rgb( 34, 139, 34)
  86. fuchsia rgb(255, 0, 255)
  87. gainsboro rgb(220, 220, 220)
  88. ghostwhite rgb(248, 248, 255)
  89. gold rgb(255, 215, 0)
  90. goldenrod rgb(218, 165, 32)
  91. gray rgb(128, 128, 128)
  92. grey rgb(128, 128, 128)
  93. green rgb( 0, 128, 0)
  94. greenyellow rgb(173, 255, 47)
  95. honeydew rgb(240, 255, 240)
  96. hotpink rgb(255, 105, 180)
  97. indianred rgb(205, 92, 92)
  98. indigo rgb( 75, 0, 130)
  99. ivory rgb(255, 255, 240)
  100. khaki rgb(240, 230, 140)
  101. lavender rgb(230, 230, 250)
  102. lavenderblush rgb(255, 240, 245)
  103. lawngreen rgb(124, 252, 0)
  104. lemonchiffon rgb(255, 250, 205)
  105. lightblue rgb(173, 216, 230)
  106. lightcoral rgb(240, 128, 128)
  107. lightcyan rgb(224, 255, 255)
  108. lightgoldenrodyellow rgb(250, 250, 210)
  109. lightgray rgb(211, 211, 211)
  110. lightgreen rgb(144, 238, 144)
  111. lightgrey rgb(211, 211, 211)
  112. lightpink rgb(255, 182, 193)
  113. lightsalmon rgb(255, 160, 122)
  114. lightseagreen rgb( 32, 178, 170)
  115. lightskyblue rgb(135, 206, 250)
  116. lightslategray rgb(119, 136, 153)
  117. lightslategrey rgb(119, 136, 153)
  118. lightsteelblue rgb(176, 196, 222)
  119. lightyellow rgb(255, 255, 224)
  120. lime rgb( 0, 255, 0)
  121. limegreen rgb( 50, 205, 50)
  122. linen rgb(250, 240, 230)
  123. magenta rgb(255, 0, 255)
  124. maroon rgb(128, 0, 0)
  125. mediumaquamarine rgb(102, 205, 170)
  126. mediumblue rgb( 0, 0, 205)
  127. mediumorchid rgb(186, 85, 211)
  128. mediumpurple rgb(147, 112, 219)
  129. mediumseagreen rgb( 60, 179, 113)
  130. mediumslateblue rgb(123, 104, 238)
  131. mediumspringgreen rgb( 0, 250, 154)
  132. mediumturquoise rgb( 72, 209, 204)
  133. mediumvioletred rgb(199, 21, 133)
  134. midnightblue rgb( 25, 25, 112)
  135. mintcream rgb(245, 255, 250)
  136. mistyrose rgb(255, 228, 225)
  137. moccasin rgb(255, 228, 181)
  138. navajowhite rgb(255, 222, 173)
  139. navy rgb( 0, 0, 128)
  140. oldlace rgb(253, 245, 230)
  141. olive rgb(128, 128, 0)
  142. olivedrab rgb(107, 142, 35)
  143. orange rgb(255, 165, 0)
  144. orangered rgb(255, 69, 0)
  145. orchid rgb(218, 112, 214)
  146. palegoldenrod rgb(238, 232, 170)
  147. palegreen rgb(152, 251, 152)
  148. paleturquoise rgb(175, 238, 238)
  149. palevioletred rgb(219, 112, 147)
  150. papayawhip rgb(255, 239, 213)
  151. peachpuff rgb(255, 218, 185)
  152. peru rgb(205, 133, 63)
  153. pink rgb(255, 192, 203)
  154. plum rgb(221, 160, 221)
  155. powderblue rgb(176, 224, 230)
  156. purple rgb(128, 0, 128)
  157. red rgb(255, 0, 0)
  158. rosybrown rgb(188, 143, 143)
  159. royalblue rgb( 65, 105, 225)
  160. saddlebrown rgb(139, 69, 19)
  161. salmon rgb(250, 128, 114)
  162. sandybrown rgb(244, 164, 96)
  163. seagreen rgb( 46, 139, 87)
  164. seashell rgb(255, 245, 238)
  165. sienna rgb(160, 82, 45)
  166. silver rgb(192, 192, 192)
  167. skyblue rgb(135, 206, 235)
  168. slateblue rgb(106, 90, 205)
  169. slategray rgb(112, 128, 144)
  170. slategrey rgb(112, 128, 144)
  171. snow rgb(255, 250, 250)
  172. springgreen rgb( 0, 255, 127)
  173. steelblue rgb( 70, 130, 180)
  174. tan rgb(210, 180, 140)
  175. teal rgb( 0, 128, 128)
  176. thistle rgb(216, 191, 216)
  177. tomato rgb(255, 99, 71)
  178. turquoise rgb( 64, 224, 208)
  179. violet rgb(238, 130, 238)
  180. wheat rgb(245, 222, 179)
  181. white rgb(255, 255, 255)
  182. whitesmoke rgb(245, 245, 245)
  183. yellow rgb(255, 255, 0)
  184. yellowgreen rgb(154, 205, 50)
  185. */
  186. COLORREF const g_LsAllColorRef[] =
  187. {
  188. RGB(240, 248, 255), // aliceblue rgb(240, 248, 255)
  189. RGB(250, 235, 215), // antiquewhite rgb(250, 235, 215)
  190. RGB(0, 255, 255), // aqua rgb( 0, 255, 255)
  191. RGB(127, 255, 212), // aquamarine rgb(127, 255, 212)
  192. RGB(240, 255, 255), // azure rgb(240, 255, 255)
  193. RGB(245, 245, 220), // beige rgb(245, 245, 220)
  194. RGB(255, 228, 196), // bisque rgb(255, 228, 196)
  195. RGB(0, 0, 0), // black rgb( 0, 0, 0)
  196. RGB(255, 235, 205), // blanchedalmond rgb(255, 235, 205)
  197. RGB(0, 0, 255), // blue rgb( 0, 0, 255)
  198. RGB(138, 43, 226), // blueviolet rgb(138, 43, 226)
  199. RGB(165, 42, 42), // brown rgb(165, 42, 42)
  200. RGB(222, 184, 135), // burlywood rgb(222, 184, 135)
  201. RGB(95, 158, 160), // cadetblue rgb( 95, 158, 160)
  202. RGB(27, 255, 0), // chartreuse rgb(127, 255, 0)
  203. RGB(210, 105, 30), // chocolate rgb(210, 105, 30)
  204. RGB(255, 127, 80), // coral rgb(255, 127, 80)
  205. RGB(100, 149, 237), // cornflowerblue rgb(100, 149, 237)
  206. RGB(255, 248, 220), // cornsilk rgb(255, 248, 220)
  207. RGB(220, 20, 60), // crimson rgb(220, 20, 60)
  208. RGB(0, 255, 255), // cyan rgb( 0, 255, 255)
  209. RGB(0, 0, 139), // darkblue rgb( 0, 0, 139)
  210. RGB(0, 139, 139), // darkcyan rgb( 0, 139, 139)
  211. RGB(184, 134, 11), // darkgoldenrod rgb(184, 134, 11)
  212. RGB(169, 169, 169), // darkgray rgb(169, 169, 169)
  213. RGB(0, 100, 0), // darkgreen rgb( 0, 100, 0)
  214. RGB(169, 169, 169), // darkgrey rgb(169, 169, 169)
  215. RGB(189, 183, 107), // darkkhaki rgb(189, 183, 107)
  216. RGB(139, 0, 139), // darkmagenta rgb(139, 0, 139)
  217. RGB(85, 107, 47), // darkolivegreen rgb( 85, 107, 47)
  218. RGB(255, 140, 0), // darkorange rgb(255, 140, 0)
  219. RGB(153, 50, 204), // darkorchid rgb(153, 50, 204)
  220. RGB(139, 0, 0), // darkred rgb(139, 0, 0)
  221. RGB(233, 150, 122), // darksalmon rgb(233, 150, 122)
  222. RGB(143, 188, 143), // darkseagreen rgb(143, 188, 143)
  223. RGB(72, 61, 139), // darkslateblue rgb( 72, 61, 139)
  224. RGB(47, 79, 79), // darkslategray rgb( 47, 79, 79)
  225. RGB(47, 79, 79), // darkslategrey rgb( 47, 79, 79)
  226. RGB(0, 206, 209), // darkturquoise rgb( 0, 206, 209)
  227. RGB(148, 0, 211), // darkviolet rgb(148, 0, 211)
  228. RGB(255, 20, 147), // deeppink rgb(255, 20, 147)
  229. RGB(0, 191, 255), // deepskyblue rgb( 0, 191, 255)
  230. RGB(105, 105, 105), // dimgray rgb(105, 105, 105)
  231. RGB(105, 105, 105), // dimgrey rgb(105, 105, 105)
  232. RGB(30, 144, 255), // dodgerblue rgb( 30, 144, 255)
  233. RGB(178, 34, 34), // firebrick rgb(178, 34, 34)
  234. RGB(255, 250, 240), // floralwhite rgb(255, 250, 240)
  235. RGB(34, 139, 34), // forestgreen rgb( 34, 139, 34)
  236. RGB(255, 0, 255), // fuchsia rgb(255, 0, 255)
  237. RGB(220, 220, 220), // gainsboro rgb(220, 220, 220)
  238. RGB(248, 248, 255), // ghostwhite rgb(248, 248, 255)
  239. RGB(255, 215, 0), // gold rgb(255, 215, 0)
  240. RGB(218, 165, 32), // goldenrod rgb(218, 165, 32)
  241. RGB(128, 128, 128), // gray rgb(128, 128, 128)
  242. RGB(128, 128, 128), // grey rgb(128, 128, 128)
  243. RGB(0, 128, 0), // green rgb( 0, 128, 0)
  244. RGB(173, 255, 47), // greenyellow rgb(173, 255, 47)
  245. RGB(240, 255, 240), // honeydew rgb(240, 255, 240)
  246. RGB(255, 105, 180), // hotpink rgb(255, 105, 180)
  247. RGB(205, 92, 92), // indianred rgb(205, 92, 92)
  248. RGB(75, 0, 130), // indigo rgb( 75, 0, 130)
  249. RGB(255, 255, 240), // ivory rgb(255, 255, 240)
  250. RGB(240, 230, 140), // khaki rgb(240, 230, 140)
  251. RGB(230, 230, 250), // lavender rgb(230, 230, 250)
  252. RGB(255, 240, 245), // lavenderblush rgb(255, 240, 245)
  253. RGB(124, 252, 0), // lawngreen rgb(124, 252, 0)
  254. RGB(255, 250, 205), // lemonchiffon rgb(255, 250, 205)
  255. RGB(173, 216, 230), // lightblue rgb(173, 216, 230)
  256. RGB(240, 128, 128), // lightcoral rgb(240, 128, 128)
  257. RGB(224, 255, 255), // lightcyan rgb(224, 255, 255)
  258. RGB(250, 250, 210), // lightgoldenrodyellow rgb(250, 250, 210)
  259. RGB(211, 211, 211), // lightgray rgb(211, 211, 211)
  260. RGB(144, 238, 144), // lightgreen rgb(144, 238, 144)
  261. RGB(211, 211, 211), // lightgrey rgb(211, 211, 211)
  262. RGB(255, 182, 193), // lightpink rgb(255, 182, 193)
  263. RGB(255, 160, 122), // lightsalmon rgb(255, 160, 122)
  264. RGB(32, 178, 170), // lightseagreen rgb( 32, 178, 170)
  265. RGB(135, 206, 250), // lightskyblue rgb(135, 206, 250)
  266. RGB(119, 136, 153), // lightslategray rgb(119, 136, 153)
  267. RGB(119, 136, 153), // lightslategrey rgb(119, 136, 153)
  268. RGB(176, 196, 222), // lightsteelblue rgb(176, 196, 222)
  269. RGB(255, 255, 224), // lightyellow rgb(255, 255, 224)
  270. RGB(0, 255, 0), // lime rgb( 0, 255, 0)
  271. RGB(50, 205, 50), // limegreen rgb( 50, 205, 50)
  272. RGB(250, 240, 230), // linen rgb(250, 240, 230)
  273. RGB(255, 0, 255), // magenta rgb(255, 0, 255)
  274. RGB(128, 0, 0), // maroon rgb(128, 0, 0)
  275. RGB(102, 205, 170), // mediumaquamarine rgb(102, 205, 170)
  276. RGB(0, 0, 205),  // mediumblue rgb( 0, 0, 205)
  277. RGB(186, 85, 211), // mediumorchid rgb(186, 85, 211)
  278. RGB(147, 112, 219), // mediumpurple rgb(147, 112, 219)
  279. RGB(60, 179, 113), // mediumseagreen rgb( 60, 179, 113)
  280. RGB(123, 104, 238), // mediumslateblue rgb(123, 104, 238)
  281. RGB(0, 250, 154), // mediumspringgreen rgb( 0, 250, 154)
  282. RGB(72, 209, 204), // mediumturquoise rgb( 72, 209, 204)
  283. RGB(199, 21, 133), // mediumvioletred rgb(199, 21, 133)
  284. RGB(25, 25, 112), // midnightblue rgb( 25, 25, 112)
  285. RGB(245, 255, 250), // mintcream rgb(245, 255, 250)
  286. RGB(255, 228, 225), // mistyrose rgb(255, 228, 225)
  287. RGB(255, 228, 181), // moccasin rgb(255, 228, 181)
  288. RGB(255, 222, 173), // navajowhite rgb(255, 222, 173)
  289. RGB(0, 0, 128), // navy rgb( 0, 0, 128)
  290. RGB(253, 245, 230), // oldlace rgb(253, 245, 230)
  291. RGB(128, 128, 0), // olive rgb(128, 128, 0)
  292. RGB(107, 142, 35), // olivedrab rgb(107, 142, 35)
  293. RGB(255, 165, 0), // orange rgb(255, 165, 0)
  294. RGB(255, 69, 0), // orangered rgb(255, 69, 0)
  295. RGB(218, 112, 214), // orchid rgb(218, 112, 214)
  296. RGB(238, 232, 170), // palegoldenrod rgb(238, 232, 170)
  297. RGB(152, 251, 152), // palegreen rgb(152, 251, 152)
  298. RGB(175, 238, 238), // paleturquoise rgb(175, 238, 238)
  299. RGB(219, 112, 147), // palevioletred rgb(219, 112, 147)
  300. RGB(255, 239, 213), // papayawhip rgb(255, 239, 213)
  301. RGB(255, 218, 185), // peachpuff rgb(255, 218, 185)
  302. RGB(205, 133, 63), // peru rgb(205, 133, 63)
  303. RGB(255, 192, 203), // pink rgb(255, 192, 203)
  304. RGB(221, 160, 221), // plum rgb(221, 160, 221)
  305. RGB(176, 224, 230), // powderblue rgb(176, 224, 230)
  306. RGB(128, 0, 128), // purple rgb(128, 0, 128)
  307. RGB(255, 0, 0), // red rgb(255, 0, 0)
  308. RGB(188, 143, 143), // rosybrown rgb(188, 143, 143)
  309. RGB(65, 105, 225), // royalblue rgb( 65, 105, 225)
  310. RGB(139, 69, 19), // saddlebrown rgb(139, 69, 19)
  311. RGB(250, 128, 114), // salmon rgb(250, 128, 114)
  312. RGB(244, 164, 96), // sandybrown rgb(244, 164, 96)
  313. RGB(46, 139, 87), // seagreen rgb( 46, 139, 87)
  314. RGB(255, 245, 238), // seashell rgb(255, 245, 238)
  315. RGB(160, 82, 45), // sienna rgb(160, 82, 45)
  316. RGB(192, 192, 192), // silver rgb(192, 192, 192)
  317. RGB(135, 206, 235), // skyblue rgb(135, 206, 235)
  318. RGB(106, 90, 205), // slateblue rgb(106, 90, 205)
  319. RGB(112, 128, 144), // slategray rgb(112, 128, 144)
  320. RGB(112, 128, 144), // slategrey rgb(112, 128, 144)
  321. RGB(255, 250, 250), // snow rgb(255, 250, 250)
  322. RGB(0, 255, 127), // springgreen rgb( 0, 255, 127)
  323. RGB(70, 130, 180), // steelblue rgb( 70, 130, 180)
  324. RGB(210, 180, 140), // tan rgb(210, 180, 140)
  325. RGB(0, 128, 128), // teal rgb( 0, 128, 128)
  326. RGB(216, 191, 216), // thistle rgb(216, 191, 216)
  327. RGB(255, 99, 71), // tomato rgb(255, 99, 71)
  328. RGB(64, 224, 208), // turquoise rgb( 64, 224, 208)
  329. RGB(238, 130, 238), // violet rgb(238, 130, 238)
  330. RGB(245, 222, 179), // wheat rgb(245, 222, 179)
  331. RGB(255, 255, 255), // white rgb(255, 255, 255)
  332. RGB(245, 245, 245), // whitesmoke rgb(245, 245, 245)
  333. RGB(255, 255, 0), // yellow rgb(255, 255, 0)
  334. RGB(154, 205, 50), // yellowgreen rgb(154, 205, 50)
  335. };
  336. /**
  337. RGB颜色参数
  338. 基本颜色:蓝色
  339. ———————
  340. 钴制深蓝; 60 90 170
  341. 闪蓝色 : 30 144 255
  342. 靛青 : 8 46 84
  343. 深蓝 : 25 25 112
  344. 藏青 : 0 0 28
  345. 菘蓝 : 131 147 202
  346. 孔雀蓝 : 50 160 200
  347. 浅灰蓝 : 176 224 230
  348. 品蓝 ; 65 105 225
  349. 暗蓝灰色: 106 90 205
  350. 天蓝 ; 135 206 235
  351. 钢青 : 70 130 180
  352. 纯蓝 : 0 0 255
  353. 绿松色 : 0 200 140
  354. */
  355. COLORREF const g_LsBuleColorRef[] =
  356. {
  357. RGB(60, 90, 170),
  358. RGB(30, 144, 255),
  359. RGB(8, 46, 84),
  360. RGB(25, 25, 112),
  361. RGB(0, 0, 28),
  362. RGB(131, 147, 202),
  363. RGB(50, 160, 200),
  364. RGB(176, 224, 230),
  365. RGB(65, 105, 225),
  366. RGB(106, 90, 205),
  367. RGB(135, 206, 235),
  368. RGB(70, 130, 180),
  369. RGB(0, 0, 255),
  370. RGB(0, 200, 140),
  371. };
  372. /**
  373. 基本颜色; 褐色
  374. ————————
  375. 浅褐色 : 163 148 128
  376. 赭色 ; 138 54 15
  377. 红棕色 : 138 51 36
  378. 巧克力色: 210 105 30
  379. 黄褐色 : 240 230 140
  380. 生赭石黄: 199 97 20
  381. 生褐色 : 115 74 18
  382. 玫瑰红色: 188 143 143
  383. 马鞍色 : 139 69 19
  384. 棕褐色 : 94 38 18
  385. 沙色 : 160 92 45
  386. 茶色 ; 210 180 140
  387. 纯褐色 ; 128 42 42
  388. */
  389. COLORREF const g_LsBrownColorRef[] =
  390. {
  391. RGB(163, 148, 128),
  392. RGB(138, 54, 15),
  393. RGB(138, 51, 36),
  394. RGB(210, 105, 30),
  395. RGB(240, 230, 140),
  396. RGB(199, 97, 20),
  397. RGB(115, 74, 18),
  398. RGB(188, 143, 143),
  399. RGB(139, 69, 19),
  400. RGB(94, 38, 18),
  401. RGB(160, 92, 45),
  402. RGB(210, 180, 140),
  403. RGB(128, 42, 42),
  404. };
  405. /**
  406. 基本颜色: 青色
  407. ————————
  408. 碧绿色 : 127 255 212
  409. 浅绿色 ; 109 207 246
  410. 纯青色 : 0 255 255
  411. 青绿色 ; 64 244 208
  412. */
  413. COLORREF const g_LsCyanColorRef[] =
  414. {
  415. RGB(127, 255, 212),
  416. RGB(109, 207, 246),
  417. RGB(0, 255, 255),
  418. RGB(64, 244, 208),
  419. };
  420. /**
  421. 基本颜色: 绿色
  422. ————————
  423. 黄绿色 : 127 255 0
  424. 钴制深蓝: 61 145 64
  425. 翠绿色 : 0 201 87
  426. 森林绿 ; 34 139 34
  427. 草坪绿 ; 124 252 0
  428. 酸橙绿 ; 50 205 50
  429. 薄荷绿 : 189 252 200
  430. 草绿色 : 107 142 35
  431. 淡绿色 : 130 202 156
  432. 暗绿色 : 48 128 20
  433. 海蓝色 : 45 140 87
  434. 春绿色 ; 0 255 127
  435. 地球青翠: 56 94 15
  436. 纯绿色 : 0 255 0
  437. */
  438. COLORREF const g_LsGreenColorRef[] =
  439. {
  440. RGB(127, 255, 0),
  441. RGB(61, 145, 64),
  442. RGB(0, 201, 87),
  443. RGB(34, 139, 34),
  444. RGB(124, 252, 0),
  445. RGB(50, 205, 50),
  446. RGB(189, 252, 200),
  447. RGB(107, 142, 35),
  448. RGB(130, 202, 156),
  449. RGB(48, 128, 20),
  450. RGB(45, 140, 87),
  451. RGB(0, 255, 127),
  452. RGB(56, 94, 15),
  453. RGB(0, 255, 0),
  454. };
  455. /**
  456. 基本颜色; 灰色
  457. ————————
  458. 有冷感灰: 128 138 135
  459. 暗蓝灰色: 112 128 144
  460. 有暖感灰: 128 128 105
  461. 纯灰色 : 128 128 128
  462. */
  463. COLORREF const g_LsGrayColorRef[] =
  464. {
  465. RGB(128, 138, 135),
  466. RGB(112, 128, 144),
  467. RGB(128, 128, 105),
  468. RGB(128, 128, 128),
  469. };
  470. /**
  471. 基本颜色: 绛红色
  472. ——————————
  473. 蓝色 : 138 43 266
  474. 淡紫色 : 218 112 214
  475. 柔和淡紫: 244 154 193
  476. 深紫色 : 221 160 221
  477. 紫色 : 160 32 240
  478. 紫罗兰色: 143 94 153
  479. 纯绛红色: 255 0 255
  480. */
  481. COLORREF const g_LsDarkRedColorRef[] =
  482. {
  483. RGB(138, 43, 266),
  484. RGB(218, 112, 214),
  485. RGB(244, 154, 193),
  486. RGB(221, 160, 221),
  487. RGB(160, 32, 240),
  488. RGB(143, 94, 153),
  489. RGB(255, 0, 255),
  490. };
  491. /**
  492. 基本颜色: 橙色
  493. ————————
  494. 镉橙色 : 255 97 3
  495. 胡萝卜色; 237 145 33
  496. 红橙色 : 255 69 0
  497. 纯橙色 : 255 128 0
  498. */
  499. COLORREF const g_LsOrangeColorRef[] =
  500. {
  501. RGB(255, 97, 3),
  502. RGB(237, 145, 33),
  503. RGB(255, 69, 0),
  504. RGB(255, 128, 0),
  505. };
  506. /**
  507. 基本颜色: 红色
  508. ————————
  509. 砖红色 : 156 102 31
  510. 镉红色 : 227 23 13
  511. 珊瑚红色: 255 127 80
  512. 耐火砖红: 178 34 34
  513. 印度红 : 176 23 31
  514. 栗红 : 176 48 96
  515. 柔和淡红: 246 150 121
  516. 粉红 : 255 192 203
  517. 红光暗紫: 135 38 87
  518. 鲜肉色 ; 250 128 114
  519. 西红柿红; 255 99 71
  520. 纯红 : 255 0 0
  521. */
  522. COLORREF const g_LsRedColorRef[] =
  523. {
  524. RGB(156, 102, 31),
  525. RGB(227, 23, 13),
  526. RGB(255, 127, 80),
  527. RGB(178, 34, 34),
  528. RGB(176, 23, 31),
  529. RGB(176, 48, 96),
  530. RGB(246, 150, 121),
  531. RGB(255, 192, 203),
  532. RGB(135, 38, 87),
  533. RGB(250, 128, 114),
  534. RGB(255, 99, 71),
  535. RGB(255, 0, 0),
  536. };
  537. /**
  538. 基本颜色; 白色
  539. ————————
  540. 古董白 : 250 235 215
  541. 天蓝色 : 240 255 255
  542. 桔黄色 ; 255 228 196
  543. 漂白色 : 255 235 205
  544. 玉米丝白: 255 248 220
  545. 蛋壳白 : 251 230 201
  546. 花白 : 255 250 240
  547. Gainesboro: 220 220 220
  548. Ghose white: 248 248 255
  549. Honeydew: 240 255 240
  550. 象牙白 ; 255 255 240
  551. 亚麻色 : 250 240 230
  552. Navajo : 255 222 173
  553. 旧饰带白: 253 245 230
  554. 海贝壳白: 255 245 238
  555. 烟白 : 245 245 245
  556. 雪白 : 255 250 250
  557. 麦子白 : 245 222 179
  558. */
  559. COLORREF const g_LsWhiteColorRef[] =
  560. {
  561. RGB(250, 235, 215),
  562. RGB(240, 255, 255),
  563. RGB(255, 228, 196),
  564. RGB(255, 235, 205),
  565. RGB(255, 248, 220),
  566. RGB(251, 230, 201),
  567. RGB(255, 250, 240),
  568. RGB(220, 220, 220),
  569. RGB(248, 248, 255),
  570. RGB(240, 255, 240),
  571. RGB(255, 255, 240),
  572. RGB(250, 240, 230),
  573. RGB(255, 222, 173),
  574. RGB(253, 245, 230),
  575. RGB(255, 245, 238),
  576. RGB(245, 245, 245),
  577. RGB(255, 250, 250),
  578. RGB(245, 222, 179),
  579. };
  580. /**
  581. 基本颜色; 黄色
  582. ————————
  583. 香蕉黄 ; 227 207 87
  584. 镉黄 : 255 153 18
  585. 金黄 : 255 215 0
  586. 金黄色 : 218 165 32
  587. 瓜黄 : 227 255 0
  588. 淡黄 : 255 247 153
  589. 橙黄 ; 247 148 29
  590. 纯黄 : 255 255 0
  591. */
  592. COLORREF const g_LsYellowColorRef[] =
  593. {
  594. RGB(227, 207, 87),
  595. RGB(255, 153, 18),
  596. RGB(255, 215, 0),
  597. RGB(218, 165, 32),
  598. RGB(227, 255, 0),
  599. RGB(255, 247, 153),
  600. RGB(247, 148, 29),
  601. RGB(255, 255, 0),
  602. };
  603. /**
  604. 各种金属颜色:
  605. ————————
  606. 铝 : 220 223 227
  607. 黄铜 : 191 173 111
  608. 铜 : 186 110 64
  609. 金 ; 218 178 115
  610. 石墨 : 87 33 77
  611. 铁 : 115 115 120
  612. 银 : 230 230 215
  613. 不锈钢 ; 125 125 120
  614. */
  615. COLORREF const g_LsMetalColorRef[] =
  616. {
  617. RGB(220, 223, 227),
  618. RGB(191, 173, 111),
  619. RGB(186, 110, 64),
  620. RGB(218, 178, 115),
  621. RGB(87, 33, 77),
  622. RGB(115, 115, 120),
  623. RGB(230, 230, 215),
  624. RGB(125, 125, 120),
  625. };
  626. #ifdef USE_NAMESPACE_ON_LOSTSPEED
  627. }//namespace NS_LOSTSPEED
  628. #endif
  629. #endif //#ifdef _LS_COLOR_REF_DEFINE_H_

/** * @file LsColorRefDefine.h * @note * original data from: http://hi.baidu.com/ganxuequan/blog/item/e8412d30374fed93a9018e94.html */ #ifndef _LS_COLOR_REF_DEFINE_H_ #define _LS_COLOR_REF_DEFINE_H_ #include <WTypes.h> #ifdef USE_NAMESPACE_ON_LOSTSPEED #define NS_LOSTSPEED LostSpeed #define LSREF NS_LOSTSPEED:: #define USING_NSLS using NS_LOSTSPEED; #else #define NS_LOSTSPEED #define LSREF #define USING_NSLS #endif #ifdef USE_NAMESPACE_ON_LOSTSPEED namespace NS_LOSTSPEED { #endif/*** 定义的颜色系列如下* COLORREF const g_LsAllColorRef[];* COLORREF const g_LsBuleColorRef[];* COLORREF const g_LsBrownColorRef[];* COLORREF const g_LsCyanColorRef[];* COLORREF const g_LsGreenColorRef[];* COLORREF const g_LsGrayColorRef[];* COLORREF const g_LsDarkRedColorRef[];* COLORREF const g_LsOrangeColorRef[];* COLORREF const g_LsRedColorRef[];* COLORREF const g_LsWhiteColorRef[];* COLORREF const g_LsYellowColorRef[];* COLORREF const g_LsMetalColorRef[];*//**aliceblue rgb(240, 248, 255)antiquewhite rgb(250, 235, 215)aqua rgb( 0, 255, 255)aquamarine rgb(127, 255, 212)azure rgb(240, 255, 255)beige rgb(245, 245, 220)bisque rgb(255, 228, 196)black rgb( 0, 0, 0)blanchedalmond rgb(255, 235, 205)blue rgb( 0, 0, 255)blueviolet rgb(138, 43, 226)brown rgb(165, 42, 42)burlywood rgb(222, 184, 135)cadetblue rgb( 95, 158, 160)chartreuse rgb(127, 255, 0)chocolate rgb(210, 105, 30)coral rgb(255, 127, 80)cornflowerblue rgb(100, 149, 237)cornsilk rgb(255, 248, 220)crimson rgb(220, 20, 60)cyan rgb( 0, 255, 255)darkblue rgb( 0, 0, 139)darkcyan rgb( 0, 139, 139)darkgoldenrod rgb(184, 134, 11)darkgray rgb(169, 169, 169)darkgreen rgb( 0, 100, 0)darkgrey rgb(169, 169, 169)darkkhaki rgb(189, 183, 107)darkmagenta rgb(139, 0, 139)darkolivegreen rgb( 85, 107, 47)darkorange rgb(255, 140, 0)darkorchid rgb(153, 50, 204)darkred rgb(139, 0, 0)darksalmon rgb(233, 150, 122)darkseagreen rgb(143, 188, 143)darkslateblue rgb( 72, 61, 139)darkslategray rgb( 47, 79, 79)darkslategrey rgb( 47, 79, 79)darkturquoise rgb( 0, 206, 209)darkviolet rgb(148, 0, 211)deeppink rgb(255, 20, 147)deepskyblue rgb( 0, 191, 255)dimgray rgb(105, 105, 105)dimgrey rgb(105, 105, 105)dodgerblue rgb( 30, 144, 255)firebrick rgb(178, 34, 34)floralwhite rgb(255, 250, 240)forestgreen rgb( 34, 139, 34)fuchsia rgb(255, 0, 255)gainsboro rgb(220, 220, 220)ghostwhite rgb(248, 248, 255)gold rgb(255, 215, 0)goldenrod rgb(218, 165, 32)gray rgb(128, 128, 128)grey rgb(128, 128, 128)green rgb( 0, 128, 0)greenyellow rgb(173, 255, 47)honeydew rgb(240, 255, 240)hotpink rgb(255, 105, 180)indianred rgb(205, 92, 92)indigo rgb( 75, 0, 130)ivory rgb(255, 255, 240)khaki rgb(240, 230, 140)lavender rgb(230, 230, 250)lavenderblush rgb(255, 240, 245)lawngreen rgb(124, 252, 0)lemonchiffon rgb(255, 250, 205)lightblue rgb(173, 216, 230)lightcoral rgb(240, 128, 128)lightcyan rgb(224, 255, 255)lightgoldenrodyellow rgb(250, 250, 210)lightgray rgb(211, 211, 211)lightgreen rgb(144, 238, 144)lightgrey rgb(211, 211, 211)lightpink rgb(255, 182, 193)lightsalmon rgb(255, 160, 122)lightseagreen rgb( 32, 178, 170)lightskyblue rgb(135, 206, 250)lightslategray rgb(119, 136, 153)lightslategrey rgb(119, 136, 153)lightsteelblue rgb(176, 196, 222)lightyellow rgb(255, 255, 224)lime rgb( 0, 255, 0)limegreen rgb( 50, 205, 50)linen rgb(250, 240, 230)magenta rgb(255, 0, 255)maroon rgb(128, 0, 0)mediumaquamarine rgb(102, 205, 170)mediumblue rgb( 0, 0, 205)mediumorchid rgb(186, 85, 211)mediumpurple rgb(147, 112, 219)mediumseagreen rgb( 60, 179, 113)mediumslateblue rgb(123, 104, 238)mediumspringgreen rgb( 0, 250, 154)mediumturquoise rgb( 72, 209, 204)mediumvioletred rgb(199, 21, 133)midnightblue rgb( 25, 25, 112)mintcream rgb(245, 255, 250)mistyrose rgb(255, 228, 225)moccasin rgb(255, 228, 181)navajowhite rgb(255, 222, 173)navy rgb( 0, 0, 128)oldlace rgb(253, 245, 230)olive rgb(128, 128, 0)olivedrab rgb(107, 142, 35)orange rgb(255, 165, 0)orangered rgb(255, 69, 0)orchid rgb(218, 112, 214)palegoldenrod rgb(238, 232, 170)palegreen rgb(152, 251, 152)paleturquoise rgb(175, 238, 238)palevioletred rgb(219, 112, 147)papayawhip rgb(255, 239, 213)peachpuff rgb(255, 218, 185)peru rgb(205, 133, 63)pink rgb(255, 192, 203)plum rgb(221, 160, 221)powderblue rgb(176, 224, 230)purple rgb(128, 0, 128)red rgb(255, 0, 0)rosybrown rgb(188, 143, 143)royalblue rgb( 65, 105, 225)saddlebrown rgb(139, 69, 19)salmon rgb(250, 128, 114)sandybrown rgb(244, 164, 96)seagreen rgb( 46, 139, 87)seashell rgb(255, 245, 238)sienna rgb(160, 82, 45)silver rgb(192, 192, 192)skyblue rgb(135, 206, 235)slateblue rgb(106, 90, 205)slategray rgb(112, 128, 144)slategrey rgb(112, 128, 144)snow rgb(255, 250, 250)springgreen rgb( 0, 255, 127)steelblue rgb( 70, 130, 180)tan rgb(210, 180, 140)teal rgb( 0, 128, 128)thistle rgb(216, 191, 216)tomato rgb(255, 99, 71)turquoise rgb( 64, 224, 208)violet rgb(238, 130, 238)wheat rgb(245, 222, 179)white rgb(255, 255, 255)whitesmoke rgb(245, 245, 245)yellow rgb(255, 255, 0)yellowgreen rgb(154, 205, 50)*/COLORREF const g_LsAllColorRef[] ={RGB(240, 248, 255), // aliceblue rgb(240, 248, 255)RGB(250, 235, 215), // antiquewhite rgb(250, 235, 215)RGB(0, 255, 255), // aqua rgb( 0, 255, 255)RGB(127, 255, 212), // aquamarine rgb(127, 255, 212)RGB(240, 255, 255), // azure rgb(240, 255, 255)RGB(245, 245, 220), // beige rgb(245, 245, 220)RGB(255, 228, 196), // bisque rgb(255, 228, 196)RGB(0, 0, 0), // black rgb( 0, 0, 0)RGB(255, 235, 205), // blanchedalmond rgb(255, 235, 205)RGB(0, 0, 255), // blue rgb( 0, 0, 255)RGB(138, 43, 226), // blueviolet rgb(138, 43, 226)RGB(165, 42, 42), // brown rgb(165, 42, 42)RGB(222, 184, 135), // burlywood rgb(222, 184, 135)RGB(95, 158, 160), // cadetblue rgb( 95, 158, 160)RGB(27, 255, 0), // chartreuse rgb(127, 255, 0)RGB(210, 105, 30), // chocolate rgb(210, 105, 30)RGB(255, 127, 80), // coral rgb(255, 127, 80)RGB(100, 149, 237), // cornflowerblue rgb(100, 149, 237)RGB(255, 248, 220), // cornsilk rgb(255, 248, 220)RGB(220, 20, 60), // crimson rgb(220, 20, 60)RGB(0, 255, 255), // cyan rgb( 0, 255, 255)RGB(0, 0, 139), // darkblue rgb( 0, 0, 139)RGB(0, 139, 139), // darkcyan rgb( 0, 139, 139)RGB(184, 134, 11), // darkgoldenrod rgb(184, 134, 11)RGB(169, 169, 169), // darkgray rgb(169, 169, 169)RGB(0, 100, 0), // darkgreen rgb( 0, 100, 0)RGB(169, 169, 169), // darkgrey rgb(169, 169, 169)RGB(189, 183, 107), // darkkhaki rgb(189, 183, 107)RGB(139, 0, 139), // darkmagenta rgb(139, 0, 139)RGB(85, 107, 47), // darkolivegreen rgb( 85, 107, 47)RGB(255, 140, 0), // darkorange rgb(255, 140, 0)RGB(153, 50, 204), // darkorchid rgb(153, 50, 204)RGB(139, 0, 0), // darkred rgb(139, 0, 0)RGB(233, 150, 122), // darksalmon rgb(233, 150, 122)RGB(143, 188, 143), // darkseagreen rgb(143, 188, 143)RGB(72, 61, 139), // darkslateblue rgb( 72, 61, 139)RGB(47, 79, 79), // darkslategray rgb( 47, 79, 79)RGB(47, 79, 79), // darkslategrey rgb( 47, 79, 79)RGB(0, 206, 209), // darkturquoise rgb( 0, 206, 209)RGB(148, 0, 211), // darkviolet rgb(148, 0, 211)RGB(255, 20, 147), // deeppink rgb(255, 20, 147)RGB(0, 191, 255), // deepskyblue rgb( 0, 191, 255)RGB(105, 105, 105), // dimgray rgb(105, 105, 105)RGB(105, 105, 105), // dimgrey rgb(105, 105, 105)RGB(30, 144, 255), // dodgerblue rgb( 30, 144, 255)RGB(178, 34, 34), // firebrick rgb(178, 34, 34)RGB(255, 250, 240), // floralwhite rgb(255, 250, 240)RGB(34, 139, 34), // forestgreen rgb( 34, 139, 34)RGB(255, 0, 255), // fuchsia rgb(255, 0, 255)RGB(220, 220, 220), // gainsboro rgb(220, 220, 220)RGB(248, 248, 255), // ghostwhite rgb(248, 248, 255)RGB(255, 215, 0), // gold rgb(255, 215, 0)RGB(218, 165, 32), // goldenrod rgb(218, 165, 32)RGB(128, 128, 128), // gray rgb(128, 128, 128)RGB(128, 128, 128), // grey rgb(128, 128, 128)RGB(0, 128, 0), // green rgb( 0, 128, 0)RGB(173, 255, 47), // greenyellow rgb(173, 255, 47)RGB(240, 255, 240), // honeydew rgb(240, 255, 240)RGB(255, 105, 180), // hotpink rgb(255, 105, 180)RGB(205, 92, 92), // indianred rgb(205, 92, 92)RGB(75, 0, 130), // indigo rgb( 75, 0, 130)RGB(255, 255, 240), // ivory rgb(255, 255, 240)RGB(240, 230, 140), // khaki rgb(240, 230, 140)RGB(230, 230, 250), // lavender rgb(230, 230, 250)RGB(255, 240, 245), // lavenderblush rgb(255, 240, 245)RGB(124, 252, 0), // lawngreen rgb(124, 252, 0)RGB(255, 250, 205), // lemonchiffon rgb(255, 250, 205)RGB(173, 216, 230), // lightblue rgb(173, 216, 230)RGB(240, 128, 128), // lightcoral rgb(240, 128, 128)RGB(224, 255, 255), // lightcyan rgb(224, 255, 255)RGB(250, 250, 210), // lightgoldenrodyellow rgb(250, 250, 210)RGB(211, 211, 211), // lightgray rgb(211, 211, 211)RGB(144, 238, 144), // lightgreen rgb(144, 238, 144)RGB(211, 211, 211), // lightgrey rgb(211, 211, 211)RGB(255, 182, 193), // lightpink rgb(255, 182, 193)RGB(255, 160, 122), // lightsalmon rgb(255, 160, 122)RGB(32, 178, 170), // lightseagreen rgb( 32, 178, 170)RGB(135, 206, 250), // lightskyblue rgb(135, 206, 250)RGB(119, 136, 153), // lightslategray rgb(119, 136, 153)RGB(119, 136, 153), // lightslategrey rgb(119, 136, 153)RGB(176, 196, 222), // lightsteelblue rgb(176, 196, 222)RGB(255, 255, 224), // lightyellow rgb(255, 255, 224)RGB(0, 255, 0), // lime rgb( 0, 255, 0)RGB(50, 205, 50), // limegreen rgb( 50, 205, 50)RGB(250, 240, 230), // linen rgb(250, 240, 230)RGB(255, 0, 255), // magenta rgb(255, 0, 255)RGB(128, 0, 0), // maroon rgb(128, 0, 0)RGB(102, 205, 170), // mediumaquamarine rgb(102, 205, 170)RGB(0, 0, 205), // mediumblue rgb( 0, 0, 205)RGB(186, 85, 211), // mediumorchid rgb(186, 85, 211)RGB(147, 112, 219), // mediumpurple rgb(147, 112, 219)RGB(60, 179, 113), // mediumseagreen rgb( 60, 179, 113)RGB(123, 104, 238), // mediumslateblue rgb(123, 104, 238)RGB(0, 250, 154), // mediumspringgreen rgb( 0, 250, 154)RGB(72, 209, 204), // mediumturquoise rgb( 72, 209, 204)RGB(199, 21, 133), // mediumvioletred rgb(199, 21, 133)RGB(25, 25, 112), // midnightblue rgb( 25, 25, 112)RGB(245, 255, 250), // mintcream rgb(245, 255, 250)RGB(255, 228, 225), // mistyrose rgb(255, 228, 225)RGB(255, 228, 181), // moccasin rgb(255, 228, 181)RGB(255, 222, 173), // navajowhite rgb(255, 222, 173)RGB(0, 0, 128), // navy rgb( 0, 0, 128)RGB(253, 245, 230), // oldlace rgb(253, 245, 230)RGB(128, 128, 0), // olive rgb(128, 128, 0)RGB(107, 142, 35), // olivedrab rgb(107, 142, 35)RGB(255, 165, 0), // orange rgb(255, 165, 0)RGB(255, 69, 0), // orangered rgb(255, 69, 0)RGB(218, 112, 214), // orchid rgb(218, 112, 214)RGB(238, 232, 170), // palegoldenrod rgb(238, 232, 170)RGB(152, 251, 152), // palegreen rgb(152, 251, 152)RGB(175, 238, 238), // paleturquoise rgb(175, 238, 238)RGB(219, 112, 147), // palevioletred rgb(219, 112, 147)RGB(255, 239, 213), // papayawhip rgb(255, 239, 213)RGB(255, 218, 185), // peachpuff rgb(255, 218, 185)RGB(205, 133, 63), // peru rgb(205, 133, 63)RGB(255, 192, 203), // pink rgb(255, 192, 203)RGB(221, 160, 221), // plum rgb(221, 160, 221)RGB(176, 224, 230), // powderblue rgb(176, 224, 230)RGB(128, 0, 128), // purple rgb(128, 0, 128)RGB(255, 0, 0), // red rgb(255, 0, 0)RGB(188, 143, 143), // rosybrown rgb(188, 143, 143)RGB(65, 105, 225), // royalblue rgb( 65, 105, 225)RGB(139, 69, 19), // saddlebrown rgb(139, 69, 19)RGB(250, 128, 114), // salmon rgb(250, 128, 114)RGB(244, 164, 96), // sandybrown rgb(244, 164, 96)RGB(46, 139, 87), // seagreen rgb( 46, 139, 87)RGB(255, 245, 238), // seashell rgb(255, 245, 238)RGB(160, 82, 45), // sienna rgb(160, 82, 45)RGB(192, 192, 192), // silver rgb(192, 192, 192)RGB(135, 206, 235), // skyblue rgb(135, 206, 235)RGB(106, 90, 205), // slateblue rgb(106, 90, 205)RGB(112, 128, 144), // slategray rgb(112, 128, 144)RGB(112, 128, 144), // slategrey rgb(112, 128, 144)RGB(255, 250, 250), // snow rgb(255, 250, 250)RGB(0, 255, 127), // springgreen rgb( 0, 255, 127)RGB(70, 130, 180), // steelblue rgb( 70, 130, 180)RGB(210, 180, 140), // tan rgb(210, 180, 140)RGB(0, 128, 128), // teal rgb( 0, 128, 128)RGB(216, 191, 216), // thistle rgb(216, 191, 216)RGB(255, 99, 71), // tomato rgb(255, 99, 71)RGB(64, 224, 208), // turquoise rgb( 64, 224, 208)RGB(238, 130, 238), // violet rgb(238, 130, 238)RGB(245, 222, 179), // wheat rgb(245, 222, 179)RGB(255, 255, 255), // white rgb(255, 255, 255)RGB(245, 245, 245), // whitesmoke rgb(245, 245, 245)RGB(255, 255, 0), // yellow rgb(255, 255, 0)RGB(154, 205, 50), // yellowgreen rgb(154, 205, 50)};/**RGB颜色参数基本颜色:蓝色———————钴制深蓝; 60 90 170闪蓝色 : 30 144 255靛青 : 8 46 84深蓝 : 25 25 112藏青 : 0 0 28菘蓝 : 131 147 202孔雀蓝 : 50 160 200浅灰蓝 : 176 224 230品蓝 ; 65 105 225暗蓝灰色: 106 90 205天蓝 ; 135 206 235钢青 : 70 130 180纯蓝 : 0 0 255绿松色 : 0 200 140*/COLORREF const g_LsBuleColorRef[] ={RGB(60, 90, 170),RGB(30, 144, 255),RGB(8, 46, 84),RGB(25, 25, 112),RGB(0, 0, 28),RGB(131, 147, 202),RGB(50, 160, 200),RGB(176, 224, 230),RGB(65, 105, 225),RGB(106, 90, 205),RGB(135, 206, 235),RGB(70, 130, 180),RGB(0, 0, 255),RGB(0, 200, 140),};/**基本颜色; 褐色————————浅褐色 : 163 148 128赭色 ; 138 54 15红棕色 : 138 51 36巧克力色: 210 105 30黄褐色 : 240 230 140生赭石黄: 199 97 20生褐色 : 115 74 18玫瑰红色: 188 143 143马鞍色 : 139 69 19棕褐色 : 94 38 18沙色 : 160 92 45茶色 ; 210 180 140纯褐色 ; 128 42 42*/COLORREF const g_LsBrownColorRef[] ={RGB(163, 148, 128),RGB(138, 54, 15),RGB(138, 51, 36),RGB(210, 105, 30),RGB(240, 230, 140),RGB(199, 97, 20),RGB(115, 74, 18),RGB(188, 143, 143),RGB(139, 69, 19),RGB(94, 38, 18),RGB(160, 92, 45),RGB(210, 180, 140),RGB(128, 42, 42),};/**基本颜色: 青色————————碧绿色 : 127 255 212浅绿色 ; 109 207 246纯青色 : 0 255 255青绿色 ; 64 244 208*/COLORREF const g_LsCyanColorRef[] ={RGB(127, 255, 212),RGB(109, 207, 246),RGB(0, 255, 255),RGB(64, 244, 208),};/**基本颜色: 绿色————————黄绿色 : 127 255 0钴制深蓝: 61 145 64翠绿色 : 0 201 87森林绿 ; 34 139 34草坪绿 ; 124 252 0酸橙绿 ; 50 205 50薄荷绿 : 189 252 200草绿色 : 107 142 35淡绿色 : 130 202 156暗绿色 : 48 128 20海蓝色 : 45 140 87春绿色 ; 0 255 127地球青翠: 56 94 15纯绿色 : 0 255 0*/COLORREF const g_LsGreenColorRef[] ={RGB(127, 255, 0),RGB(61, 145, 64),RGB(0, 201, 87),RGB(34, 139, 34),RGB(124, 252, 0),RGB(50, 205, 50),RGB(189, 252, 200),RGB(107, 142, 35),RGB(130, 202, 156),RGB(48, 128, 20),RGB(45, 140, 87),RGB(0, 255, 127),RGB(56, 94, 15),RGB(0, 255, 0),};/**基本颜色; 灰色————————有冷感灰: 128 138 135暗蓝灰色: 112 128 144有暖感灰: 128 128 105纯灰色 : 128 128 128*/COLORREF const g_LsGrayColorRef[] ={RGB(128, 138, 135),RGB(112, 128, 144),RGB(128, 128, 105),RGB(128, 128, 128),};/**基本颜色: 绛红色——————————蓝色 : 138 43 266淡紫色 : 218 112 214柔和淡紫: 244 154 193深紫色 : 221 160 221紫色 : 160 32 240紫罗兰色: 143 94 153纯绛红色: 255 0 255*/COLORREF const g_LsDarkRedColorRef[] ={RGB(138, 43, 266),RGB(218, 112, 214),RGB(244, 154, 193),RGB(221, 160, 221),RGB(160, 32, 240),RGB(143, 94, 153),RGB(255, 0, 255),};/**基本颜色: 橙色————————镉橙色 : 255 97 3胡萝卜色; 237 145 33红橙色 : 255 69 0纯橙色 : 255 128 0*/COLORREF const g_LsOrangeColorRef[] ={RGB(255, 97, 3),RGB(237, 145, 33),RGB(255, 69, 0),RGB(255, 128, 0),};/**基本颜色: 红色————————砖红色 : 156 102 31镉红色 : 227 23 13珊瑚红色: 255 127 80耐火砖红: 178 34 34印度红 : 176 23 31栗红 : 176 48 96柔和淡红: 246 150 121粉红 : 255 192 203红光暗紫: 135 38 87鲜肉色 ; 250 128 114西红柿红; 255 99 71纯红 : 255 0 0*/COLORREF const g_LsRedColorRef[] ={RGB(156, 102, 31),RGB(227, 23, 13),RGB(255, 127, 80),RGB(178, 34, 34),RGB(176, 23, 31),RGB(176, 48, 96),RGB(246, 150, 121),RGB(255, 192, 203),RGB(135, 38, 87),RGB(250, 128, 114),RGB(255, 99, 71),RGB(255, 0, 0),};/**基本颜色; 白色————————古董白 : 250 235 215天蓝色 : 240 255 255桔黄色 ; 255 228 196漂白色 : 255 235 205玉米丝白: 255 248 220蛋壳白 : 251 230 201花白 : 255 250 240Gainesboro: 220 220 220Ghose white: 248 248 255Honeydew: 240 255 240象牙白 ; 255 255 240亚麻色 : 250 240 230Navajo : 255 222 173旧饰带白: 253 245 230海贝壳白: 255 245 238烟白 : 245 245 245雪白 : 255 250 250麦子白 : 245 222 179*/COLORREF const g_LsWhiteColorRef[] ={RGB(250, 235, 215),RGB(240, 255, 255),RGB(255, 228, 196),RGB(255, 235, 205),RGB(255, 248, 220),RGB(251, 230, 201),RGB(255, 250, 240),RGB(220, 220, 220),RGB(248, 248, 255),RGB(240, 255, 240),RGB(255, 255, 240),RGB(250, 240, 230),RGB(255, 222, 173),RGB(253, 245, 230),RGB(255, 245, 238),RGB(245, 245, 245),RGB(255, 250, 250),RGB(245, 222, 179),};/**基本颜色; 黄色————————香蕉黄 ; 227 207 87镉黄 : 255 153 18金黄 : 255 215 0金黄色 : 218 165 32瓜黄 : 227 255 0淡黄 : 255 247 153橙黄 ; 247 148 29纯黄 : 255 255 0*/COLORREF const g_LsYellowColorRef[] ={RGB(227, 207, 87),RGB(255, 153, 18),RGB(255, 215, 0),RGB(218, 165, 32),RGB(227, 255, 0),RGB(255, 247, 153),RGB(247, 148, 29),RGB(255, 255, 0),};/**各种金属颜色:————————铝 : 220 223 227黄铜 : 191 173 111铜 : 186 110 64金 ; 218 178 115石墨 : 87 33 77铁 : 115 115 120银 : 230 230 215不锈钢 ; 125 125 120*/COLORREF const g_LsMetalColorRef[] ={RGB(220, 223, 227),RGB(191, 173, 111),RGB(186, 110, 64),RGB(218, 178, 115),RGB(87, 33, 77),RGB(115, 115, 120),RGB(230, 230, 215),RGB(125, 125, 120),}; #ifdef USE_NAMESPACE_ON_LOSTSPEED }//namespace NS_LOSTSPEED #endif #endif //#ifdef _LS_COLOR_REF_DEFINE_H_

资料: 颜色RGB基础定义相关推荐

  1. OpenGL原理与实践——核心模式(五):颜色、基础光照、Phong模型、材质与光

    目录 颜色相关理论 什么是颜色 如何计算颜色? 简单实现 Phong光照模型--局部光照模型 环境光 ​编辑 漫反射 镜面反射 材质与光 材质与纹理的关系 材质在shader的体现 材质属性与光属性 ...

  2. 了解一些常用的文件系统和一些基础定义

    了解一些常用的文件系统和一些基础定义 基础定义: 文件系统就是在存储设备上组织文件的方法.而存储设备就是常见的磁盘,也有基于NAND Flash的固态硬盘等.对于组织文件的方法又分为命名文件及放置文件 ...

  3. [茶香人家:原创资料]岩茶基础名词图解

    岩茶常识,喝茶必备. [原创资料]岩茶基础名词图解 本文转自:晚甘园 作者:茶香人家 (她的淘宝店网址:http://shop33167074.taobao.com) 晚甘园 版权所有 茶梗:茶树的嫩 ...

  4. D3.js绘制 颜色:RGB、HSL和插值 (V3版本)

    转载地址:D3.js绘制 颜色:RGB.HSL和插值 (V3版本) 如果要计算介于两个颜色之间的颜色,需要用到插值(Interpolation).D3提供了d3.intrerpolateRgb()来处 ...

  5. Linux安全培训 ppt,腾讯内部培训资料linux安全基础ppt课件

    腾讯内部培训资料linux安全基础ppt课件 (20页) 本资源提供全文预览,点击全文预览即可全文预览,如果喜欢文档就下载吧,查找使用更方便哦! 19.90 积分 根据三原色原理叠加后的单色形成了第三 ...

  6. C#制作一个图片查看器,具有滚轮放大缩小,鼠标拖动,图像像素化,显示颜色RGB信息功能

    目录 前言 一.界面设计 二.关键技术 1.把图片拖入到窗体并显示 2.实现图像缩放的功能 3.实现图像的移动效果 4.实时显示当前鼠标处的RGB值 5. 右击功能的实现 6.效果展示 总结 前言 使 ...

  7. C 图像处理 颜色相关宏定义

    很多年前整理的,像素处理的宏定义,包括r8g8b8到r5g6b5之间的相互转化,浮点数像素与整数值之间的相互转化,像素值的插值.取反等处理.具体没什么好说的,宏定义的代码还是很容易看的.这套东西对搞图 ...

  8. Android常用颜色RGB值以及中英文名称

    Android常用颜色RGB值以及中英文名称 颜色 RGB值 英文名 中文名   #FFB6C1 LightPink 浅粉红   #FFC0CB Pink 粉红   #DC143C Crimson 深 ...

  9. 常用icon以及color颜色RGB值和对应颜色效果图

    Android谷歌官方扁平化设计常用icon集合   Android谷歌官方扁平化设计color颜色RGB值和对应颜色效果图.

最新文章

  1. 悲催的跨平台文献管理能力
  2. mysql myisam innodb 区别
  3. 最近在玩linux时 yum 遇到了问题
  4. Java多线程,锁(synchronize),饿汉式单例线程,等待处理机制
  5. Java commit()_Java XAResource.commit方法代码示例
  6. 项目需求分析——如何理解和识别系统需求?
  7. mysql怎么更改属性_MySQL 中怎么修改字段名,不更改属性?
  8. python——time模块实现指定时间触发器
  9. 杂记 - 进化成更好的人
  10. 安卓游戏源码源代码下载
  11. 怎样缩小图片大小kb?
  12. Monte Carlo Algorithms
  13. 云端卫士助力运营商实现DDoS安全业务的统一运营
  14. HTML+CSS+JS大作业:生态环境网站设计——环境保护主题-绿色环保 (9页) web期末作业设计网页_绿色环保大学生网页设计作业成品
  15. c++读取stl文件
  16. 上亿海量数据处理方法
  17. Arista创始人以VMware NSX的“开放框架”为目标瞄准思科
  18. 操作系统实验(2)—— Linux启动初始化过程设计探析实验
  19. 550什么意思_我给女孩子发520,她回550是什么意思?求各路大神指点?
  20. python精通大学_小白21天精通Python是如何做到的?

热门文章

  1. Centos 7 无法上网的解决办法
  2. 基础第三-MySQL-多表查询-索引-事务笔记
  3. android layout_gravity center,android: layout_gravity与gravity区别及动态设置
  4. CP2K入门教程分享
  5. 医院CRM客户关系管理系统的概念
  6. 初链:高性能去中心化公开账本
  7. Markdown 入门及语法详细指南 ★
  8. Linux下的常用命令(干货)
  9. 怎么关闭win7计算机一键还原系统,Win7卸载一键还原功能后还会保留在开机启动菜单中怎么办...
  10. python文件读写、字典、习题、模块包库、pycharm、面向对象