Shift
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Pages
Shift.Color Struct Reference

Describes a 32-bit packed color. More...

Inheritance diagram for Shift.Color:

Public Member Functions

 Color (Vector4 color)
 Constructs an RGBA color from the XYZW unit length components of a vector. More...
 
 Color (Vector3 color)
 Constructs an RGBA color from the XYZ unit length components of a vector. Alpha value will be opaque. More...
 
 Color (Color color, int alpha)
 Constructs an RGBA color from a Color and an alpha value. More...
 
 Color (Color color, float alpha)
 Constructs an RGBA color from color and alpha value. More...
 
 Color (float r, float g, float b)
 Constructs an RGBA color from scalars which representing red, green and blue values. Alpha value will be opaque. More...
 
 Color (int r, int g, int b)
 Constructs an RGBA color from scalars which representing red, green and blue values. Alpha value will be opaque. More...
 
 Color (int r, int g, int b, int alpha)
 Constructs an RGBA color from scalars which representing red, green, blue and alpha values. More...
 
 Color (float r, float g, float b, float alpha)
 Constructs an RGBA color from scalars which representing red, green, blue and alpha values. More...
 
override int GetHashCode ()
 Gets the hash code of this Color. More...
 
override bool Equals (object obj)
 Compares whether current instance is equal to specified object. More...
 
Vector3 ToVector3 ()
 Gets a Vector3 representation for this object. More...
 
Vector4 ToVector4 ()
 Gets a Vector4 representation for this object. More...
 
override string ToString ()
 Returns a String representation of this Color in the format: {R:[red] G:[green] B:[blue] A:[alpha]} More...
 
bool Equals (Color other)
 Compares whether current instance is equal to specified Color. More...
 

Static Public Member Functions

static Color ()
 
static bool operator== (Color a, Color b)
 Compares whether two Color instances are equal. More...
 
static bool operator!= (Color a, Color b)
 Compares whether two Color instances are not equal. More...
 
static Color Lerp (Color value1, Color value2, Single amount)
 Performs linear interpolation of Color. More...
 
static Color LerpPrecise (Color value1, Color value2, Single amount)
 Color.Lerp should be used instead of this function. More...
 
static Color Multiply (Color value, float scale)
 Multiply Color by value. More...
 
static Color operator* (Color value, float scale)
 Multiply Color by value. More...
 
static Color FromNonPremultiplied (Vector4 vector)
 Translate a non-premultipled alpha Color to a Color that contains premultiplied alpha. More...
 
static Color FromNonPremultiplied (int r, int g, int b, int a)
 Translate a non-premultipled alpha Color to a Color that contains premultiplied alpha. More...
 

Static Public Attributes

static readonly int SizeInBytes = System.Runtime.InteropServices.Marshal.SizeOf(new Color())
 Defines the size of the Color struct in bytes. More...
 

Properties

byte B [get, set]
 Gets or sets the blue component. More...
 
byte G [get, set]
 Gets or sets the green component. More...
 
byte R [get, set]
 Gets or sets the red component. More...
 
byte A [get, set]
 Gets or sets the alpha component. More...
 
static Color TransparentBlack [get, set]
 TransparentBlack color (R:0,G:0,B:0,A:0). More...
 
static Color Transparent [get, set]
 Transparent color (R:0,G:0,B:0,A:0). More...
 
static Color AliceBlue [get, set]
 AliceBlue color (R:240,G:248,B:255,A:255). More...
 
static Color AntiqueWhite [get, set]
 AntiqueWhite color (R:250,G:235,B:215,A:255). More...
 
static Color Aqua [get, set]
 Aqua color (R:0,G:255,B:255,A:255). More...
 
static Color Aquamarine [get, set]
 Aquamarine color (R:127,G:255,B:212,A:255). More...
 
static Color Azure [get, set]
 Azure color (R:240,G:255,B:255,A:255). More...
 
static Color Beige [get, set]
 Beige color (R:245,G:245,B:220,A:255). More...
 
static Color Bisque [get, set]
 Bisque color (R:255,G:228,B:196,A:255). More...
 
static Color Black [get, set]
 Black color (R:0,G:0,B:0,A:255). More...
 
static Color BlanchedAlmond [get, set]
 BlanchedAlmond color (R:255,G:235,B:205,A:255). More...
 
static Color Blue [get, set]
 Blue color (R:0,G:0,B:255,A:255). More...
 
static Color BlueViolet [get, set]
 BlueViolet color (R:138,G:43,B:226,A:255). More...
 
static Color Brown [get, set]
 Brown color (R:165,G:42,B:42,A:255). More...
 
static Color BurlyWood [get, set]
 BurlyWood color (R:222,G:184,B:135,A:255). More...
 
static Color CadetBlue [get, set]
 CadetBlue color (R:95,G:158,B:160,A:255). More...
 
static Color Chartreuse [get, set]
 Chartreuse color (R:127,G:255,B:0,A:255). More...
 
static Color Chocolate [get, set]
 Chocolate color (R:210,G:105,B:30,A:255). More...
 
static Color Coral [get, set]
 Coral color (R:255,G:127,B:80,A:255). More...
 
static Color CornflowerBlue [get, set]
 CornflowerBlue color (R:100,G:149,B:237,A:255). More...
 
static Color Cornsilk [get, set]
 Cornsilk color (R:255,G:248,B:220,A:255). More...
 
static Color Crimson [get, set]
 Crimson color (R:220,G:20,B:60,A:255). More...
 
static Color Cyan [get, set]
 Cyan color (R:0,G:255,B:255,A:255). More...
 
static Color DarkBlue [get, set]
 DarkBlue color (R:0,G:0,B:139,A:255). More...
 
static Color DarkCyan [get, set]
 DarkCyan color (R:0,G:139,B:139,A:255). More...
 
static Color DarkGoldenrod [get, set]
 DarkGoldenrod color (R:184,G:134,B:11,A:255). More...
 
static Color DarkGray [get, set]
 DarkGray color (R:169,G:169,B:169,A:255). More...
 
static Color DarkGreen [get, set]
 DarkGreen color (R:0,G:100,B:0,A:255). More...
 
