Color object
The Color object allows you to access predefined colors and the bot's color settings.
Contents
Development
This object was added to StealthBot in 2.7 by FiftyToo.
How to use
Example: Get the value of a property of the color object.
Value = Color.PropertyName
Properties
Color by name properties
Many properties are exposed for returning a predefined color. Most browsers support all of these predefined colors as values for colors. The .NET run-time also defines the same list of color properties in the System.Drawing.Color structure.
List of colors
Here is a list of all available predefined color properties, and the Long value that they return, defining that color.
- .AliceBlue = 16775408
- .AntiqueWhite = 14150650
- .Aqua = 16776960
- .Aquamarine = 13959039
- .Azure = 16777200
- .Beige = 14480885
- .Bisque = 12903679
- .Black = 0
- .BlanchedAlmond = 13495295
- .Blue = 16711680
- .BlueViolet = 14822282
- .Brown = 2763429
- .BurlyWood = 8894686
- .CadetBlue = 10526303
- .Chartreuse = 65407
- .Chocolate = 1993170
- .Coral = 5275647
- .CornflowerBlue = 15570276
- .Cornsilk = 14481663
- .Crimson = 3937500
- .Cyan = 16776960
- .DarkBlue = 9109504
- .DarkCyan = 9145088
- .DarkGoldenRod = 755384
- .DarkGray = 11119017
- .DarkGreen = 25600
- .DarkKhaki = 7059389
- .DarkMagenta = 9109643
- .DarkOliveGreen = 3107669
- .DarkOrange = 36095
- .DarkOrchid = 13382297
- .DarkRed = 139
- .DarkSalmon = 8034025
- .DarkSeaGreen = 9419919
- .DarkSlateBlue = 9125192
- .DarkSlateGray = 5197615
- .DarkTurquoise = 13749760
- .DarkViolet = 13828244
- .DeepPink = 9639167
- .DeepSkyBlue = 16760576
- .DimGray = 6908265
- .DodgerBlue = 16748574
- .FireBrick = 2237106
- .FloralWhite = 15792895
- .ForestGreen = 2263842
- .Fuchsia = 16711935
- .Gainsboro = 14474460
- .GhostWhite = 16775416
- .Gold = 55295
- .GoldenRod = 2139610
- .Gray = 8421504
- .Green = 32768
- .GreenYellow = 3145645
- .HoneyDew = 15794160
- .HotPink = 11823615
- .IndianRed = 6053069
- .Indigo = 8519755
- .Ivory = 15794175
- .Khaki = 9234160
- .Lavender = 16443110
- .LavenderBlush = 16118015
- .LawnGreen = 64636
- .LemonChiffon = 13499135
- .LightBlue = 15128749
- .LightCoral = 8421616
- .LightCyan = 16777184
- .LightGoldenRodYellow = 13826810
- .LightGray = 13882323
- .LightGreen = 9498256
- .LightPink = 12695295
- .LightSalmon = 8036607
- .LightSeaGreen = 11186720
- .LightSkyBlue = 16436871
- .LightSlateGray = 10061943
- .LightSteelBlue = 14599344
- .LightYellow = 14745599
- .Lime = 65280
- .LimeGreen = 3329330
- .Linen = 15134970
- .Magenta = 16711935
- .Maroon = 128
- .MediumAquaMarine = 11193702
- .MediumBlue = 13434880
- .MediumOrchid = 13850042
- .MediumPurple = 14184595
- .MediumSeaGreen = 7451452
- .MediumSlateBlue = 15624315
- .MediumSpringGreen = 10156544
- .MediumTurquoise = 13422920
- .MediumVioletRed = 8721863
- .MidnightBlue = 7346457
- .MintCream = 16449525
- .MistyRose = 14804223
- .Moccasin = 11920639
- .NavajoWhite = 11394815
- .Navy = 8388608
- .OldLace = 15136253
- .Olive = 32896
- .OliveDrab = 2330219
- .Orange() = 42495
- .OrangeRed = 17919
- .Orchid = 14053594
- .PaleGoldenRod = 11200750
- .PaleGreen = 10025880
- .PaleTurquoise = 15658671
- .PaleVioletRed = 9662680
- .PapayaWhip = 14020607
- .PeachPuff = 12180223
- .Peru = 4163021
- .Pink = 13353215
- .Plum = 14524637
- .PowderBlue = 15130800
- .Purple = 8388736
- .Red = 255
- .RosyBrown = 9408444
- .RoyalBlue = 14772545
- .SaddleBrown = 1262987
- .Salmon = 7504122
- .SandyBrown = 6333684
- .SeaGreen = 5737262
- .SeaShell = 15660543
- .Sienna = 2970272
- .Silver = 12632256
- .SkyBlue = 15453831
- .SlateBlue = 13458026
- .SlateGray = 9470064
- .Snow = 16448255
- .SpringGreen = 8388352
- .SteelBlue = 11829830
- .Tan = 9221330
- .Teal = 8421376
- .Thistle = 14204888
- .Tomato = 4678655
- .Turquoise = 13688896
- .Violet = 15631086
- .Wheat = 11788021
- .White = 16777215
- .WhiteSmoke = 16119285
- .Yellow = 65535
- .YellowGreen = 3329434
To help you decide which color to use, a subroutine called List() was added to list all of the available colors to the console in the color they define.
Functions
There are two functions available from this object, the .List() function and the .Hex(hexcolor) function.
Hex function
This function returns a color from the provided CSS hex string. The format can be either "#" (number sign) followed by six hexadecimal digits or just six hexadecimal digits.
List function
The list function lists all of the predefined colors to the console in their color. Use this as a way to select the color you want by using the exec command.
Here is the output of /exec Color.List from inside the bot: Template:BotText