资料: 颜色RGB基础定义
版权声明:
- // 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_LsAllColorRef
- printf("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 results
- COLORREF基础值定义
- 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;
- }
// 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; }
- /**
- * @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 240
- Gainesboro: 220 220 220
- Ghose white: 248 248 255
- Honeydew: 240 255 240
- 象牙白 ; 255 255 240
- 亚麻色 : 250 240 230
- Navajo : 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_
/** * @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基础定义相关推荐
- OpenGL原理与实践——核心模式(五):颜色、基础光照、Phong模型、材质与光
目录 颜色相关理论 什么是颜色 如何计算颜色? 简单实现 Phong光照模型--局部光照模型 环境光 编辑 漫反射 镜面反射 材质与光 材质与纹理的关系 材质在shader的体现 材质属性与光属性 ...
- 了解一些常用的文件系统和一些基础定义
了解一些常用的文件系统和一些基础定义 基础定义: 文件系统就是在存储设备上组织文件的方法.而存储设备就是常见的磁盘,也有基于NAND Flash的固态硬盘等.对于组织文件的方法又分为命名文件及放置文件 ...
- [茶香人家:原创资料]岩茶基础名词图解
岩茶常识,喝茶必备. [原创资料]岩茶基础名词图解 本文转自:晚甘园 作者:茶香人家 (她的淘宝店网址:http://shop33167074.taobao.com) 晚甘园 版权所有 茶梗:茶树的嫩 ...
- D3.js绘制 颜色:RGB、HSL和插值 (V3版本)
转载地址:D3.js绘制 颜色:RGB.HSL和插值 (V3版本) 如果要计算介于两个颜色之间的颜色,需要用到插值(Interpolation).D3提供了d3.intrerpolateRgb()来处 ...
- Linux安全培训 ppt,腾讯内部培训资料linux安全基础ppt课件
腾讯内部培训资料linux安全基础ppt课件 (20页) 本资源提供全文预览,点击全文预览即可全文预览,如果喜欢文档就下载吧,查找使用更方便哦! 19.90 积分 根据三原色原理叠加后的单色形成了第三 ...
- C#制作一个图片查看器,具有滚轮放大缩小,鼠标拖动,图像像素化,显示颜色RGB信息功能
目录 前言 一.界面设计 二.关键技术 1.把图片拖入到窗体并显示 2.实现图像缩放的功能 3.实现图像的移动效果 4.实时显示当前鼠标处的RGB值 5. 右击功能的实现 6.效果展示 总结 前言 使 ...
- C 图像处理 颜色相关宏定义
很多年前整理的,像素处理的宏定义,包括r8g8b8到r5g6b5之间的相互转化,浮点数像素与整数值之间的相互转化,像素值的插值.取反等处理.具体没什么好说的,宏定义的代码还是很容易看的.这套东西对搞图 ...
- Android常用颜色RGB值以及中英文名称
Android常用颜色RGB值以及中英文名称 颜色 RGB值 英文名 中文名 #FFB6C1 LightPink 浅粉红 #FFC0CB Pink 粉红 #DC143C Crimson 深 ...
- 常用icon以及color颜色RGB值和对应颜色效果图
Android谷歌官方扁平化设计常用icon集合 Android谷歌官方扁平化设计color颜色RGB值和对应颜色效果图.
最新文章
- 悲催的跨平台文献管理能力
- mysql myisam innodb 区别
- 最近在玩linux时 yum 遇到了问题
- Java多线程,锁(synchronize),饿汉式单例线程,等待处理机制
- Java commit()_Java XAResource.commit方法代码示例
- 项目需求分析——如何理解和识别系统需求?
- mysql怎么更改属性_MySQL 中怎么修改字段名,不更改属性?
- python——time模块实现指定时间触发器
- 杂记 - 进化成更好的人
- 安卓游戏源码源代码下载
- 怎样缩小图片大小kb?
- Monte Carlo Algorithms
- 云端卫士助力运营商实现DDoS安全业务的统一运营
- HTML+CSS+JS大作业:生态环境网站设计——环境保护主题-绿色环保 (9页) web期末作业设计网页_绿色环保大学生网页设计作业成品
- c++读取stl文件
- 上亿海量数据处理方法
- Arista创始人以VMware NSX的“开放框架”为目标瞄准思科
- 操作系统实验(2)—— Linux启动初始化过程设计探析实验
- 550什么意思_我给女孩子发520,她回550是什么意思?求各路大神指点?
- python精通大学_小白21天精通Python是如何做到的?
热门文章
- Centos 7 无法上网的解决办法
- 基础第三-MySQL-多表查询-索引-事务笔记
- android layout_gravity center,android: layout_gravity与gravity区别及动态设置
- CP2K入门教程分享
- 医院CRM客户关系管理系统的概念
- 初链:高性能去中心化公开账本
- Markdown 入门及语法详细指南 ★
- Linux下的常用命令(干货)
- 怎么关闭win7计算机一键还原系统,Win7卸载一键还原功能后还会保留在开机启动菜单中怎么办...
- python文件读写、字典、习题、模块包库、pycharm、面向对象