static Color DarkKhaki [get, set]
 DarkKhaki color (R:189,G:183,B:107,A:255). More...
 
static Color DarkMagenta [get, set]
 DarkMagenta color (R:139,G:0,B:139,A:255). More...
 
static Color DarkOliveGreen [get, set]
 DarkOliveGreen color (R:85,G:107,B:47,A:255). More...
 
static Color DarkOrange [get, set]
 DarkOrange color (R:255,G:140,B:0,A:255). More...
 
static Color DarkOrchid [get, set]
 DarkOrchid color (R:153,G:50,B:204,A:255). More...
 
static Color DarkRed [get, set]
 DarkRed color (R:139,G:0,B:0,A:255). More...
 
static Color DarkSalmon [get, set]
 DarkSalmon color (R:233,G:150,B:122,A:255). More...
 
static Color DarkSeaGreen [get, set]
 DarkSeaGreen color (R:143,G:188,B:139,A:255). More...
 
static Color DarkSlateBlue [get, set]
 DarkSlateBlue color (R:72,G:61,B:139,A:255). More...
 
static Color DarkSlateGray [get, set]
 DarkSlateGray color (R:47,G:79,B:79,A:255). More...
 
static Color DarkTurquoise [get, set]
 DarkTurquoise color (R:0,G:206,B:209,A:255). More...
 
static Color DarkViolet [get, set]
 DarkViolet color (R:148,G:0,B:211,A:255). More...
 
static Color DeepPink [get, set]
 DeepPink color (R:255,G:20,B:147,A:255). More...
 
static Color DeepSkyBlue [get, set]
 DeepSkyBlue color (R:0,G:191,B:255,A:255). More...
 
static Color DimGray [get, set]
 DimGray color (R:105,G:105,B:105,A:255). More...
 
static Color DodgerBlue [get, set]
 DodgerBlue color (R:30,G:144,B:255,A:255). More...
 
static Color Firebrick [get, set]
 Firebrick color (R:178,G:34,B:34,A:255). More...
 
static Color FloralWhite [get, set]
 FloralWhite color (R:255,G:250,B:240,A:255). More...
 
static Color ForestGreen [get, set]
 ForestGreen color (R:34,G:139,B:34,A:255). More...
 
static Color Fuchsia [get, set]
 Fuchsia color (R:255,G:0,B:255,A:255). More...
 
static Color Gainsboro [get, set]
 Gainsboro color (R:220,G:220,B:220,A:255). More...
 
static Color GhostWhite [get, set]
 GhostWhite color (R:248,G:248,B:255,A:255). More...
 
static Color Gold [get, set]
 Gold color (R:255,G:215,B:0,A:255). More...
 
static Color Goldenrod [get, set]
 Goldenrod color (R:218,G:165,B:32,A:255). More...
 
static Color Gray [get, set]
 Gray color (R:128,G:128,B:128,A:255). More...
 
static Color Green [get, set]
 Green color (R:0,G:128,B:0,A:255). More...
 
static Color GreenYellow [get, set]
 GreenYellow color (R:173,G:255,B:47,A:255). More...
 
static Color Honeydew [get, set]
 Honeydew color (R:240,G:255,B:240,A:255). More...
 
static Color HotPink [get, set]
 HotPink color (R:255,G:105,B:180,A:255). More...
 
static Color IndianRed [get, set]
 IndianRed color (R:205,G:92,B:92,A:255). More...
 
static Color Indigo [get, set]
 Indigo color (R:75,G:0,B:130,A:255). More...
 
static Color Ivory [get, set]
 Ivory color (R:255,G:255,B:240,A:255). More...
 
static Color Khaki [get, set]
 Khaki color (R:240,G:230,B:140,A:255). More...
 
static Color Lavender [get, set]
 Lavender color (R:230,G:230,B:250,A:255). More...
 
static Color LavenderBlush [get, set]
 LavenderBlush color (R:255,G:240,B:245,A:255). More...
 
static Color LawnGreen [get, set]
 LawnGreen color (R:124,G:252,B:0,A:255). More...
 
static Color LemonChiffon [get, set]
 LemonChiffon color (R:255,G:250,B:205,A:255). More...
 
static Color LightBlue [get, set]
 LightBlue color (R:173,G:216,B:230,A:255). More...
 
static Color LightCoral [get, set]
 LightCoral color (R:240,G:128,B:128,A:255). More...
 
static Color LightCyan [get, set]
 LightCyan color (R:224,G:255,B:255,A:255). More...
 
static Color LightGoldenrodYellow [get, set]
 LightGoldenrodYellow color (R:250,G:250,B:210,A:255). More...
 
static Color LightGray [get, set]
 LightGray color (R:211,G:211,B:211,A:255). More...
 
static Color LightGreen [get, set]
 LightGreen color (R:144,G:238,B:144,A:255). More...
 
static Color LightPink [get, set]
 LightPink color (R:255,G:182,B:193,A:255). More...
 
static Color LightSalmon [get, set]
 LightSalmon color (R:255,G:160,B:122,A:255). More...
 
static Color LightSeaGreen [get, set]
 LightSeaGreen color (R:32,G:178,B:170,A:255). More...
 
static Color LightSkyBlue [get, set]
 LightSkyBlue color (R:135,G:206,B:250,A:255). More...
 
static Color LightSlateGray [get, set]
 LightSlateGray color (R:119,G:136,B:153,A:255). More...
 
static Color LightSteelBlue [get, set]
 LightSteelBlue color (R:176,G:196,B:222,A:255). More...
 
static Color LightYellow [get, set]
 LightYellow color (R:255,G:255,B:224,A:255). More...
 
static Color Lime [get, set]
 Lime color (R:0,G:255,B:0,A:255). More...
 
static Color LimeGreen [get, set]
 LimeGreen color (R:50,G:205,B:50,A:255). More...
 
static Color Linen [get, set]
 Linen color (R:250,G:240,B:230,A:255). More...
 
static Color Magenta [get, set]
 Magenta color (R:255,G:0,B:255,A:255). More...
 
static Color Maroon [get, set]
 Maroon color (R:128,G:0,B:0,A:255). More...
 
