I have created this file from W3School's list of 140 named colors for iwb. It took a while as thay are listed in RGB format and I converted them to BGR to be compatible with iwBasic.
$IfnDef ColorDef140
$Define ColorDef140
/* *************** This is best viewed in NOTEPAD with COURIER NEW regular type size 10 *************** */
/* I've included both spellings of Gray in all colors using it. (Gray and Grey) Use whichever you like. */
/* **** The color "Tan" is purposely mispelled "Taan" so it won't be confused with "TAN" (Tangent) **** */
Const AliceBlue = 0xFFF8F0 :DarkTurquoise = 0xD1CE00 :LightSeaGreen = 0xAAB220 :Peru = 0x3F85CD
Const AntiqueWhite = 0xD7EBFA :DarkViolet = 0xD30094 :LightSkyBlue = 0xFACE87 :Pink = 0xCBC0FF
Const Aqua = 0xFFFF00 :DeepPink = 0x9314FF :LightSlateGray = 0x998877 :Plum = 0xDDA0DD
Const AquaMarine = 0xD47FFF :DeepSkyBlue = 0xFFBF00 :LightSlateGrey = 0x998877 :PowderBlue = 0xE6E0B0
Const Azure = 0xFFFFF0 :DimGray = 0x696969 :LightSteelBlue = 0xDEC4B0 :Purple = 0x800080
Const Beige = 0xDCF5F5 :DimGrey = 0x696969 :LightYellow = 0xE0FFFF :RebeccaPurple = 0x993366
Const Bisque = 0xC4E4FF :DodgerBlue = 0xFF901E :Lime = 0x00FF00 :Red = 0x0000FF
Const Black = 0x000000 :FireBrick = 0x2222B2 :LimeGreen = 0x32CD32 :RosyBrown = 0x8F8FBC
Const BlanchedAlmond = 0xCDEBFF :FloralWhite = 0xF0FAFF :Linen = 0xE6F0FA :RoyalBlue = 0xE16941
Const Blue = 0xFF0000 :ForestGreen = 0x228B22 :Magenta = 0xFF00FF :SaddleBrown = 0x13458B
Const BlueViolet = 0xE22B8A :Fuchsia = 0xFF00FF :Maroon = 0x000080 :Salmon = 0x7280FA
Const Brown = 0x2A2AA5 :Gainsboro = 0xDCDCDC :MediumAquaMarine = 0xAACD66 :SandyBrown = 0x60A4F4
Const BurlyWood = 0x87B8DE :GhostWhite = 0xFFF8F8 :MediumBlue = 0xCD0000 :SeaGreen = 0x578B2E
Const CadetBlue = 0xA09E5F :Gold = 0x00D7FF :MediumOrchid = 0xD355BA :SeaShell = 0xEEF5FF
Const Charteuse = 0x00FF7F :GoldenRod = 0x20A5DA :MediumPurple = 0xD87093 :Sienna = 0x2D52A0
Const Chocolate = 0x1E69D2 :Gray = 0x808080 :MediumSeaGreen = 0x71B33C :Silver = 0xC0C0C0
Const Coral = 0x507FFF :Grey = 0x808080 :MediumSlateBlue = 0xEE687B :SkyBlue = 0xEBCE87
Const CornFlowerBlue = 0xED9564 :Green = 0x008000 :MediumSpringGreen = 0x9AFA00 :SlateBlue = 0xCD5A6A
Const Cornsilk = 0xDCF8FF :GreenYellow = 0x2FFFAD :MediumTurquoise = 0xCCD148 :SlateGray = 0x908070
Const Crimson = 0x3C14DC :HoneyDew = 0xF0FFF0 :MediumVioletRed = 0x8515C7 :SlateGrey = 0x908070
Const Cyan = 0xFFFF00 :HotPink = 0xB469FF :MidhightBlue = 0x701919 :Snow = 0xFAFAFF
Const DarkBlue = 0x8B0000 :IndianRed = 0x5C5CCD :MintCream = 0xFAFFF5 :SpringGreen = 0x7FFF00
Const DarkCyan = 0x8B8B00 :Indigo = 0x800048 :MistyRose = 0xE1E4FF :SteelBlue = 0xB48246
Const DarkGoldenRod = 0x0B86B8 :Ivory = 0xF0FFFF :Moccasin = 0xB5E4FF :Taan = 0x8CB4D2
Const DarkGray = 0xA9A9A9 :Khaki = 0x8CE6F0 :NavajoWhite = 0xADDEFF :Teal = 0x808000
Const DarkGrey = 0xA9A9A9 :Lavender = 0xFAE6E6 :Navy = 0x800000 :Thistle = 0xD8BFD8
Const DarkGreen = 0x006400 :LavenderBlush = 0xF5F0FF :OldLace = 0xE6F5FD :Tomato = 0x3463FF
Const DarkKhaki = 0x6BB7BD :LawnGreen = 0x00FC7C :Olive = 0x008080 :Turquoise = 0xD0E040
Const DarkMagenta = 0x8B008B :LemonChiffon = 0xCDFAFF :OliveDrab = 0x238E6B :Violet = 0xEE82EE
Const DarkOliveGreen = 0x2F6B55 :LightBlue = 0xE6D8AD :Orange = 0x00A5FF :Wheat = 0xB2DEF5
Const DarkOrange = 0x008CFF :LightCoral = 0x8080F0 :OrangeRed = 0x0045FF :White = 0xFFFFFF
Const DarkOrchid = 0xCC3299 :LightCyan = 0xFFFFE0 :Orchid = 0xD670DA :WhiteSmoke = 0xF5F5F5
Const DarkRed = 0x00008B :LightGoldenRod = 0xD2FAFA :PaleGoldenRod = 0xAAE8EE :Yellow = 0x00FFFF
Const DarkSalmon = 0x7A96E9 :LightGray = 0xD3D3D3 :PaleGreen = 0x98FB98 :YellowGreen = 0x32CD9A
Const DarkSeaGreen = 0x8FBC8F :LightGrey = 0xD3D3D3 :PaleTurquoise = 0xEEEEAF
Const DarkSlateBlue = 0x8B3D48 :LightGreen = 0x90EE90 :PaleVioletRed = 0x9270DB
Const DarkSlateGray = 0x4F4F2F :LightPink = 0xC1B6FF :PapayaWhip = 0xD5EFFF
Const DarkSlateGrey = 0x4F4F2F :LightSalmon = 0x7AA0FF :PeachPuff = 0xB9DAFF
$EndIf
All I can say is WOW and THANK YOU.
Should save many people lots of time.
Thanks,
Bill
sam.cogswell,
You're supposed to be the Newbie, not me. But, I'm going to ask a newbie question. What do you name the inc file so that everybody is consistent?
Bill
I saved mine as 'ColorDef140.inc'. Just seemed logical.
Bill
Bill,
To tell you the truth, I did the same for the same reason. But him being a newbie, I wasn't positive. He might use it in one of his program but with a different name.
Bill
Yes, that's what I named it. Named colors are much easier to remember. Especially when you have to modify it years later.
::)
I agree, I have one file for Console colors and another for Windows colors. However, I don't have near as many defined as you do. Of course, that could be that since I don't see the difference I stayed with some of the basic colors. But it is really cool to have more defined.
Bill
I normally use two. One I use in every program and would contain the color constants you so kindly provided. The second would be for the specific program.