资料: 颜色RGB基础定义

来源:互联网 发布:淘宝店没生意怎么办 编辑:程序博客网 时间:2024/05/18 03:22
[cpp] view plain copy
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.   
  11. int fnTestUse();  
  12. int main(int argc, char * argv[])  
  13. {  
  14.     fnTestUse();  
  15.     getchar();  
  16.     return 0;  
  17. }  
  18. int fnTestUse()  
  19. {  
  20.     printf("COLORREF基础值定义/n");  
  21.     //RGB(255, 228, 196), // bisque rgb(255, 228, 196)  
  22.     COLORREF clrBisque = LSREF g_LsAllColorRef[6];//bisque rgb's pos is 6 at g_LsAllColorRef  
  23.     printf("COLORREF基础值取值和校验/n");  
  24.     if(clrBisque != RGB(255, 228, 196))  
  25.     {  
  26.         printf("some error happen/n");  
  27.         _ASSERT(0);  
  28.     }  
  29.     printf("/nCOLORREF基础值数组尺寸列表/n");  
  30.     size_t stLsAllColorRef = sizeof(LSREF g_LsAllColorRef) / sizeof(COLORREF);  
  31.     size_t stLsBuleColorRef = sizeof(LSREF g_LsBuleColorRef) / sizeof(COLORREF);  
  32.     size_t stLsBrownColorRef = sizeof(LSREF g_LsBrownColorRef) / sizeof(COLORREF);  
  33.     size_t stLsCyanColorRef = sizeof(LSREF g_LsCyanColorRef) / sizeof(COLORREF);  
  34.     size_t stLsGreenColorRef = sizeof(LSREF g_LsGreenColorRef) / sizeof(COLORREF);  
  35.     size_t stLsGrayColorRef = sizeof(LSREF g_LsGrayColorRef) / sizeof(COLORREF);  
  36.     size_t stLsDarkColorRef = sizeof(LSREF g_LsDarkRedColorRef) / sizeof(COLORREF);  
  37.     size_t stLsOrangeColorRef = sizeof(LSREF g_LsOrangeColorRef) / sizeof(COLORREF);  
  38.     size_t stLsRedColorRef = sizeof(LSREF g_LsRedColorRef) / sizeof(COLORREF);  
  39.     size_t stLsWhiteColorRef = sizeof(LSREF g_LsWhiteColorRef) / sizeof(COLORREF);  
  40.     size_t stLsYellowColorRef = sizeof(LSREF g_LsYellowColorRef) / sizeof(COLORREF);  
  41.     size_t stLsMetalColorRef = sizeof(LSREF g_LsMetalColorRef) / sizeof(COLORREF);  
  42.     printf("%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. %s[%d]/n",  
  54.            "g_LsAllColorRef",     stLsAllColorRef,  
  55.            "g_LsBuleColorRef",    stLsBuleColorRef,  
  56.            "g_LsBrownColorRef",   stLsBrownColorRef,  
  57.            "g_LsCyanColorRef",    stLsCyanColorRef,  
  58.            "g_LsGreenColorRef",   stLsGreenColorRef,  
  59.            "g_LsGrayColorRef",    stLsGrayColorRef,  
  60.            "g_LsDarkRedColorRef", stLsDarkColorRef,  
  61.            "g_LsOrangeColorRef",  stLsOrangeColorRef,  
  62.            "g_LsRedColorRef",     stLsRedColorRef,  
  63.            "g_LsWhiteColorRef",   stLsWhiteColorRef,  
  64.            "g_LsYellowColorRef",  stLsYellowColorRef,  
  65.            "g_LsMetalColorRef",   stLsMetalColorRef);  
  66.     /** run results 
  67.     COLORREF基础值定义 
  68.     COLORREF基础值取值和校验 
  69.     COLORREF基础值数组尺寸列表 
  70.     g_LsAllColorRef[147] 
  71.     g_LsBuleColorRef[14] 
  72.     g_LsBrownColorRef[13] 
  73.     g_LsCyanColorRef[4] 
  74.     g_LsGreenColorRef[14] 
  75.     g_LsGrayColorRef[4] 
  76.     g_LsDarkRedColorRef[7] 
  77.     g_LsOrangeColorRef[4] 
  78.     g_LsRedColorRef[12] 
  79.     g_LsWhiteColorRef[18] 
  80.     g_LsYellowColorRef[8] 
  81.     g_LsMetalColorRef[8] 
  82.     */  
  83.     return S_OK;  
  84. }   
[cpp] view plain copy
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_