static Color MediumAquamarine [get, set]
 MediumAquamarine color (R:102,G:205,B:170,A:255). More...
 
static Color MediumBlue [get, set]
 MediumBlue color (R:0,G:0,B:205,A:255). More...
 
static Color MediumOrchid [get, set]
 MediumOrchid color (R:186,G:85,B:211,A:255). More...
 
static Color MediumPurple [get, set]
 MediumPurple color (R:147,G:112,B:219,A:255). More...
 
static Color MediumSeaGreen [get, set]
 MediumSeaGreen color (R:60,G:179,B:113,A:255). More...
 
static Color MediumSlateBlue [get, set]
 MediumSlateBlue color (R:123,G:104,B:238,A:255). More...
 
static Color MediumSpringGreen [get, set]
 MediumSpringGreen color (R:0,G:250,B:154,A:255). More...
 
static Color MediumTurquoise [get, set]
 MediumTurquoise color (R:72,G:209,B:204,A:255). More...
 
static Color MediumVioletRed [get, set]
 MediumVioletRed color (R:199,G:21,B:133,A:255). More...
 
static Color MidnightBlue [get, set]
 MidnightBlue color (R:25,G:25,B:112,A:255). More...
 
static Color MintCream [get, set]
 MintCream color (R:245,G:255,B:250,A:255). More...
 
static Color MistyRose [get, set]
 MistyRose color (R:255,G:228,B:225,A:255). More...
 
static Color Moccasin [get, set]
 Moccasin color (R:255,G:228,B:181,A:255). More...
 
static Color MonoGameOrange [get, set]
 MonoGame orange theme color (R:231,G:60,B:0,A:255). More...
 
static Color NavajoWhite [get, set]
 NavajoWhite color (R:255,G:222,B:173,A:255). More...
 
static Color Navy [get, set]
 Navy color (R:0,G:0,B:128,A:255). More...
 
static Color OldLace [get, set]
 OldLace color (R:253,G:245,B:230,A:255). More...
 
static Color Olive [get, set]
 Olive color (R:128,G:128,B:0,A:255). More...
 
static Color OliveDrab [get, set]
 OliveDrab color (R:107,G:142,B:35,A:255). More...
 
static Color Orange [get, set]
 Orange color (R:255,G:165,B:0,A:255). More...
 
static Color OrangeRed [get, set]
 OrangeRed color (R:255,G:69,B:0,A:255). More...
 
static Color Orchid [get, set]
 Orchid color (R:218,G:112,B:214,A:255). More...
 
static Color PaleGoldenrod [get, set]
 PaleGoldenrod color (R:238,G:232,B:170,A:255). More...
 
static Color PaleGreen [get, set]
 PaleGreen color (R:152,G:251,B:152,A:255). More...
 
static Color PaleTurquoise [get, set]
 PaleTurquoise color (R:175,G:238,B:238,A:255). More...
 
static Color PaleVioletRed [get, set]
 PaleVioletRed color (R:219,G:112,B:147,A:255). More...
 
static Color PapayaWhip [get, set]
 PapayaWhip color (R:255,G:239,B:213,A:255). More...
 
static Color PeachPuff [get, set]
 PeachPuff color (R:255,G:218,B:185,A:255). More...
 
static Color Peru [get, set]
 Peru color (R:205,G:133,B:63,A:255). More...
 
static Color Pink [get, set]
 Pink color (R:255,G:192,B:203,A:255). More...
 
static Color Plum [get, set]
 Plum color (R:221,G:160,B:221,A:255). More...
 
static Color PowderBlue [get, set]
 PowderBlue color (R:176,G:224,B:230,A:255). More...
 
static Color Purple [get, set]
 Purple color (R:128,G:0,B:128,A:255). More...
 
static Color Red [get, set]
 Red color (R:255,G:0,B:0,A:255). More...
 
static Color RosyBrown [get, set]
 RosyBrown color (R:188,G:143,B:143,A:255). More...
 
static Color RoyalBlue [get, set]
 RoyalBlue color (R:65,G:105,B:225,A:255). More...
 
static Color SaddleBrown [get, set]
 SaddleBrown color (R:139,G:69,B:19,A:255). More...
 
static Color Salmon [get, set]
 Salmon color (R:250,G:128,B:114,A:255). More...
 
static Color SandyBrown [get, set]
 SandyBrown color (R:244,G:164,B:96,A:255). More...
 
static Color SeaGreen [get, set]
 SeaGreen color (R:46,G:139,B:87,A:255). More...
 
static Color SeaShell [get, set]
 SeaShell color (R:255,G:245,B:238,A:255). More...
 
static Color Sienna [get, set]
 Sienna color (R:160,G:82,B:45,A:255). More...
 
static Color Silver [get, set]
 Silver color (R:192,G:192,B:192,A:255). More...
 
static Color SkyBlue [get, set]
 SkyBlue color (R:135,G:206,B:235,A:255). More...
 
static Color SlateBlue [get, set]
 SlateBlue color (R:106,G:90,B:205,A:255). More...
 
static Color SlateGray [get, set]
 SlateGray color (R:112,G:128,B:144,A:255). More...
 
static Color Snow [get, set]
 Snow color (R:255,G:250,B:250,A:255). More...
 
static Color SpringGreen [get, set]
 SpringGreen color (R:0,G:255,B:127,A:255). More...
 
static Color SteelBlue [get, set]
 SteelBlue color (R:70,G:130,B:180,A:255). More...
 
static Color Tan [get, set]
 Tan color (R:210,G:180,B:140,A:255). More...
 
static Color Teal [get, set]
 Teal color (R:0,G:128,B:128,A:255). More...
 
static Color Thistle [get, set]
 Thistle color (R:216,G:191,B:216,A:255). More...
 
static Color Tomato [get, set]
 Tomato color (R:255,G:99,B:71,A:255). More...
 
static Color Turquoise [get, set]
 Turquoise color (R:64,G:224,B:208,A:255). More...
 
static Color Violet [get, set]
 Violet color (R:238,G:130,B:238,A:255). More...
 
