Graphics.Color

Description: Color class used to pass around colors in a typed manner.

Implements: EndGate.ICloneable , EndGate.IDisposable

Constructors

Color ()
Creates a new instance of Color with color channels set to black.

Color (color)
Creates a new instance of Color with the specified string.

color: string
Hex, named or function style string declaration.

Color (r, g, b)
Creates a new instance of Color with the specified rgb channels.

r: number
The red channel. Must be between 0 and 255 inclusive.

g: number
The green channel. Must be between 0 and 255 inclusive.

b: number
The blue channel. Must be between 0 and 255 inclusive.

Color (r, g, b, a)
Creates a new instance of Color with the specified rgba channels.

r: number
The red channel. Must be between 0 and 255 inclusive.

g: number
The green channel. Must be between 0 and 255 inclusive.

b: number
The blue channel. Must be between 0 and 255 inclusive.

a: number
The alpha channel. Must be between 0 and 1 inclusive.

Fields

OnChange: EndGate.EventHandler1 <Color>
Gets an EventHandler that is triggered when the R, G, B, or A values of this Color change.

R: number
Gets or sets the current red channel. Value must be an integer between 0 and 255 inclusive.

G: number
Gets or sets the current green channel. Value must be an integer between 0 and 255 inclusive.

B: number
Gets or sets the current blue channel. Value must be an integer between 0 and 255 inclusive.

A: number
Gets or sets the current alpha channel. Value must be between 0 and 1 inclusive.

(Static) Transparent: Color
Returns a transparent Color object.

(Static) AliceBlue: Color
Returns a Color object set to the color named color AliceBlue.

(Static) AntiqueWhite: Color
Returns a Color object set to the color named color AntiqueWhite.

(Static) Aqua: Color
Returns a Color object set to the color named color Aqua.

(Static) Aquamarine: Color
Returns a Color object set to the color named color Aquamarine.

(Static) Azure: Color
Returns a Color object set to the color named color Azure.

(Static) Beige: Color
Returns a Color object set to the color named color Beige.

(Static) Bisque: Color
Returns a Color object set to the color named color Bisque.

(Static) Black: Color
Returns a Color object set to the color named color Black.

(Static) BlanchedAlmond: Color
Returns a Color object set to the color named color BlanchedAlmond.

(Static) Blue: Color
Returns a Color object set to the color named color Blue.

(Static) BlueViolet: Color
Returns a Color object set to the color named color BlueViolet.

(Static) Brown: Color
Returns a Color object set to the color named color Brown.

(Static) BurlyWood: Color
Returns a Color object set to the color named color BurlyWood.

(Static) CadetBlue: Color
Returns a Color object set to the color named color CadetBlue.

(Static) Chartreuse: Color
Returns a Color object set to the color named color Chartreuse.

(Static) Chocolate: Color
Returns a Color object set to the color named color Chocolate.

(Static) Coral: Color
Returns a Color object set to the color named color Coral.

(Static) CornflowerBlue: Color
Returns a Color object set to the color named color CornflowerBlue.

(Static) Cornsilk: Color
Returns a Color object set to the color named color Cornsilk.

(Static) Crimson: Color
Returns a Color object set to the color named color Crimson.

(Static) Cyan: Color
Returns a Color object set to the color named color Cyan.

(Static) DarkBlue: Color
Returns a Color object set to the color named color DarkBlue.

(Static) DarkCyan: Color
Returns a Color object set to the color named color DarkCyan.

(Static) DarkGoldenRod: Color
Returns a Color object set to the color named color DarkGoldenRod.

(Static) DarkGray: Color
Returns a Color object set to the color named color DarkGray.

(Static) DarkGreen: Color
Returns a Color object set to the color named color DarkGreen.

(Static) DarkKhaki: Color
Returns a Color object set to the color named color DarkKhaki.

(Static) DarkMagenta: Color
Returns a Color object set to the color named color DarkMagenta.

(Static) DarkOliveGreen: Color
Returns a Color object set to the color named color DarkOliveGreen.

(Static) DarkOrange: Color
Returns a Color object set to the color named color DarkOrange.

(Static) DarkOrchid: Color
Returns a Color object set to the color named color DarkOrchid.

(Static) DarkRed: Color
Returns a Color object set to the color named color DarkRed.

(Static) DarkSalmon: Color
Returns a Color object set to the color named color DarkSalmon.

(Static) DarkSeaGreen: Color
Returns a Color object set to the color named color DarkSeaGreen.

(Static) DarkSlateBlue: Color
Returns a Color object set to the color named color DarkSlateBlue.

(Static) DarkSlateGray: Color
Returns a Color object set to the color named color DarkSlateGray.

(Static) DarkTurquoise: Color
Returns a Color object set to the color named color DarkTurquoise.

