delphi颜色

2016-08-22 10:23:28来源:http://jxyx521.blog.51cto.com/7643111/1303476作者:jyxy521人点击


转自:http://www.cnblogs.com/jshchg/archive/2011/09/20/2182603.html

http://www.delphitop.com/html/tuxiang/889.html

//全以红色举例://1. RGB 模式:

Self.Color := $0000ff;
//不过和HTML中的 #ff0000 是反的,应该叫 BGR。
//2. RGB 分值,譬如:
Self.Color := RGB(255,0,0);
//3. Delphi 中的标准模式:
Self.Color := $000000ff;
//其中低3位字节代表RGB(BGR)相应的颜色;//如果最高位字节是$00,则表示用系统调色板中最相近的颜色;//最高位字节是$01,则表示用当前调色板中最相近的颜色匹配;//最高位字节是$02,则用当前设备描述表中逻辑调色板的次相近颜色匹配。
//4. 整数:
Self.Color := 255;
//十六进制转换来的整数。
//5. 颜色常量:
Self.Color := clRed;
//Delphi 预定义的常量有:

clSystemColor = $FF000000;

clScrollBar = TColor(clSystemColor or COLOR_SCROLLBAR);
cl TColor(clSystemColoror COLOR_BACKGROUND);
clActiveCaption = TColor(clSystemColor or COLOR_ACTIVECAPTION);
clInactiveCaption = TColor(clSystemColor or COLOR_INACTIVECAPTION);
clMenu = TColor(clSystemColor or COLOR_MENU);
clWindow = TColor(clSystemColor or COLOR_WINDOW);
clWindowFrame = TColor(clSystemColor or COLOR_WINDOWFRAME);
clMenuText = TColor(clSystemColor or COLOR_MENUTEXT);
clWindowText = TColor(clSystemColor or COLOR_WINDOWTEXT);
clCaptionText = TColor(clSystemColor or COLOR_CAPTIONTEXT);
clActiveBorder = TColor(clSystemColor or COLOR_ACTIVEBORDER);
clInactiveBorder = TColor(clSystemColor or COLOR_INACTIVEBORDER);
clAppWorkSpace = TColor(clSystemColor or COLOR_APPWORKSPACE);
clHighlight = TColor(clSystemColor or COLOR_HIGHLIGHT);
clHighlightText = TColor(clSystemColor or COLOR_HIGHLIGHTTEXT);
clBtnFace = TColor(clSystemColor or COLOR_BTNFACE);
clBtnShadow = TColor(clSystemColor or COLOR_BTNSHADOW);
clGrayText = TColor(clSystemColor or COLOR_GRAYTEXT);
clBtnText = TColor(clSystemColor or COLOR_BTNTEXT);
clInactiveCaptionText = TColor(clSystemColor or COLOR_INACTIVECAPTIONTEXT);
clBtnHighlight = TColor(clSystemColor or COLOR_BTNHIGHLIGHT);
cl3DDkShadow = TColor(clSystemColor or COLOR_3DDKSHADOW);
cl3DLight = TColor(clSystemColor or COLOR_3DLIGHT);
clInfoText = TColor(clSystemColor or COLOR_INFOTEXT);
clInfoBk = TColor(clSystemColor or COLOR_INFOBK);
clHotLight = TColor(clSystemColor or COLOR_HOTLIGHT);
clGradientActiveCaption = TColor(clSystemColor or COLOR_GRADIENTACTIVECAPTION);
clGradientInactiveCaption = TColor(clSystemColor or COLOR_GRADIENTINACTIVECAPTION);
clMenuHighlight = TColor(clSystemColor or COLOR_MENUHILIGHT);
clMenuBar = TColor(clSystemColor or COLOR_MENUBAR);

clBlack = TColor($000000);
clMaroon = TColor($000080);
clGreen = TColor($008000);
clOlive = TColor($008080);
clNavy = TColor($800000);
clPurple = TColor($800080);
clTeal = TColor($808000);
clGray = TColor($808080);
clSilver = TColor($C0C0C0);
clRed = TColor($0000FF);
clLime = TColor($00FF00);
clYellow = TColor($00FFFF);
clBlue = TColor($FF0000);
clFuchsia = TColor($FF00FF);
clAqua = TColor($FFFF00);
clLtGray = TColor($C0C0C0);
clDkGray = TColor($808080);
clWhite = TColor($FFFFFF);
StandardColorsCount = 16;

clMoneyGreen = TColor($C0DCC0);
clSkyBlue = TColor($F0CAA6);
clCream = TColor($F0FBFF);
clMedGray = TColor($A4A0A0);
ExtendedColorsCount = 4;