static Color Wheat [get, set]
 Wheat color (R:245,G:222,B:179,A:255). More...
 
static Color White [get, set]
 White color (R:255,G:255,B:255,A:255). More...
 
static Color WhiteSmoke [get, set]
 WhiteSmoke color (R:245,G:245,B:245,A:255). More...
 
static Color Yellow [get, set]
 Yellow color (R:255,G:255,B:0,A:255). More...
 
static Color YellowGreen [get, set]
 YellowGreen color (R:154,G:205,B:50,A:255). More...
 
UInt32 PackedValue [get, set]
 Gets or sets packed value of this Color. More...
 

Detailed Description

Describes a 32-bit packed color.

Definition at line 13 of file Color.cs.

Constructor & Destructor Documentation

static Shift.Color.Color ( )
inlinestatic

Definition at line 20 of file Color.cs.

Shift.Color.Color ( Vector4  color)
inline

Constructs an RGBA color from the XYZW unit length components of a vector.

Parameters
colorA Vector4 representing color.

Definition at line 182 of file Color.cs.

Shift.Color.Color ( Vector3  color)
inline

Constructs an RGBA color from the XYZ unit length components of a vector. Alpha value will be opaque.

Parameters
colorA Vector3 representing color.

Definition at line 196 of file Color.cs.

Shift.Color.Color ( Color  color,
int  alpha 
)
inline

Constructs an RGBA color from a Color and an alpha value.

Parameters
colorA Color for RGB values of new Color instance.
alphaThe alpha component value from 0 to 255.

Definition at line 211 of file Color.cs.

Shift.Color.Color ( Color  color,
float  alpha 
)
inline

Constructs an RGBA color from color and alpha value.

Parameters
colorA Color for RGB values of new Color instance.
alphaAlpha component value from 0.0f to 1.0f.

Definition at line 226 of file Color.cs.

Shift.Color.Color ( float  r,
float  g,
float  b 
)
inline

Constructs an RGBA color from scalars which representing red, green and blue values. Alpha value will be opaque.

Parameters
rRed component value from 0.0f to 1.0f.
gGreen component value from 0.0f to 1.0f.
bBlue component value from 0.0f to 1.0f.

Definition at line 242 of file Color.cs.

Shift.Color.Color ( int  r,
int  g,
int  b 
)
inline

Constructs an RGBA color from scalars which representing red, green and blue values. Alpha value will be opaque.

Parameters
rRed component value from 0 to 255.
gGreen component value from 0 to 255.
bBlue component value from 0 to 255.

Definition at line 258 of file Color.cs.

Shift.Color.Color ( int  r,
int  g,
int  b,
int  alpha 
)
inline

Constructs an RGBA color from scalars which representing red, green, blue and alpha values.

Parameters
rRed component value from 0 to 255.
gGreen component value from 0 to 255.
bBlue component value from 0 to 255.
alphaAlpha component value from 0 to 255.

Definition at line 274 of file Color.cs.

Shift.Color.Color ( float  r,
float  g,
float  b,
float  alpha 
)
inline

Constructs an RGBA color from scalars which representing red, green, blue and alpha values.

Parameters
rRed component value from 0.0f to 1.0f.
gGreen component value from 0.0f to 1.0f.
bBlue component value from 0.0f to 1.0f.
alphaAlpha component value from 0.0f to 1.0f.

Definition at line 290 of file Color.cs.

Member Function Documentation

override bool Shift.Color.Equals ( object  obj)
inline

Compares whether current instance is equal to specified object.

Parameters
objThe Color to compare.
Returns
true if the instances are equal; false otherwise.

Definition at line 415 of file Color.cs.

bool Shift.Color.Equals ( Color  other)
inline

Compares whether current instance is equal to specified Color.

Parameters
otherThe Color to compare.
Returns
true if the instances are equal; false otherwise.

Definition at line 1852 of file Color.cs.

static Color Shift.Color.FromNonPremultiplied ( Vector4  vector)
inlinestatic

Translate a non-premultipled alpha Color to a Color that contains premultiplied alpha.

Parameters
vectorA Vector4 representing color.
Returns
A Color which contains premultiplied alpha data.

Definition at line 1829 of file Color.cs.

static Color Shift.Color.FromNonPremultiplied ( int  r,
int  g,
int  b,
int  a 
)
inlinestatic

Translate a non-premultipled alpha Color to a Color that contains premultiplied alpha.

Parameters
rRed component value.
gGreen component value.
bBlue component value.
aAlpha component value.
Returns
A Color which contains premultiplied alpha data.

Definition at line 1842 of file Color.cs.

override int Shift.Color.GetHashCode ( )
inline

Gets the hash code of this Color.

Returns
Hash code of this Color.

Definition at line 405 of file Color.cs.

static Color Shift.Color.Lerp ( Color  value1,
Color  value2,
Single  amount 
)
inlinestatic

Performs linear interpolation of Color.

Parameters
value1Source Color.
value2Destination Color.
amountInterpolation factor.
Returns
Interpolated Color.

Definition at line 1714 of file Color.cs.

static Color Shift.Color.LerpPrecise ( Color  value1,
Color  value2,
Single  amount 
)
inlinestatic

Color.Lerp should be used instead of this function.

Returns
Interpolated Color.

Definition at line 1729 of file Color.cs.

static Color Shift.Color.Multiply ( Color  value,
float  scale 
)
inlinestatic

Multiply Color by value.

Parameters
valueSource Color.
scaleMultiplicator.
Returns
Multiplication result.

Definition at line 1745 of file Color.cs.

static bool Shift.Color.operator!= ( Color  a,
Color  b 
)
inlinestatic

Compares whether two Color instances are not equal.

Parameters
aColor instance on the left of the not equal sign.
bColor instance on the right of the not equal sign.
Returns
true if the instances are not equal; false otherwise.

Definition at line 396 of file Color.cs.

static Color Shift.Color.operator* ( Color  value,
float  scale 
)
inlinestatic

Multiply Color by value.

Parameters
valueSource Color.
scaleMultiplicator.
Returns
Multiplication result.

Definition at line 1756 of file Color.cs.

static bool Shift.Color.operator== ( Color  a,
Color  b 
)
inlinestatic

