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) AntiqueWhite: Color
Returns a Color object set to the color named color AntiqueWhite.
(Static) Aquamarine: Color
Returns a Color object set to the color named color Aquamarine.
(Static) BlanchedAlmond: Color
Returns a Color object set to the color named color BlanchedAlmond.
(Static) BlueViolet: Color
Returns a Color object set to the color named color BlueViolet.
(Static) Chartreuse: Color
Returns a Color object set to the color named color Chartreuse.
(Static) CornflowerBlue: Color
Returns a Color object set to the color named color CornflowerBlue.
(Static) DarkGoldenRod: Color
Returns a Color object set to the color named color DarkGoldenRod.
(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) 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) DeepSkyBlue: Color
Returns a Color object set to the color named color DeepSkyBlue.
(Static) DodgerBlue: Color
Returns a Color object set to the color named color DodgerBlue.
(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) GhostWhite: Color
Returns a Color object set to the color named color GhostWhite.
(Static) GreenYellow: Color
Returns a Color object set to the color named color GreenYellow.
(Static) LavenderBlush: Color
Returns a Color object set to the color named color LavenderBlush.
(Static) LemonChiffon: Color
Returns a Color object set to the color named color LemonChiffon.
(Static) LightCoral: Color
Returns a Color object set to the color named color LightCoral.
(Static) LightGoldenRodYellow: Color
Returns a Color object set to the color named color LightGoldenRodYellow.
(Static) LightGreen: Color
Returns a Color object set to the color named color LightGreen.
(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) 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) NavajoWhite: Color
Returns a Color object set to the color named color NavajoWhite.
(Static) PaleGoldenRod: Color
Returns a Color object set to the color named color PaleGoldenRod.
(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) PowderBlue: Color
Returns a Color object set to the color named color PowderBlue.
(Static) SaddleBrown: Color
Returns a Color object set to the color named color SaddleBrown.
(Static) SandyBrown: Color
Returns a Color object set to the color named color SandyBrown.
(Static) SpringGreen: Color
Returns a Color object set to the color named color SpringGreen.
(Static) WhiteSmoke: Color
Returns a Color object set to the color named color WhiteSmoke.
(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.