clNone = TColor($1FFFFFFF);
clDefault = TColor($20000000);

{ The following "cl" values come from the Web Named Color palette and are stored in the Windows COLORREF byte order x00bbggrr }
clWebSnow = $FAFAFF;
clWebFloralWhite = $F0FAFF;
clWebLavenderBlush = $F5F0FF;
clWebOldLace = $E6F5FD;
clWebIvory = $F0FFFF;
clWebCornSilk = $DCF8FF;
clWebBeige = $DCF5F5;
clWebAntiqueWhite = $D7EBFA;
clWebWheat = $B3DEF5;
clWebAliceBlue = $FFF8F0;
clWebGhostWhite = $FFF8F8;
clWebLavender = $FAE6E6;
clWebSeashell = $EEF5FF;
clWebLightYellow = $E0FFFF;
clWebPapayaWhip = $D5EFFF;
clWebNavajoWhite = $ADDEFF;
clWebMoccasin = $B5E4FF;
clWebBurlywood = $87B8DE;
clWebAzure = $FFFFF0;
clWebMintcream = $FAFFF5;
clWebHoneydew = $F0FFF0;
clWebLinen = $E6F0FA;
clWebLemonChiffon = $CDFAFF;
clWebBlanchedAlmond = $CDEBFF;
clWebBisque = $C4E4FF;
clWebPeachPuff = $B9DAFF;
clWebTan = $8CB4D2;
// yellows/reds yellow -> rosybrown
clWebYellow = $00FFFF;
clWebDarkOrange = $008CFF;
clWebRed = $0000FF;
clWebDarkRed = $00008B;
clWebMaroon = $000080;
clWebIndianRed = $5C5CCD;
clWebSalmon = $7280FA;
clWebCoral = $507FFF;
clWebGold = $00D7FF;
clWebTomato = $4763FF;
clWebCrimson = $3C14DC;
clWebBrown = $2A2AA5;
clWebChocolate = $1E69D2;
clWebSandyBrown = $60A4F4;
clWebLightSalmon = $7AA0FF;
clWebLightCoral = $8080F0;
clWebOrange = $00A5FF;
clWebOrangeRed = $0045FF;
clWebFirebrick = $2222B2;
clWebSaddleBrown = $13458B;
clWebSienna = $2D52A0;
clWebPeru = $3F85CD;
clWebDarkSalmon = $7A96E9;
clWebRosyBrown = $8F8FBC;
// greens palegoldenrod -> darkseagreen
clWebPaleGoldenrod = $AAE8EE;
clWebLightGoldenrodYellow = $D2FAFA;
clWebOlive = $008080;
clWebForestGreen = $228B22;
clWebGreenYellow = $2FFFAD;
clWebChartreuse = $00FF7F;
clWebLightGreen = $90EE90;
clWebAquamarine = $D4FF7F;
clWebSeaGreen = $578B2E;
clWebGoldenRod = $20A5DA;
clWebKhaki = $8CE6F0;
clWebOliveDrab = $238E6B;
clWebGreen = $008000;
clWebYellowGreen = $32CD9A;
clWebLawnGreen = $00FC7C;
clWebPaleGreen = $98FB98;
clWebMediumAquamarine = $AACD66;
clWebMediumSeaGreen = $71B33C;
clWebDarkGoldenRod = $0B86B8;
clWebDarkKhaki = $6BB7BD;
clWebDarkOliveGreen = $2F6B55;
clWebDarkgreen = $006400;
clWebLimeGreen = $32CD32;
clWebLime = $00FF00;
clWebSpringGreen = $7FFF00;
clWebMediumSpringGreen = $9AFA00;
clWebDarkSeaGreen = $8FBC8F;
// greens/blues lightseagreen -> navy
clWebLightSeaGreen = $AAB220;
clWebPaleTurquoise = $EEEEAF;
clWebLightCyan = $FFFFE0;
clWebLightBlue = $E6D8AD;
clWebLightSkyBlue = $FACE87;
clWebCornFlowerBlue = $ED9564;
clWebDarkBlue = $8B0000;
clWebIndigo = $82004B;
clWebMediumTurquoise = $CCD148;
clWebTurquoise = $D0E040;
clWebCyan = $FFFF00; //clWebAqua
clWebAqua = $FFFF00;
clWebPowderBlue = $E6E0B0;
clWebSkyBlue = $EBCE87;
clWebRoyalBlue = $E16941;
clWebMediumBlue = $CD0000;
clWebMidnightBlue = $701919;
clWebDarkTurquoise = $D1CE00;
clWebCadetBlue = $A09E5F;
clWebDarkCyan = $8B8B00;
clWebTeal = $808000;
clWebDeepskyBlue = $FFBF00;
clWebDodgerBlue = $FF901E;
clWebBlue = $FF0000;
clWebNavy = $800000;
// violets/pinks darkviolet -> pink
clWebDarkViolet = $D30094;
clWebDarkOrchid = $CC3299;
clWebMagenta = $FF00FF; //clWebFuchsia
clWebFuchsia = $FF00FF;
clWebDarkMagenta = $8B008B;
clWebMediumVioletRed = $8515C7;
clWebPaleVioletRed = $9370DB;
clWebBlueViolet = $E22B8A;
clWebMediumOrchid = $D355BA;
clWebMediumPurple = $DB7093;
clWebPurple = $800080;
clWebDeepPink = $9314FF;
clWebLightPink = $C1B6FF;
clWebViolet = $EE82EE;
clWebOrchid = $D670DA;
clWebPlum = $DDA0DD;
clWebThistle = $D8BFD8;
clWebHotPink = $B469FF;
clWebPink = $CBC0FF;
// blue/gray/black lightsteelblue -> black
clWebLightSteelBlue = $DEC4B0;
clWebMediumSlateBlue = $EE687B;
clWebLightSlateGray = $998877;
clWebWhite = $FFFFFF;
clWebLightgrey = $D3D3D3;
clWebGray = $808080;
clWebSteelBlue = $B48246;
clWebSlateBlue = $CD5A6A;
clWebSlateGray = $908070;
clWebWhiteSmoke = $F5F5F5;
clWebSilver = $C0C0C0;
clWebDimGray = $696969;
clWebMistyRose = $E1E4FF;
clWebDarkSlateBlue = $8B3D48;
clWebDarkSlategray = $4F4F2F;
clWebGainsboro = $DCDCDC;
clWebDarkGray = $A9A9A9;
clWebBlack = $000000;