Compares whether two Color instances are equal.

Parameters
aColor instance on the left of the equal sign.
bColor instance on the right of the equal sign.
Returns
true if the instances are equal; false otherwise.

Definition at line 382 of file Color.cs.

override string Shift.Color.ToString ( )
inline

Returns a String representation of this Color in the format: {R:[red] G:[green] B:[blue] A:[alpha]}

Returns
String representation of this Color.

Definition at line 1809 of file Color.cs.

Vector3 Shift.Color.ToVector3 ( )
inline

Gets a Vector3 representation for this object.

Returns
A Vector3 representation for this object.

Definition at line 1765 of file Color.cs.

Vector4 Shift.Color.ToVector4 ( )
inline

Gets a Vector4 representation for this object.

Returns
A Vector4 representation for this object.

Definition at line 1774 of file Color.cs.

Member Data Documentation

readonly int Shift.Color.SizeInBytes = System.Runtime.InteropServices.Marshal.SizeOf(new Color())
static

Defines the size of the Color struct in bytes.

Definition at line 18 of file Color.cs.

Property Documentation

byte Shift.Color.A
getset

Gets or sets the alpha component.

Definition at line 362 of file Color.cs.

Color Shift.Color.AliceBlue
staticgetset

AliceBlue color (R:240,G:248,B:255,A:255).

Definition at line 443 of file Color.cs.

Color Shift.Color.AntiqueWhite
staticgetset

AntiqueWhite color (R:250,G:235,B:215,A:255).

Definition at line 452 of file Color.cs.

Color Shift.Color.Aqua
staticgetset

Aqua color (R:0,G:255,B:255,A:255).

Definition at line 461 of file Color.cs.

Color Shift.Color.Aquamarine
staticgetset

Aquamarine color (R:127,G:255,B:212,A:255).

Definition at line 470 of file Color.cs.

Color Shift.Color.Azure
staticgetset

Azure color (R:240,G:255,B:255,A:255).

Definition at line 479 of file Color.cs.

byte Shift.Color.B
getset

Gets or sets the blue component.

Definition at line 305 of file Color.cs.

Color Shift.Color.Beige
staticgetset

Beige color (R:245,G:245,B:220,A:255).

Definition at line 488 of file Color.cs.

Color Shift.Color.Bisque
staticgetset

Bisque color (R:255,G:228,B:196,A:255).

Definition at line 497 of file Color.cs.

Color Shift.Color.Black
staticgetset

Black color (R:0,G:0,B:0,A:255).

Definition at line 506 of file Color.cs.

Color Shift.Color.BlanchedAlmond
staticgetset

BlanchedAlmond color (R:255,G:235,B:205,A:255).

Definition at line 515 of file Color.cs.

Color Shift.Color.Blue
staticgetset

Blue color (R:0,G:0,B:255,A:255).

Definition at line 524 of file Color.cs.

Color Shift.Color.BlueViolet
staticgetset

BlueViolet color (R:138,G:43,B:226,A:255).

Definition at line 533 of file Color.cs.

Color Shift.Color.Brown
staticgetset

Brown color (R:165,G:42,B:42,A:255).

Definition at line 542 of file Color.cs.

Color Shift.Color.BurlyWood
staticgetset

BurlyWood color (R:222,G:184,B:135,A:255).

Definition at line 551 of file Color.cs.

Color Shift.Color.CadetBlue
staticgetset

CadetBlue color (R:95,G:158,B:160,A:255).

Definition at line 560 of file Color.cs.

Color Shift.Color.Chartreuse
staticgetset

Chartreuse color (R:127,G:255,B:0,A:255).

Definition at line 569 of file Color.cs.

Color Shift.Color.Chocolate
staticgetset

Chocolate color (R:210,G:105,B:30,A:255).

Definition at line 578 of file Color.cs.

Color Shift.Color.Coral
staticgetset

Coral color (R:255,G:127,B:80,A:255).

Definition at line 587 of file Color.cs.

Color Shift.Color.CornflowerBlue
staticgetset

CornflowerBlue color (R:100,G:149,B:237,A:255).

Definition at line 596 of file Color.cs.

Color Shift.Color.Cornsilk
staticgetset

Cornsilk color (R:255,G:248,B:220,A:255).

Definition at line 605 of file Color.cs.

Color Shift.Color.Crimson
staticgetset

Crimson color (R:220,G:20,B:60,A:255).

Definition at line 614 of file Color.cs.

Color Shift.Color.Cyan
staticgetset

Cyan color (R:0,G:255,B:255,A:255).

Definition at line 623 of file Color.cs.

Color Shift.Color.DarkBlue
staticgetset

DarkBlue color (R:0,G:0,B:139,A:255).

Definition at line 632 of file Color.cs.

Color Shift.Color.DarkCyan
staticgetset

DarkCyan color (R:0,G:139,B:139,A:255).

Definition at line 641 of file Color.cs.

Color Shift.Color.DarkGoldenrod
staticgetset

DarkGoldenrod color (R:184,G:134,B:11,A:255).

Definition at line 650 of file Color.cs.

Color Shift.Color.DarkGray
staticgetset

DarkGray color (R:169,G:169,B:169,A:255).

Definition at line 659 of file Color.cs.

Color Shift.Color.DarkGreen
staticgetset

DarkGreen color (R:0,G:100,B:0,A:255).

Definition at line 668 of file Color.cs.

Color Shift.Color.DarkKhaki
staticgetset

DarkKhaki color (R:189,G:183,B:107,A:255).

Definition at line 677 of file Color.cs.

Color Shift.Color.DarkMagenta
staticgetset

DarkMagenta color (R:139,G:0,B:139,A:255).

Definition at line 686 of file Color.cs.

Color Shift.Color.DarkOliveGreen
staticgetset

DarkOliveGreen color (R:85,G:107,B:47,A:255).

Definition at line 695 of file Color.cs.

Color Shift.Color.DarkOrange
staticgetset

DarkOrange color (R:255,G:140,B:0,A:255).

Definition at line 704 of file Color.cs.

Color Shift.Color.DarkOrchid
staticgetset