(Static) DarkViolet: Color
Returns a Color object set to the color named color DarkViolet.

(Static) DeepPink: Color
Returns a Color object set to the color named color DeepPink.

(Static) DeepSkyBlue: Color
Returns a Color object set to the color named color DeepSkyBlue.

(Static) DimGray: Color
Returns a Color object set to the color named color DimGray.

(Static) DodgerBlue: Color
Returns a Color object set to the color named color DodgerBlue.

(Static) FireBrick: Color
Returns a Color object set to the color named color FireBrick.

(Static) FloralWhite: Color
Returns a Color object set to the color named color FloralWhite.

(Static) ForestGreen: Color
Returns a Color object set to the color named color ForestGreen.

(Static) Fuchsia: Color
Returns a Color object set to the color named color Fuchsia.

(Static) Gainsboro: Color
Returns a Color object set to the color named color Gainsboro.

(Static) GhostWhite: Color
Returns a Color object set to the color named color GhostWhite.

(Static) Gold: Color
Returns a Color object set to the color named color Gold.

(Static) GoldenRod: Color
Returns a Color object set to the color named color GoldenRod.

(Static) Gray: Color
Returns a Color object set to the color named color Gray.

(Static) Green: Color
Returns a Color object set to the color named color Green.

(Static) GreenYellow: Color
Returns a Color object set to the color named color GreenYellow.

(Static) HoneyDew: Color
Returns a Color object set to the color named color HoneyDew.

(Static) HotPink: Color
Returns a Color object set to the color named color HotPink.

(Static) IndianRed: Color
Returns a Color object set to the color named color IndianRed.

(Static) Indigo: Color
Returns a Color object set to the color named color Indigo.

(Static) Ivory: Color
Returns a Color object set to the color named color Ivory.

(Static) Khaki: Color
Returns a Color object set to the color named color Khaki.

(Static) Lavender: Color
Returns a Color object set to the color named color Lavender.

(Static) LavenderBlush: Color
Returns a Color object set to the color named color LavenderBlush.

(Static) LawnGreen: Color
Returns a Color object set to the color named color LawnGreen.

(Static) LemonChiffon: Color
Returns a Color object set to the color named color LemonChiffon.

(Static) LightBlue: Color
Returns a Color object set to the color named color LightBlue.

(Static) LightCoral: Color
Returns a Color object set to the color named color LightCoral.

(Static) LightCyan: Color
Returns a Color object set to the color named color LightCyan.

(Static) LightGoldenRodYellow: Color
Returns a Color object set to the color named color LightGoldenRodYellow.

(Static) LightGray: Color
Returns a Color object set to the color named color LightGray.

(Static) LightGrey: Color
Returns a Color object set to the color named color LightGrey.

(Static) LightGreen: Color
Returns a Color object set to the color named color LightGreen.

(Static) LightPink: Color
Returns a Color object set to the color named color LightPink.

(Static) LightSalmon: Color
Returns a Color object set to the color named color LightSalmon.

(Static) LightSeaGreen: Color
Returns a Color object set to the color named color LightSeaGreen.

(Static) LightSkyBlue: Color
Returns a Color object set to the color named color LightSkyBlue.

(Static) LightSlateGray: Color
Returns a Color object set to the color named color LightSlateGray.

(Static) LightSteelBlue: Color
Returns a Color object set to the color named color LightSteelBlue.

(Static) LightYellow: Color
Returns a Color object set to the color named color LightYellow.

(Static) Lime: Color
Returns a Color object set to the color named color Lime.

(Static) LimeGreen: Color
Returns a Color object set to the color named color LimeGreen.

(Static) Linen: Color
Returns a Color object set to the color named color Linen.

(Static) Magenta: Color
Returns a Color object set to the color named color Magenta.

(Static) Maroon: Color
Returns a Color object set to the color named color Maroon.

(Static) MediumAquaMarine: Color
Returns a Color object set to the color named color MediumAquaMarine.

(Static) MediumBlue: Color
Returns a Color object set to the color named color MediumBlue.

(Static) MediumOrchid: Color
Returns a Color object set to the color named color MediumOrchid.

(Static) MediumPurple: Color
Returns a Color object set to the color named color MediumPurple.

(Static) MediumSeaGreen: Color
Returns a Color object set to the color named color MediumSeaGreen.

(Static) MediumSlateBlue: Color
Returns a Color object set to the color named color MediumSlateBlue.

(Static) MediumSpringGreen: Color
Returns a Color object set to the color named color MediumSpringGreen.

(Static) MediumTurquoise: Color
Returns a Color object set to the color named color MediumTurquoise.

(Static) MediumVioletRed: Color
Returns a Color object set to the color named color MediumVioletRed.

(Static) MidnightBlue: Color
Returns a Color object set to the color named color MidnightBlue.

