Color object

From StealthBot Wiki
Jump to: navigation, search

The Color object allows you to access predefined colors and the bot's color settings.

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:

/exec Color.List
[03:02:14 PM] AliceBlue (16775408)

[03:02:14 PM] AntiqueWhite (14150650)
[03:02:14 PM] Aqua (16776960)
[03:02:14 PM] Aquamarine (13959039)
[03:02:14 PM] Azure (16777200)
[03:02:14 PM] Beige (14480885)
[03:02:14 PM] Bisque (12903679)
[03:02:14 PM] Black (0) (black)
[03:02:14 PM] BlanchedAlmond (13495295)
[03:02:14 PM] Blue (16711680)
[03:02:14 PM] BlueViolet (14822282)
[03:02:14 PM] Brown (2763429)
[03:02:14 PM] BurlyWood (8894686)
[03:02:14 PM] CadetBlue (10526303)
[03:02:14 PM] Chartreuse (65407)
[03:02:14 PM] Chocolate (1993170)
[03:02:14 PM] Coral (5275647)
[03:02:14 PM] CornflowerBlue (15570276)
[03:02:14 PM] Cornsilk (14481663)
[03:02:14 PM] Crimson (3937500)
[03:02:14 PM] Cyan (16776960)
[03:02:14 PM] DarkBlue (9109504)
[03:02:14 PM] DarkCyan (9145088)
[03:02:14 PM] DarkGoldenRod (755384)
[03:02:14 PM] DarkGray (11119017)
[03:02:14 PM] DarkGreen (25600)
[03:02:14 PM] DarkKhaki (7059389)
[03:02:14 PM] DarkMagenta (9109643)
[03:02:14 PM] DarkOliveGreen (3107669)
[03:02:14 PM] Darkorange (36095)
[03:02:14 PM] DarkOrchid (13382297)
[03:02:14 PM] DarkRed (139)
[03:02:14 PM] DarkSalmon (8034025)
[03:02:14 PM] DarkSeaGreen (9419919)
[03:02:14 PM] DarkSlateBlue (9125192)
[03:02:14 PM] DarkSlateGray (5197615)
[03:02:14 PM] DarkTurquoise (13749760)
[03:02:14 PM] DarkViolet (13828244)
[03:02:14 PM] DeepPink (9639167)
[03:02:14 PM] DeepSkyBlue (16760576)
[03:02:14 PM] DimGray (6908265)
[03:02:14 PM] DodgerBlue (16748574)
[03:02:15 PM] FireBrick (2237106)
[03:02:15 PM] FloralWhite (15792895)
[03:02:15 PM] ForestGreen (2263842)
[03:02:15 PM] Fuchsia (16711935)
[03:02:15 PM] Gainsboro (14474460)
[03:02:15 PM] GhostWhite (16775416)
[03:02:15 PM] Gold (55295)
[03:02:15 PM] GoldenRod (2139610)
[03:02:15 PM] Gray (8421504)
[03:02:15 PM] Green (32768)
[03:02:15 PM] GreenYellow (3145645)
[03:02:15 PM] HoneyDew (15794160)
[03:02:15 PM] HotPink (11823615)
[03:02:15 PM] IndianRed (6053069)
[03:02:15 PM] Indigo (8519755)
[03:02:15 PM] Ivory (15794175)
[03:02:15 PM] Khaki (9234160)
[03:02:15 PM] Lavender (16443110)
[03:02:15 PM] LavenderBlush (16118015)
[03:02:15 PM] LawnGreen (64636)
[03:02:15 PM] LemonChiffon (13499135)
[03:02:15 PM] LightBlue (15128749)
[03:02:15 PM] LightCoral (8421616)
[03:02:15 PM] LightCyan (16777184)
[03:02:15 PM] LightGoldenRodYellow (13826810)
[03:02:15 PM] LightGray (13882323)
[03:02:15 PM] LightGreen (9498256)
[03:02:15 PM] LightPink (12695295)
[03:02:15 PM] LightSalmon (8036607)
[03:02:15 PM] LightSeaGreen (11186720)
[03:02:15 PM] LightSkyBlue (16436871)
[03:02:15 PM] LightSlateGray (10061943)
[03:02:15 PM] LightSteelBlue (14599344)
[03:02:15 PM] LightYellow (14745599)
[03:02:15 PM] Lime (65280)
[03:02:15 PM] LimeGreen (3329330)
[03:02:15 PM] Linen (15134970)
[03:02:15 PM] Magenta (16711935)
[03:02:15 PM] Maroon (128)
[03:02:15 PM] MediumAquaMarine (11193702)
[03:02:15 PM] MediumBlue (13434880)
[03:02:15 PM] MediumOrchid (13850042)
[03:02:15 PM] MediumPurple (14184595)
[03:02:15 PM] MediumSeaGreen (7451452)
[03:02:15 PM] MediumSlateBlue (15624315)
[03:02:15 PM] MediumSpringGreen (10156544)
[03:02:15 PM] MediumTurquoise (13422920)
[03:02:15 PM] MediumVioletRed (8721863)
[03:02:15 PM] MidnightBlue (7346457)
[03:02:15 PM] MintCream (16449525)
[03:02:15 PM] MistyRose (14804223)
[03:02:15 PM] Moccasin (11920639)
[03:02:15 PM] NavajoWhite (11394815)
[03:02:15 PM] Navy (8388608)
[03:02:15 PM] OldLace (15136253)
[03:02:16 PM] Olive (32896)
[03:02:16 PM] OliveDrab (2330219)
[03:02:16 PM] Orange (42495)
[03:02:16 PM] OrangeRed (17919)
[03:02:16 PM] Orchid (14053594)
[03:02:16 PM] PaleGoldenRod (11200750)
[03:02:16 PM] PaleGreen (10025880)
[03:02:16 PM] PaleTurquoise (15658671)
[03:02:16 PM] PaleVioletRed (9662680)
[03:02:16 PM] PapayaWhip (14020607)
[03:02:16 PM] PeachPuff (12180223)
[03:02:16 PM] Peru (4163021)
[03:02:16 PM] Pink (13353215)
[03:02:16 PM] Plum (14524637)
[03:02:16 PM] PowderBlue (15130800)
[03:02:16 PM] Purple (8388736)
[03:02:16 PM] Red (255)
[03:02:16 PM] RosyBrown (9408444)
[03:02:16 PM] RoyalBlue (14772545)
[03:02:16 PM] SaddleBrown (1262987)
[03:02:16 PM] Salmon (7504122)
[03:02:16 PM] SandyBrown (6333684)
[03:02:16 PM] SeaGreen (5737262)
[03:02:16 PM] SeaShell (15660543)
[03:02:16 PM] Sienna (2970272)
[03:02:16 PM] Silver (12632256)
[03:02:16 PM] SkyBlue (15453831)
[03:02:16 PM] SlateBlue (13458026)
[03:02:16 PM] SlateGray (9470064)
[03:02:16 PM] Snow (16448255)
[03:02:16 PM] SpringGreen (8388352)
[03:02:16 PM] SteelBlue (11829830)
[03:02:16 PM] Tan (9221330)
[03:02:16 PM] Teal (8421376)
[03:02:16 PM] Thistle (14204888)
[03:02:16 PM] Tomato (4678655)
[03:02:16 PM] Turquoise (13688896)
[03:02:16 PM] Violet (15631086)
[03:02:16 PM] Wheat (11788021)
[03:02:16 PM] White (16777215)
[03:02:16 PM] WhiteSmoke (16119285)
[03:02:16 PM] Yellow (65535)

[03:02:16 PM] YellowGreen (3329434)

See also

See also