版權聲明:
[cpp] view plaincopy print?
????#include?"stdafx.h"??#include?<crtdbg.h>??#include?"LsColorRefDefine.h"?????????int?fnTestUse();??int?main(int?argc,?char?*?argv[])??{??????fnTestUse();??????getchar();??????return?0;??}??int?fnTestUse()??{??????printf("COLORREF基礎值定義/n");????????????COLORREF?clrBisque?=?LSREF?g_LsAllColorRef[6];??????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);????????????????????????????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;
}?
[cpp] view plaincopy print?
??????#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[]?=??????{??????????RGB(240,?248,?255),???????????RGB(250,?235,?215),???????????RGB(0,?255,?255),???????????RGB(127,?255,?212),???????????RGB(240,?255,?255),???????????RGB(245,?245,?220),???????????RGB(255,?228,?196),???????????RGB(0,?0,?0),???????????RGB(255,?235,?205),???????????RGB(0,?0,?255),???????????RGB(138,?43,?226),???????????RGB(165,?42,?42),???????????RGB(222,?184,?135),???????????RGB(95,?158,?160),???????????RGB(27,?255,?0),???????????RGB(210,?105,?30),???????????RGB(255,?127,?80),???????????RGB(100,?149,?237),???????????RGB(255,?248,?220),???????????RGB(220,?20,?60),???????????RGB(0,?255,?255),???????????RGB(0,?0,?139),???????????RGB(0,?139,?139),???????????RGB(184,?134,?11),???????????RGB(169,?169,?169),???????????RGB(0,?100,?0),???????????RGB(169,?169,?169),???????????RGB(189,?183,?107),???????????RGB(139,?0,?139),???????????RGB(85,?107,?47),???????????RGB(255,?140,?0),???????????RGB(153,?50,?204),???????????RGB(139,?0,?0),???????????RGB(233,?150,?122),???????????RGB(143,?188,?143),???????????RGB(72,?61,?139),???????????RGB(47,?79,?79),???????????RGB(47,?79,?79),???????????RGB(0,?206,?209),???????????RGB(148,?0,?211),???????????RGB(255,?20,?147),???????????RGB(0,?191,?255),???????????RGB(105,?105,?105),???????????RGB(105,?105,?105),???????????RGB(30,?144,?255),???????????RGB(178,?34,?34),???????????RGB(255,?250,?240),???????????RGB(34,?139,?34),???????????RGB(255,?0,?255),???????????RGB(220,?220,?220),???????????RGB(248,?248,?255),???????????RGB(255,?215,?0),???????????RGB(218,?165,?32),???????????RGB(128,?128,?128),???????????RGB(128,?128,?128),???????????RGB(0,?128,?0),???????????RGB(173,?255,?47),???????????RGB(240,?255,?240),???????????RGB(255,?105,?180),???????????RGB(205,?92,?92),???????????RGB(75,?0,?130),???????????RGB(255,?255,?240),???????????RGB(240,?230,?140),???????????RGB(230,?230,?250),???????????RGB(255,?240,?245),???????????RGB(124,?252,?0),???????????RGB(255,?250,?205),???????????RGB(173,?216,?230),???????????RGB(240,?128,?128),???????????RGB(224,?255,?255),???????????RGB(250,?250,?210),???????????RGB(211,?211,?211),???????????RGB(144,?238,?144),???????????RGB(211,?211,?211),???????????RGB(255,?182,?193),???????????RGB(255,?160,?122),???????????RGB(32,?178,?170),???????????RGB(135,?206,?250),???????????RGB(119,?136,?153),???????????RGB(119,?136,?153),???????????RGB(176,?196,?222),???????????RGB(255,?255,?224),???????????RGB(0,?255,?0),???????????RGB(50,?205,?50),???????????RGB(250,?240,?230),???????????RGB(255,?0,?255),???????????RGB(128,?0,?0),???????????RGB(102,?205,?170),???????????RGB(0,?0,?205),????????????RGB(186,?85,?211),???????????RGB(147,?112,?219),???????????RGB(60,?179,?113),???????????RGB(123,?104,?238),???????????RGB(0,?250,?154),???????????RGB(72,?209,?204),???????????RGB(199,?21,?133),???????????RGB(25,?25,?112),???????????RGB(245,?255,?250),???????????RGB(255,?228,?225),???????????RGB(255,?228,?181),???????????RGB(255,?222,?173),???????????RGB(0,?0,?128),???????????RGB(253,?245,?230),???????????RGB(128,?128,?0),???????????RGB(107,?142,?35),???????????RGB(255,?165,?0),???????????RGB(255,?69,?0),???????????RGB(218,?112,?214),???????????RGB(238,?232,?170),???????????RGB(152,?251,?152),???????????RGB(175,?238,?238),???????????RGB(219,?112,?147),???????????RGB(255,?239,?213),???????????RGB(255,?218,?185),???????????RGB(205,?133,?63),???????????RGB(255,?192,?203),???????????RGB(221,?160,?221),???????????RGB(176,?224,?230),???????????RGB(128,?0,?128),???????????RGB(255,?0,?0),???????????RGB(188,?143,?143),???????????RGB(65,?105,?225),???????????RGB(139,?69,?19),???????????RGB(250,?128,?114),???????????RGB(244,?164,?96),???????????RGB(46,?139,?87),???????????RGB(255,?245,?238),???????????RGB(160,?82,?45),???????????RGB(192,?192,?192),???????????RGB(135,?206,?235),???????????RGB(106,?90,?205),???????????RGB(112,?128,?144),???????????RGB(112,?128,?144),???????????RGB(255,?250,?250),???????????RGB(0,?255,?127),???????????RGB(70,?130,?180),???????????RGB(210,?180,?140),???????????RGB(0,?128,?128),???????????RGB(216,?191,?216),???????????RGB(255,?99,?71),???????????RGB(64,?224,?208),???????????RGB(238,?130,?238),???????????RGB(245,?222,?179),???????????RGB(255,?255,?255),???????????RGB(245,?245,?245),???????????RGB(255,?255,?0),???????????RGB(154,?205,?50),???????};??????????????????????????????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),??????};????????????????????????????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),??????};???????????????????COLORREF?const?g_LsCyanColorRef[]?=??????{??????????RGB(127,?255,?212),??????????RGB(109,?207,?246),??????????RGB(0,?255,?255),??????????RGB(64,?244,?208),??????};?????????????????????????????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),??????};???????????????????COLORREF?const?g_LsGrayColorRef[]?=??????{??????????RGB(128,?138,?135),??????????RGB(112,?128,?144),??????????RGB(128,?128,?105),??????????RGB(128,?128,?128),??????};??????????????????????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),??????};???????????????????COLORREF?const?g_LsOrangeColorRef[]?=??????{??????????RGB(255,?97,?3),??????????RGB(237,?145,?33),??????????RGB(255,?69,?0),??????????RGB(255,?128,?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),??????};?????????????????????????????????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),??????};???????????????????????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),??????};???????????????????????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??}??#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基础定义的全部內容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。