WebColorsCount = 140; { Two of which are duplicates Aqua/Cyan Fuchsia/Magenta }

//颜色列表

颜色样本 十六进制 名称与注释#ffb3a7粉红:即浅红色。别称:妃色 杨妃色 湘妃色 妃红色。#ed5736妃色:妃红色。古同“绯”,粉红色。杨妃色、湘妃色、粉红皆同义。#f00056品红:比大红浅的红色。#f47983桃红:桃花的颜色,比粉红略鲜润的颜色。#db5a6b海棠红:淡紫红色、较桃红色深一些,是非常妩媚娇艳的颜色。#f20c00石榴红:石榴花的颜色,高色度和纯度的红色。#c93756樱桃色:鲜红色。#f05654银红:银朱和粉红色颜料配成的颜色。多用来形容有光泽的各种红色,尤指有光泽浅红。#ff2121大红:正红色,三原色中的红,传统的中国红,又称绛色。#8c4356绛紫:紫中略带红的颜色。#c83c23绯红:艳丽的深红。#9d2933胭脂:1、女子装扮时用的胭脂的颜色;2、国画暗红色颜料。#ff4c00朱红:朱砂的颜色,比大红活泼,也称铅朱、朱色、丹色。#ff4e20丹:丹砂的鲜艳红色。#f35336彤:赤色。#cb3a56茜色:茜草染的色彩,呈深红色。#ff2d51火红:火焰的红色,赤色。#c91f37赫赤:深红,火红。泛指赤色、火红色。#ef7a82嫣红:鲜艳的红色。#ff0097洋红:色橘红。#ff3300炎:引申为红色。#c3272b赤:本义火的颜色,即红色。#a98175绾:绛色;浅绛色。#c32136枣红:即深红。#b36d61檀:浅红色,浅绛色。#be002f殷红:发黑的红色。#dc3023酡红:像饮酒后脸上泛现的红色,泛指脸红。#f9906f酡颜:饮酒脸红的样子。亦泛指脸红色。#fff143鹅黄:淡黄色(鹅嘴的颜色,高明度微偏红黄色)。#faff72鸭黄:小鸭毛的黄色。#eaff56樱草色:淡黄色。#ffa631杏黄:成熟杏子的黄色。#ff8c31杏红:成熟杏子偏红色的一种颜色。#ff8936橘黄:柑橘的黄色。#ffa400橙黄:柑橘的黄色。#ff7500橘红:柑橘皮所呈现的红色。#ffc773姜黄:中药名。别名黄姜。为姜科植物姜黄的根茎。又指人脸色不正,呈黄白色。#f0c239缃色:浅黄色。#fa8c35橙色:界于红色和黄色之间的混合色。#b35c44茶色:一种比栗色稍红的棕橙色至浅棕色。#a88462驼色:一种比咔叽色稍红而微淡、比肉桂色黄而稍淡和比核桃棕色黄而暗的浅黄棕色。#c89b40昏黄:形容天色、灯光等呈幽暗的黄色。#60281e栗色:栗壳的颜色。即紫黑色。#b25d25棕色:棕毛的颜色,即褐色。1、在红色和黄色之间的任何一种颜色;2、适中的暗淡和适度的浅黑。#827100棕绿:绿中泛棕色的一种颜色。#7c4b00棕黑:深棕色。#9b4400棕红:红褐色。#ae7000棕黄:浅褐色。#9c5333赭:赤红如赭土的颜料,古人用以饰面。#955539赭色:红色、赤红色。#6e511e褐色:黄黑色。#d3b17d枯黄:干枯焦黄。#e29c45黄栌:一种落叶灌木,花黄绿色,叶子秋天变成红色。木材黄色可做染料。#896c39秋色:1、中常橄榄棕色,它比一般橄榄棕色稍暗,且稍稍绿些;2、古以秋为金,其色白,故代指白色。#d9b611秋香色:浅橄榄色 浅黄绿色。#bddd22嫩绿:像刚长出的嫩叶的浅绿色。#c9dd22柳黄:像柳树芽那样的浅黄色。#afdd22柳绿:柳叶的青绿色。#789262竹青:竹子的绿色。#a3d900葱黄:黄绿色,嫩黄色。#9ed900葱绿:1、浅绿又略显微黄的颜色;2、草木青翠的样子。#0eb83a葱青:淡淡的青绿色。#0eb83a葱倩:青绿色。#0aa344青葱:翠绿色,形容植物浓绿。#00bc12油绿:光润而浓绿的颜色。#0c8918绿沈(沉):深绿。#1bd1a5碧色:1、青绿色;2、青白色,浅蓝色。#2add9c碧绿:鲜艳的青绿色。#2add9c青碧:鲜艳的青蓝色。#3de1ad翡翠色:1、翡翠鸟羽毛的青绿色;2、翡翠宝石的颜色。#40de5a草绿:绿而略黄的颜色。#00e09e青色:1、一类带绿的蓝色,中等深浅,高度饱和;2、本义是蓝色;3、一般指深绿色;4、也指黑色;5、四色印刷中的一色;6、特指三补色中的一色。#00e079青翠:鲜绿。#c0ebd7青白:白而发青,尤指脸没有血色。#e0eee8鸭卵青:淡青灰色,极淡的青绿色。#bbcdc5蟹壳青:深灰绿色。#424c50鸦青:鸦羽的颜色。即黑而带有紫绿光的颜色。#00e500绿色:1、在光谱中介于蓝与黄之间的那种颜色;2、本义是青中带黄的颜色;3、引申为黑色,如绿鬓:乌黑而光亮的鬓发,代指为青春年少的容颜。#9ed048豆绿:浅黄绿色。#96ce54豆青:浅青绿色。#7bcfa6石青:淡灰绿色。#2edfa3玉色:玉的颜色,高雅的淡绿、淡青色。#7fecad缥:绿色而微白。#a4e2c6艾绿:艾草的颜色。偏苍白的绿色。#21a675松柏绿:经冬松柏叶的深绿。#057748松花绿:亦作“松花”、“松绿”。偏黑的深绿色,墨绿。#bce672浅黄绿色:松树花粉的颜色。《红楼梦》中提及松花配桃红为娇艳。#44cef6蓝:三原色的一种。像晴天天空的颜色。#177cb0靛青:也叫“蓝靛”。用蓼蓝叶泡水调和与石灰沉淀所得的蓝色染料。呈深蓝绿色。#065279靛蓝:由植物(例如靛蓝或菘蓝属植物)得到的蓝色染料。#3eede7碧蓝:青蓝色。#70f3ff蔚蓝:类似晴朗天空的颜色的一种蓝色。#4b5cc4宝蓝:鲜艳明亮的蓝色。#a1afc9蓝灰色:一种近于灰略带蓝的深灰色。#2e4e7e藏青:蓝而近黑。#2e4e7e藏蓝:蓝里略透红色。#4a4266黛:青黑色的颜料。古代女子用以画眉。#426666黛绿:墨绿。#425066黛蓝:深蓝色。#574266黛紫:深紫色。#8d4bbb紫色:蓝和红组成的颜色。古人以紫为祥瑞的颜色。代指与帝王、皇宫有关的事物。#815463紫酱:浑浊的紫色。#815476酱紫:紫中略带红的颜色。#4c221b紫檀:檀木的颜色,也称乌檀色、乌木色。#003371绀青、绀紫:纯度较低的深紫色。#56004f紫棠:黑红色。#801dae青莲:偏蓝的紫色。#4c8dae群青:深蓝色。#b0a4e3雪青:浅蓝紫色。#cca4e3丁香色:紫丁香的颜色,浅浅的紫色,很娇柔淡雅的色彩。#edd1d8藕色:浅灰而略带红的颜色。#e4c6d0藕荷色:浅紫而略带红的颜色。#75878a苍色:即各种颜色掺入黑色后的颜色。#ffffff精白:纯白、洁白、净白、粉白。#fffbf0象牙白:乳白色。#f0fcff雪白:如雪般洁白。#d6ecf0月白:淡蓝色。#f2ecde缟:白色。#e0f0e9素:白色、无色。#f3f9f1荼白:如荼之白色。#e9f1f6霜色:白霜的颜色。#c2ccd0花白:白色和黑色混杂的。斑白的、夹杂有灰色的白。#fcefe8鱼肚白:似鱼腹部的颜色,多指黎明时东方的天色颜色。#e3f9fd莹白:晶莹洁白。#808080灰色:黑色和白色混和成的一种颜色。#eedeb0牙色:与象牙相似的淡黄色。#f0f0f4铅白:铅粉的白色。铅粉,国画颜料,日久易氧化“返铅”变黑。铅粉在古时用以搽脸的化妆品。#622a1d玄色:赤黑色,黑中带红的颜色,又泛指黑色。#3d3b4f玄青:深黑色。#725e82乌色:暗而呈黑的颜色。#392f41乌黑:深黑、漆黑。#161823漆黑:非常黑的。#50616d墨色:即黑色。#758a99墨灰:即黑灰。#000000黑色:亮度最低的非彩色的或消色差的物体的颜色;最暗的灰色;与白色截然不同的消色差的颜色;被认为特别属于那些既不能反射、又不能透过能使人感觉到的微小入射光的物体,任何亮度很低的物体颜色。#493131缁色:帛黑色。#312520煤黑、象牙黑:都是黑,不过有冷暖之分。#5d513c黧:黑中带黄的颜色。#75664d黎:黑中带黄似黎草色。#6b6882黝:本义为淡黑色或微青黑色。#665757黝黑:(皮肤暴露在太阳光下而晒成的)青黑色。#41555d黯:深黑色、泛指黑色。#f2be45赤金:足金的颜色。#eacd76金色:平均为深黄色带光泽的颜色。#e9e7ef银白:带银光的白色。#bacac6老银:金属氧化后的色彩。#bf242a[国画用色]银朱:呈暗粉色。#9d2933[国画用色]胭脂:色暗红。用红蓝花、茜草、紫梗三种植物制成的颜料,年代久则有褪色的现象。#ff461f[国画用色]朱砂:色朱红。用以画花卉、禽鸟羽毛。#f36838[国画用色]朱膘:色橘红。明度比朱砂高,彩度比朱砂低。用以画花卉。#845a33[国画用色]赭石:色红褐。用以画山石、树干、老枝叶。#1685a9[国画用色]石青:色青,依深浅分为-头青、二青、三青。用以画叶或山石。#16a951[国画用色]石绿:依深浅分为-头绿、二绿、三绿。用以画山石、树干、叶、点苔等。#fff2df[国画用色]胡粉:亦称白粉,色白,有蛤粉和铅粉两种。用以画白花、鸟,或调配其他颜料使用。#003472[国画用色]花青:色藏青。用以画枝叶、山石、水波等。用蓼蓝或大蓝的叶子制成蓝靛,再提炼出来的青色颜料,蓝绿色或藏蓝色。用途相当广,可调藤黄成草绿或嫩绿色。广花,颜料。即广东产的花青。#ffb61e[国画用色]藤黄:色明黄。用以画花卉、枝叶。藤黄:明黄色。南方热带林中的海藤树,常绿乔木,茎高达二十米,从其树皮凿孔,流出黄色树脂,以竹筒承接,干透可作国画颜料。#845a33[国画用色]赭石色:暗棕色矿物,用做颜料。#ffc64b[国画用色]雌黄:矿物名。成分是三硫化二砷(As2S3)橙黄色,半透明,可用来制颜料。古人用雌黄来涂改文字,因此称乱改文字、乱发议论为“妄下雌黄”,称不顾事实、随口乱说为“信口雌黄”。#e9bb1d[国画用色]石黄:国画颜料,即雄黄。#ff4777[国画用色]洋红:色橘红。用以画花卉。

最新文章

123

最新摄影

微信扫一扫

第七城市微信公众平台