DarkOrchid color (R:153,G:50,B:204,A:255).

Definition at line 713 of file Color.cs.

Color Shift.Color.DarkRed
staticgetset

DarkRed color (R:139,G:0,B:0,A:255).

Definition at line 722 of file Color.cs.

Color Shift.Color.DarkSalmon
staticgetset

DarkSalmon color (R:233,G:150,B:122,A:255).

Definition at line 731 of file Color.cs.

Color Shift.Color.DarkSeaGreen
staticgetset

DarkSeaGreen color (R:143,G:188,B:139,A:255).

Definition at line 740 of file Color.cs.

Color Shift.Color.DarkSlateBlue
staticgetset

DarkSlateBlue color (R:72,G:61,B:139,A:255).

Definition at line 749 of file Color.cs.

Color Shift.Color.DarkSlateGray
staticgetset

DarkSlateGray color (R:47,G:79,B:79,A:255).

Definition at line 758 of file Color.cs.

Color Shift.Color.DarkTurquoise
staticgetset

DarkTurquoise color (R:0,G:206,B:209,A:255).

Definition at line 767 of file Color.cs.

Color Shift.Color.DarkViolet
staticgetset

DarkViolet color (R:148,G:0,B:211,A:255).

Definition at line 776 of file Color.cs.

Color Shift.Color.DeepPink
staticgetset

DeepPink color (R:255,G:20,B:147,A:255).

Definition at line 785 of file Color.cs.

Color Shift.Color.DeepSkyBlue
staticgetset

DeepSkyBlue color (R:0,G:191,B:255,A:255).

Definition at line 794 of file Color.cs.

Color Shift.Color.DimGray
staticgetset

DimGray color (R:105,G:105,B:105,A:255).

Definition at line 803 of file Color.cs.

Color Shift.Color.DodgerBlue
staticgetset

DodgerBlue color (R:30,G:144,B:255,A:255).

Definition at line 812 of file Color.cs.

Color Shift.Color.Firebrick
staticgetset

Firebrick color (R:178,G:34,B:34,A:255).

Definition at line 821 of file Color.cs.

Color Shift.Color.FloralWhite
staticgetset

FloralWhite color (R:255,G:250,B:240,A:255).

Definition at line 830 of file Color.cs.

Color Shift.Color.ForestGreen
staticgetset

ForestGreen color (R:34,G:139,B:34,A:255).

Definition at line 839 of file Color.cs.

Color Shift.Color.Fuchsia
staticgetset

Fuchsia color (R:255,G:0,B:255,A:255).

Definition at line 848 of file Color.cs.

byte Shift.Color.G
getset

Gets or sets the green component.

Definition at line 324 of file Color.cs.

Color Shift.Color.Gainsboro
staticgetset

Gainsboro color (R:220,G:220,B:220,A:255).

Definition at line 857 of file Color.cs.

Color Shift.Color.GhostWhite
staticgetset

GhostWhite color (R:248,G:248,B:255,A:255).

Definition at line 866 of file Color.cs.

Color Shift.Color.Gold
staticgetset

Gold color (R:255,G:215,B:0,A:255).

Definition at line 874 of file Color.cs.

Color Shift.Color.Goldenrod
staticgetset

Goldenrod color (R:218,G:165,B:32,A:255).

Definition at line 883 of file Color.cs.

Color Shift.Color.Gray
staticgetset

Gray color (R:128,G:128,B:128,A:255).

Definition at line 892 of file Color.cs.

Color Shift.Color.Green
staticgetset

Green color (R:0,G:128,B:0,A:255).

Definition at line 901 of file Color.cs.

Color Shift.Color.GreenYellow
staticgetset

GreenYellow color (R:173,G:255,B:47,A:255).

Definition at line 910 of file Color.cs.

Color Shift.Color.Honeydew
staticgetset

Honeydew color (R:240,G:255,B:240,A:255).

Definition at line 919 of file Color.cs.

Color Shift.Color.HotPink
staticgetset

HotPink color (R:255,G:105,B:180,A:255).

Definition at line 928 of file Color.cs.

Color Shift.Color.IndianRed
staticgetset

IndianRed color (R:205,G:92,B:92,A:255).

Definition at line 937 of file Color.cs.

Color Shift.Color.Indigo
staticgetset

Indigo color (R:75,G:0,B:130,A:255).

Definition at line 946 of file Color.cs.

Color Shift.Color.Ivory
staticgetset

Ivory color (R:255,G:255,B:240,A:255).

Definition at line 955 of file Color.cs.

Color Shift.Color.Khaki
staticgetset

Khaki color (R:240,G:230,B:140,A:255).

Definition at line 964 of file Color.cs.

Color Shift.Color.Lavender
staticgetset

Lavender color (R:230,G:230,B:250,A:255).

Definition at line 973 of file Color.cs.

Color Shift.Color.LavenderBlush
staticgetset

LavenderBlush color (R:255,G:240,B:245,A:255).

Definition at line 982 of file Color.cs.

Color Shift.Color.LawnGreen
staticgetset

LawnGreen color (R:124,G:252,B:0,A:255).

Definition at line 991 of file Color.cs.

Color Shift.Color.LemonChiffon
staticgetset

LemonChiffon color (R:255,G:250,B:205,A:255).

Definition at line 1000 of file Color.cs.

Color Shift.Color.LightBlue
staticgetset

LightBlue color (R:173,G:216,B:230,A:255).

Definition at line 1009 of file Color.cs.

Color Shift.Color.LightCoral
staticgetset

LightCoral color (R:240,G:128,B:128,A:255).

Definition at line 1018 of file Color.cs.

Color Shift.Color.LightCyan
staticgetset

LightCyan color (R:224,G:255,B:255,A:255).

Definition at line 1027 of file Color.cs.

Color Shift.Color.LightGoldenrodYellow
staticgetset

LightGoldenrodYellow color (R:250,G:250,B:210,A:255).

Definition at line 1036 of file Color.cs.

Color Shift.Color.LightGray
staticgetset

LightGray color (R:211,G:211,B:211,A:255).

Definition at line 1045 of file Color.cs.