(Static) MintCream: Color
Returns a Color object set to the color named color MintCream.

(Static) MistyRose: Color
Returns a Color object set to the color named color MistyRose.

(Static) Moccasin: Color
Returns a Color object set to the color named color Moccasin.

(Static) NavajoWhite: Color
Returns a Color object set to the color named color NavajoWhite.

(Static) Navy: Color
Returns a Color object set to the color named color Navy.

(Static) OldLace: Color
Returns a Color object set to the color named color OldLace.

(Static) Olive: Color
Returns a Color object set to the color named color Olive.

(Static) OliveDrab: Color
Returns a Color object set to the color named color OliveDrab.

(Static) Orange: Color
Returns a Color object set to the color named color Orange.

(Static) OrangeRed: Color
Returns a Color object set to the color named color OrangeRed.

(Static) Orchid: Color
Returns a Color object set to the color named color Orchid.

(Static) PaleGoldenRod: Color
Returns a Color object set to the color named color PaleGoldenRod.

(Static) PaleGreen: Color
Returns a Color object set to the color named color PaleGreen.

(Static) PaleTurquoise: Color
Returns a Color object set to the color named color PaleTurquoise.

(Static) PaleVioletRed: Color
Returns a Color object set to the color named color PaleVioletRed.

(Static) PapayaWhip: Color
Returns a Color object set to the color named color PapayaWhip.

(Static) PeachPuff: Color
Returns a Color object set to the color named color PeachPuff.

(Static) Peru: Color
Returns a Color object set to the color named color Peru.

(Static) Pink: Color
Returns a Color object set to the color named color Pink.

(Static) Plum: Color
Returns a Color object set to the color named color Plum.

(Static) PowderBlue: Color
Returns a Color object set to the color named color PowderBlue.

(Static) Purple: Color
Returns a Color object set to the color named color Purple.

(Static) Red: Color
Returns a Color object set to the color named color Red.

(Static) RosyBrown: Color
Returns a Color object set to the color named color RosyBrown.

(Static) RoyalBlue: Color
Returns a Color object set to the color named color RoyalBlue.

(Static) SaddleBrown: Color
Returns a Color object set to the color named color SaddleBrown.

(Static) Salmon: Color
Returns a Color object set to the color named color Salmon.

(Static) SandyBrown: Color
Returns a Color object set to the color named color SandyBrown.

(Static) SeaGreen: Color
Returns a Color object set to the color named color SeaGreen.

(Static) SeaShell: Color
Returns a Color object set to the color named color SeaShell.

(Static) Sienna: Color
Returns a Color object set to the color named color Sienna.

(Static) Silver: Color
Returns a Color object set to the color named color Silver.

(Static) SkyBlue: Color
Returns a Color object set to the color named color SkyBlue.

(Static) SlateBlue: Color
Returns a Color object set to the color named color SlateBlue.

(Static) SlateGray: Color
Returns a Color object set to the color named color SlateGray.

(Static) Snow: Color
Returns a Color object set to the color named color Snow.

(Static) SpringGreen: Color
Returns a Color object set to the color named color SpringGreen.

(Static) SteelBlue: Color
Returns a Color object set to the color named color SteelBlue.

(Static) Tan: Color
Returns a Color object set to the color named color Tan.

(Static) Teal: Color
Returns a Color object set to the color named color Teal.

(Static) Thistle: Color
Returns a Color object set to the color named color Thistle.

(Static) Tomato: Color
Returns a Color object set to the color named color Tomato.

(Static) Turquoise: Color
Returns a Color object set to the color named color Turquoise.

(Static) Violet: Color
Returns a Color object set to the color named color Violet.

(Static) Wheat: Color
Returns a Color object set to the color named color Wheat.

(Static) White: Color
Returns a Color object set to the color named color White.

(Static) WhiteSmoke: Color
Returns a Color object set to the color named color WhiteSmoke.

(Static) Yellow: Color
Returns a Color object set to the color named color Yellow.

(Static) YellowGreen: Color
Returns a Color object set to the color named color YellowGreen.

Methods

(Static) FromRGB()
Creates a new Color object with the specified RGB values.

(Static) FromRGBA()
Creates a new Color object with the specified RGBA values.

(Static) FromARGB()
Creates a new Color object with the specified ARGB values.

(Static) FromHex()
Creates a new Color object from the specified hex assignment.

(Static) FromName()
Creates a new Color object form the HTML5 named colors.

Clone()
Returns a copy of the color with the current color channels.

Dispose()
Disposes the Color object and unbinds any active event bindings.

toString()
toString override that returns the Color in the "rgba(r,g,b,a)" format.

Examples

There's currently no example available for this page. If you'd like to suggest one send me an containing a description, code, and link to the page for the suggested example. As a thanks I'll associate the code snippet with your name directly below the example if approved.