Color Shift.Color.LightGreen
staticgetset

LightGreen color (R:144,G:238,B:144,A:255).

Definition at line 1054 of file Color.cs.

Color Shift.Color.LightPink
staticgetset

LightPink color (R:255,G:182,B:193,A:255).

Definition at line 1063 of file Color.cs.

Color Shift.Color.LightSalmon
staticgetset

LightSalmon color (R:255,G:160,B:122,A:255).

Definition at line 1072 of file Color.cs.

Color Shift.Color.LightSeaGreen
staticgetset

LightSeaGreen color (R:32,G:178,B:170,A:255).

Definition at line 1081 of file Color.cs.

Color Shift.Color.LightSkyBlue
staticgetset

LightSkyBlue color (R:135,G:206,B:250,A:255).

Definition at line 1090 of file Color.cs.

Color Shift.Color.LightSlateGray
staticgetset

LightSlateGray color (R:119,G:136,B:153,A:255).

Definition at line 1099 of file Color.cs.

Color Shift.Color.LightSteelBlue
staticgetset

LightSteelBlue color (R:176,G:196,B:222,A:255).

Definition at line 1108 of file Color.cs.

Color Shift.Color.LightYellow
staticgetset

LightYellow color (R:255,G:255,B:224,A:255).

Definition at line 1117 of file Color.cs.

Color Shift.Color.Lime
staticgetset

Lime color (R:0,G:255,B:0,A:255).

Definition at line 1126 of file Color.cs.

Color Shift.Color.LimeGreen
staticgetset

LimeGreen color (R:50,G:205,B:50,A:255).

Definition at line 1135 of file Color.cs.

Color Shift.Color.Linen
staticgetset

Linen color (R:250,G:240,B:230,A:255).

Definition at line 1144 of file Color.cs.

Color Shift.Color.Magenta
staticgetset

Magenta color (R:255,G:0,B:255,A:255).

Definition at line 1153 of file Color.cs.

Color Shift.Color.Maroon
staticgetset

Maroon color (R:128,G:0,B:0,A:255).

Definition at line 1162 of file Color.cs.

Color Shift.Color.MediumAquamarine
staticgetset

MediumAquamarine color (R:102,G:205,B:170,A:255).

Definition at line 1171 of file Color.cs.

Color Shift.Color.MediumBlue
staticgetset

MediumBlue color (R:0,G:0,B:205,A:255).

Definition at line 1180 of file Color.cs.

Color Shift.Color.MediumOrchid
staticgetset

MediumOrchid color (R:186,G:85,B:211,A:255).

Definition at line 1189 of file Color.cs.

Color Shift.Color.MediumPurple
staticgetset

MediumPurple color (R:147,G:112,B:219,A:255).

Definition at line 1198 of file Color.cs.

Color Shift.Color.MediumSeaGreen
staticgetset

MediumSeaGreen color (R:60,G:179,B:113,A:255).

Definition at line 1207 of file Color.cs.

Color Shift.Color.MediumSlateBlue
staticgetset

MediumSlateBlue color (R:123,G:104,B:238,A:255).

Definition at line 1216 of file Color.cs.

Color Shift.Color.MediumSpringGreen
staticgetset

MediumSpringGreen color (R:0,G:250,B:154,A:255).

Definition at line 1225 of file Color.cs.

Color Shift.Color.MediumTurquoise
staticgetset

MediumTurquoise color (R:72,G:209,B:204,A:255).

Definition at line 1234 of file Color.cs.

Color Shift.Color.MediumVioletRed
staticgetset

MediumVioletRed color (R:199,G:21,B:133,A:255).

Definition at line 1243 of file Color.cs.

Color Shift.Color.MidnightBlue
staticgetset

MidnightBlue color (R:25,G:25,B:112,A:255).

Definition at line 1252 of file Color.cs.

Color Shift.Color.MintCream
staticgetset

MintCream color (R:245,G:255,B:250,A:255).

Definition at line 1261 of file Color.cs.

Color Shift.Color.MistyRose
staticgetset

MistyRose color (R:255,G:228,B:225,A:255).

Definition at line 1270 of file Color.cs.

Color Shift.Color.Moccasin
staticgetset

Moccasin color (R:255,G:228,B:181,A:255).

Definition at line 1279 of file Color.cs.

Color Shift.Color.MonoGameOrange
staticgetset

MonoGame orange theme color (R:231,G:60,B:0,A:255).

Definition at line 1288 of file Color.cs.

Color Shift.Color.NavajoWhite
staticgetset

NavajoWhite color (R:255,G:222,B:173,A:255).

Definition at line 1297 of file Color.cs.

Color Shift.Color.Navy
staticgetset

Navy color (R:0,G:0,B:128,A:255).

Definition at line 1306 of file Color.cs.

Color Shift.Color.OldLace
staticgetset

OldLace color (R:253,G:245,B:230,A:255).

Definition at line 1315 of file Color.cs.

Color Shift.Color.Olive
staticgetset

Olive color (R:128,G:128,B:0,A:255).

Definition at line 1324 of file Color.cs.

Color Shift.Color.OliveDrab
staticgetset

OliveDrab color (R:107,G:142,B:35,A:255).

Definition at line 1333 of file Color.cs.

Color Shift.Color.Orange
staticgetset

Orange color (R:255,G:165,B:0,A:255).

Definition at line 1342 of file Color.cs.

Color Shift.Color.OrangeRed
staticgetset

OrangeRed color (R:255,G:69,B:0,A:255).

Definition at line 1351 of file Color.cs.

Color Shift.Color.Orchid
staticgetset

Orchid color (R:218,G:112,B:214,A:255).

Definition at line 1360 of file Color.cs.

UInt32 Shift.Color.PackedValue
getset

Gets or sets packed value of this Color.

Definition at line 1784 of file Color.cs.

Color Shift.Color.PaleGoldenrod
staticgetset

PaleGoldenrod color (R:238,G:232,B:170,A:255).

Definition at line 1369 of file Color.cs.

Color Shift.Color.PaleGreen
staticgetset

PaleGreen color (R:152,G:251,B:152,A:255).

Definition at line 1378 of file Color.cs.

Color Shift.Color.PaleTurquoise
staticgetset

PaleTurquoise color (R:175,G:238,B:238,A:255).

Definition at line 1387 of file Color.cs.

Color Shift.Color.PaleVioletRed
staticgetset

PaleVioletRed color (R:219,G:112,B:147,A:255).

Definition at line 1395 of file Color.cs.

Color Shift.Color.PapayaWhip
staticgetset

PapayaWhip color (R:255,G:239,B:213,A:255).

Definition at line 1404 of file Color.cs.

Color Shift.Color.PeachPuff
staticgetset

PeachPuff color (R:255,G:218,B:185,A:255).

Definition at line 1413 of file Color.cs.

Color Shift.Color.Peru
staticgetset

Peru color (R:205,G:133,B:63,A:255).

Definition at line 1422 of file Color.cs.

Color Shift.Color.Pink
staticgetset

Pink color (R:255,G:192,B:203,A:255).

Definition at line 1431 of file Color.cs.

Color Shift.Color.Plum
staticgetset

Plum color (R:221,G:160,B:221,A:255).

Definition at line 1440 of file Color.cs.

Color Shift.Color.PowderBlue
staticgetset

PowderBlue color (R:176,G:224,B:230,A:255).

Definition at line 1449 of file Color.cs.

Color Shift.Color.Purple
staticgetset

Purple color (R:128,G:0,B:128,A:255).

Definition at line 1458 of file Color.cs.

byte Shift.Color.R
getset

Gets or sets the red component.

Definition at line 343 of file Color.cs.

Color Shift.Color.Red
staticgetset

Red color (R:255,G:0,B:0,A:255).

Definition at line 1467 of file Color.cs.

Color Shift.Color.RosyBrown
staticgetset

RosyBrown color (R:188,G:143,B:143,A:255).

Definition at line 1476 of file Color.cs.

Color Shift.Color.RoyalBlue
staticgetset

RoyalBlue color (R:65,G:105,B:225,A:255).

Definition at line 1485 of file Color.cs.

Color Shift.Color.SaddleBrown
staticgetset

SaddleBrown color (R:139,G:69,B:19,A:255).

Definition at line 1494 of file Color.cs.

Color Shift.Color.Salmon
staticgetset

Salmon color (R:250,G:128,B:114,A:255).

Definition at line 1503 of file Color.cs.

Color Shift.Color.SandyBrown
staticgetset

SandyBrown color (R:244,G:164,B:96,A:255).

Definition at line 1512 of file Color.cs.

Color Shift.Color.SeaGreen
staticgetset

SeaGreen color (R:46,G:139,B:87,A:255).

Definition at line 1521 of file Color.cs.

Color Shift.Color.SeaShell
staticgetset

SeaShell color (R:255,G:245,B:238,A:255).

Definition at line 1530 of file Color.cs.

Color Shift.Color.Sienna
staticgetset

Sienna color (R:160,G:82,B:45,A:255).

Definition at line 1539 of file Color.cs.

Color Shift.Color.Silver
staticgetset

Silver color (R:192,G:192,B:192,A:255).

Definition at line 1548 of file Color.cs.

Color Shift.Color.SkyBlue
staticgetset

SkyBlue color (R:135,G:206,B:235,A:255).

Definition at line 1557 of file Color.cs.

Color Shift.Color.SlateBlue
staticgetset

SlateBlue color (R:106,G:90,B:205,A:255).

Definition at line 1566 of file Color.cs.

Color Shift.Color.SlateGray
staticgetset

SlateGray color (R:112,G:128,B:144,A:255).

Definition at line 1575 of file Color.cs.

Color Shift.Color.Snow
staticgetset

Snow color (R:255,G:250,B:250,A:255).

Definition at line 1584 of file Color.cs.

Color Shift.Color.SpringGreen
staticgetset

SpringGreen color (R:0,G:255,B:127,A:255).

Definition at line 1593 of file Color.cs.

Color Shift.Color.SteelBlue
staticgetset

SteelBlue color (R:70,G:130,B:180,A:255).

Definition at line 1602 of file Color.cs.

Color Shift.Color.Tan
staticgetset

Tan color (R:210,G:180,B:140,A:255).

Definition at line 1611 of file Color.cs.

Color Shift.Color.Teal
staticgetset

Teal color (R:0,G:128,B:128,A:255).

Definition at line 1620 of file Color.cs.

Color Shift.Color.Thistle
staticgetset

Thistle color (R:216,G:191,B:216,A:255).

Definition at line 1629 of file Color.cs.

Color Shift.Color.Tomato
staticgetset

Tomato color (R:255,G:99,B:71,A:255).

Definition at line 1638 of file Color.cs.

Color Shift.Color.Transparent
staticgetset

Transparent color (R:0,G:0,B:0,A:0).

Definition at line 434 of file Color.cs.

Color Shift.Color.TransparentBlack
staticgetset

TransparentBlack color (R:0,G:0,B:0,A:0).

Definition at line 425 of file Color.cs.

Color Shift.Color.Turquoise
staticgetset

Turquoise color (R:64,G:224,B:208,A:255).

Definition at line 1647 of file Color.cs.

Color Shift.Color.Violet
staticgetset

Violet color (R:238,G:130,B:238,A:255).

Definition at line 1656 of file Color.cs.

Color Shift.Color.Wheat
staticgetset

Wheat color (R:245,G:222,B:179,A:255).

Definition at line 1665 of file Color.cs.

Color Shift.Color.White
staticgetset

White color (R:255,G:255,B:255,A:255).

Definition at line 1674 of file Color.cs.

Color Shift.Color.WhiteSmoke
staticgetset

WhiteSmoke color (R:245,G:245,B:245,A:255).

Definition at line 1683 of file Color.cs.

Color Shift.Color.Yellow
staticgetset

Yellow color (R:255,G:255,B:0,A:255).

Definition at line 1692 of file Color.cs.

Color Shift.Color.YellowGreen
staticgetset

YellowGreen color (R:154,G:205,B:50,A:255).

Definition at line 1701 of file Color.cs.


The documentation for this struct was generated from the following file: