Nebula
Loading...
Searching...
No Matches
Mathf.Color Struct Reference

Detailed Description

Describes a 32-bit packed color.

Inherits IEquatable< Color >.

Public Member Functions

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

Static Public Member Functions

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

Properties

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

Private Attributes

uint _packedValue
 

Constructor & Destructor Documentation

◆ Color() [1/11]

static Mathf.Color.Color ( )
inlinestatic

◆ Color() [2/11]

Mathf.Color.Color ( uint packedValue)
inline

Constructs an RGBA color from a packed value.

The value is a 32-bit unsigned integer, with R in the least significant octet.

Parameters
packedValueThe packed value.

◆ Color() [3/11]

Mathf.Color.Color ( Vector4 color)
inline

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

Parameters
colorA Vector4 representing color.

◆ Color() [4/11]

Mathf.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.

◆ Color() [5/11]

Mathf.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.

◆ Color() [6/11]

Mathf.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.

◆ Color() [7/11]

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

Constructs an RGBA color from scalars 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.

◆ Color() [8/11]

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

Constructs an RGBA color from scalars 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.

◆ Color() [9/11]

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

Constructs an RGBA color from scalars 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.

◆ Color() [10/11]

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

Constructs an RGBA color from scalars 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.

◆ Color() [11/11]

Mathf.Color.Color ( byte r,
byte g,
byte b,
byte alpha )
inline

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

This overload sets the values directly without clamping, and may therefore be faster than the other overloads.

Parameters
r
g
b
alpha

Member Function Documentation

◆ Deconstruct() [1/2]

void Mathf.Color.Deconstruct ( out float r,
out float g,
out float b )
inline

Deconstruction method for Color.

Parameters
r
g
b

◆ Deconstruct() [2/2]

void Mathf.Color.Deconstruct ( out float r,
out float g,
out float b,
out float a )
inline

Deconstruction method for Color with Alpha.

Parameters
r
g
b
a

◆ Equals() [1/2]

bool Mathf.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.

◆ Equals() [2/2]

override bool Mathf.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.

◆ FromNonPremultiplied() [1/2]

static Color Mathf.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.

◆ FromNonPremultiplied() [2/2]

static Color Mathf.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.

◆ GetHashCode()

override int Mathf.Color.GetHashCode ( )
inline

Gets the hash code of this Color.

Returns
Hash code of this Color.

◆ Lerp()

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

Performs linear interpolation of Color.

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

◆ LerpPrecise()

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

Color.Lerp should be used instead of this function.

Returns
Interpolated Color.

◆ Multiply()

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

Multiply Color by value.

Parameters
valueSource Color.
scaleMultiplicator.
Returns
Multiplication result.

◆ operator!=()

static bool Mathf.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.


◆ operator*()

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

Multiply Color by value.

Parameters
valueSource Color.
scaleMultiplicator.
Returns
Multiplication result.

◆ operator==()

static bool Mathf.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.

◆ ToString()

override string Mathf.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.

◆ ToVector3()

Vector3 Mathf.Color.ToVector3 ( )
inline

Gets a Vector3 representation for this object.

Returns
A Vector3 representation for this object.

◆ ToVector4()

Vector4 Mathf.Color.ToVector4 ( )
inline

Gets a Vector4 representation for this object.

Returns
A Vector4 representation for this object.

Member Data Documentation

◆ _packedValue

uint Mathf.Color._packedValue
private

Property Documentation

◆ A

byte Mathf.Color.A
getset

Gets or sets the alpha component.

◆ AliceBlue

Color Mathf.Color.AliceBlue
staticgetprivate set

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

◆ AntiqueWhite

Color Mathf.Color.AntiqueWhite
staticgetprivate set

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

◆ Aqua

Color Mathf.Color.Aqua
staticgetprivate set

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

◆ Aquamarine

Color Mathf.Color.Aquamarine
staticgetprivate set

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

◆ Azure

Color Mathf.Color.Azure
staticgetprivate set

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

◆ B

byte Mathf.Color.B
getset

Gets or sets the blue component.

◆ Beige

Color Mathf.Color.Beige
staticgetprivate set

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

◆ Bisque

Color Mathf.Color.Bisque
staticgetprivate set

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

◆ Black

Color Mathf.Color.Black
staticgetprivate set

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

◆ BlanchedAlmond

Color Mathf.Color.BlanchedAlmond
staticgetprivate set

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

◆ Blue

Color Mathf.Color.Blue
staticgetprivate set

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

◆ BlueViolet

Color Mathf.Color.BlueViolet
staticgetprivate set

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

◆ Brown

Color Mathf.Color.Brown
staticgetprivate set

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

◆ BurlyWood

Color Mathf.Color.BurlyWood
staticgetprivate set

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

◆ CadetBlue

Color Mathf.Color.CadetBlue
staticgetprivate set

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

◆ Chartreuse

Color Mathf.Color.Chartreuse
staticgetprivate set

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

◆ Chocolate

Color Mathf.Color.Chocolate
staticgetprivate set

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

◆ Coral

Color Mathf.Color.Coral
staticgetprivate set

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

◆ CornflowerBlue

Color Mathf.Color.CornflowerBlue
staticgetprivate set

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

◆ Cornsilk

Color Mathf.Color.Cornsilk
staticgetprivate set

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

◆ Crimson

Color Mathf.Color.Crimson
staticgetprivate set

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

◆ Cyan

Color Mathf.Color.Cyan
staticgetprivate set

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

◆ DarkBlue

Color Mathf.Color.DarkBlue
staticgetprivate set

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

◆ DarkCyan

Color Mathf.Color.DarkCyan
staticgetprivate set

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

◆ DarkGoldenrod

Color Mathf.Color.DarkGoldenrod
staticgetprivate set

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

◆ DarkGray

Color Mathf.Color.DarkGray
staticgetprivate set

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

◆ DarkGreen

Color Mathf.Color.DarkGreen
staticgetprivate set

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

◆ DarkKhaki

Color Mathf.Color.DarkKhaki
staticgetprivate set

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

◆ DarkMagenta

Color Mathf.Color.DarkMagenta
staticgetprivate set

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

◆ DarkOliveGreen

Color Mathf.Color.DarkOliveGreen
staticgetprivate set

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

◆ DarkOrange

Color Mathf.Color.DarkOrange
staticgetprivate set

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

◆ DarkOrchid

Color Mathf.Color.DarkOrchid
staticgetprivate set

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

◆ DarkRed

Color Mathf.Color.DarkRed
staticgetprivate set

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

◆ DarkSalmon

Color Mathf.Color.DarkSalmon
staticgetprivate set

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

◆ DarkSeaGreen

Color Mathf.Color.DarkSeaGreen
staticgetprivate set

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

◆ DarkSlateBlue

Color Mathf.Color.DarkSlateBlue
staticgetprivate set

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

◆ DarkSlateGray

Color Mathf.Color.DarkSlateGray
staticgetprivate set

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

◆ DarkTurquoise

Color Mathf.Color.DarkTurquoise
staticgetprivate set

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

◆ DarkViolet

Color Mathf.Color.DarkViolet
staticgetprivate set

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

◆ DebugDisplayString

string Mathf.Color.DebugDisplayString
getpackage

◆ DeepPink

Color Mathf.Color.DeepPink
staticgetprivate set

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

◆ DeepSkyBlue

Color Mathf.Color.DeepSkyBlue
staticgetprivate set

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

◆ DimGray

Color Mathf.Color.DimGray
staticgetprivate set

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

◆ DodgerBlue

Color Mathf.Color.DodgerBlue
staticgetprivate set

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

◆ Firebrick

Color Mathf.Color.Firebrick
staticgetprivate set

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

◆ FloralWhite

Color Mathf.Color.FloralWhite
staticgetprivate set

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

◆ ForestGreen

Color Mathf.Color.ForestGreen
staticgetprivate set

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

◆ Fuchsia

Color Mathf.Color.Fuchsia
staticgetprivate set

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

◆ G

byte Mathf.Color.G
getset

Gets or sets the green component.

◆ Gainsboro

Color Mathf.Color.Gainsboro
staticgetprivate set

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

◆ GhostWhite

Color Mathf.Color.GhostWhite
staticgetprivate set

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

◆ Gold

Color Mathf.Color.Gold
staticgetprivate set

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

◆ Goldenrod

Color Mathf.Color.Goldenrod
staticgetprivate set

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

◆ Gray

Color Mathf.Color.Gray
staticgetprivate set

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

◆ Green

Color Mathf.Color.Green
staticgetprivate set

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

◆ GreenYellow

Color Mathf.Color.GreenYellow
staticgetprivate set

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

◆ Honeydew

Color Mathf.Color.Honeydew
staticgetprivate set

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

◆ HotPink

Color Mathf.Color.HotPink
staticgetprivate set

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

◆ IndianRed

Color Mathf.Color.IndianRed
staticgetprivate set

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

◆ Indigo

Color Mathf.Color.Indigo
staticgetprivate set

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

◆ Ivory

Color Mathf.Color.Ivory
staticgetprivate set

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

◆ Khaki

Color Mathf.Color.Khaki
staticgetprivate set

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

◆ Lavender

Color Mathf.Color.Lavender
staticgetprivate set

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

◆ LavenderBlush

Color Mathf.Color.LavenderBlush
staticgetprivate set

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

◆ LawnGreen

Color Mathf.Color.LawnGreen
staticgetprivate set

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

◆ LemonChiffon

Color Mathf.Color.LemonChiffon
staticgetprivate set

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

◆ LightBlue

Color Mathf.Color.LightBlue
staticgetprivate set

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

◆ LightCoral

Color Mathf.Color.LightCoral
staticgetprivate set

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

◆ LightCyan

Color Mathf.Color.LightCyan
staticgetprivate set

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

◆ LightGoldenrodYellow

Color Mathf.Color.LightGoldenrodYellow
staticgetprivate set

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

◆ LightGray

Color Mathf.Color.LightGray
staticgetprivate set

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

◆ LightGreen

Color Mathf.Color.LightGreen
staticgetprivate set

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

◆ LightPink

Color Mathf.Color.LightPink
staticgetprivate set

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

◆ LightSalmon

Color Mathf.Color.LightSalmon
staticgetprivate set

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

◆ LightSeaGreen

Color Mathf.Color.LightSeaGreen
staticgetprivate set

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

◆ LightSkyBlue

Color Mathf.Color.LightSkyBlue
staticgetprivate set

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

◆ LightSlateGray

Color Mathf.Color.LightSlateGray
staticgetprivate set

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

◆ LightSteelBlue

Color Mathf.Color.LightSteelBlue
staticgetprivate set

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

◆ LightYellow

Color Mathf.Color.LightYellow
staticgetprivate set

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

◆ Lime

Color Mathf.Color.Lime
staticgetprivate set

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

◆ LimeGreen

Color Mathf.Color.LimeGreen
staticgetprivate set

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

◆ Linen

Color Mathf.Color.Linen
staticgetprivate set

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

◆ Magenta

Color Mathf.Color.Magenta
staticgetprivate set

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

◆ Maroon

Color Mathf.Color.Maroon
staticgetprivate set

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

◆ MediumAquamarine

Color Mathf.Color.MediumAquamarine
staticgetprivate set

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

◆ MediumBlue

Color Mathf.Color.MediumBlue
staticgetprivate set

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

◆ MediumOrchid

Color Mathf.Color.MediumOrchid
staticgetprivate set

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

◆ MediumPurple

Color Mathf.Color.MediumPurple
staticgetprivate set

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

◆ MediumSeaGreen

Color Mathf.Color.MediumSeaGreen
staticgetprivate set

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

◆ MediumSlateBlue

Color Mathf.Color.MediumSlateBlue
staticgetprivate set

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

◆ MediumSpringGreen

Color Mathf.Color.MediumSpringGreen
staticgetprivate set

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

◆ MediumTurquoise

Color Mathf.Color.MediumTurquoise
staticgetprivate set

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

◆ MediumVioletRed

Color Mathf.Color.MediumVioletRed
staticgetprivate set

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

◆ MidnightBlue

Color Mathf.Color.MidnightBlue
staticgetprivate set

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

◆ MintCream

Color Mathf.Color.MintCream
staticgetprivate set

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

◆ MistyRose

Color Mathf.Color.MistyRose
staticgetprivate set

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

◆ Moccasin

Color Mathf.Color.Moccasin
staticgetprivate set

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

◆ MonoGameOrange

Color Mathf.Color.MonoGameOrange
staticgetprivate set

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

◆ NavajoWhite

Color Mathf.Color.NavajoWhite
staticgetprivate set

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

◆ Navy

Color Mathf.Color.Navy
staticgetprivate set

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

◆ OldLace

Color Mathf.Color.OldLace
staticgetprivate set

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

◆ Olive

Color Mathf.Color.Olive
staticgetprivate set

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

◆ OliveDrab

Color Mathf.Color.OliveDrab
staticgetprivate set

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

◆ Orange

Color Mathf.Color.Orange
staticgetprivate set

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

◆ OrangeRed

Color Mathf.Color.OrangeRed
staticgetprivate set

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

◆ Orchid

Color Mathf.Color.Orchid
staticgetprivate set

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

◆ PackedValue

UInt32 Mathf.Color.PackedValue
getset

Gets or sets packed value of this Color.

◆ PaleGoldenrod

Color Mathf.Color.PaleGoldenrod
staticgetprivate set

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

◆ PaleGreen

Color Mathf.Color.PaleGreen
staticgetprivate set

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

◆ PaleTurquoise

Color Mathf.Color.PaleTurquoise
staticgetprivate set

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

◆ PaleVioletRed

Color Mathf.Color.PaleVioletRed
staticgetprivate set

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

◆ PapayaWhip

Color Mathf.Color.PapayaWhip
staticgetprivate set

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

◆ PeachPuff

Color Mathf.Color.PeachPuff
staticgetprivate set

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

◆ Peru

Color Mathf.Color.Peru
staticgetprivate set

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

◆ Pink

Color Mathf.Color.Pink
staticgetprivate set

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

◆ Plum

Color Mathf.Color.Plum
staticgetprivate set

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

◆ PowderBlue

Color Mathf.Color.PowderBlue
staticgetprivate set

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

◆ Purple

Color Mathf.Color.Purple
staticgetprivate set

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

◆ R

byte Mathf.Color.R
getset

Gets or sets the red component.

◆ Red

Color Mathf.Color.Red
staticgetprivate set

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

◆ RosyBrown

Color Mathf.Color.RosyBrown
staticgetprivate set

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

◆ RoyalBlue

Color Mathf.Color.RoyalBlue
staticgetprivate set

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

◆ SaddleBrown

Color Mathf.Color.SaddleBrown
staticgetprivate set

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

◆ Salmon

Color Mathf.Color.Salmon
staticgetprivate set

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

◆ SandyBrown

Color Mathf.Color.SandyBrown
staticgetprivate set

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

◆ SeaGreen

Color Mathf.Color.SeaGreen
staticgetprivate set

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

◆ SeaShell

Color Mathf.Color.SeaShell
staticgetprivate set

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

◆ Sienna

Color Mathf.Color.Sienna
staticgetprivate set

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

◆ Silver

Color Mathf.Color.Silver
staticgetprivate set

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

◆ SkyBlue

Color Mathf.Color.SkyBlue
staticgetprivate set

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

◆ SlateBlue

Color Mathf.Color.SlateBlue
staticgetprivate set

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

◆ SlateGray

Color Mathf.Color.SlateGray
staticgetprivate set

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

◆ Snow

Color Mathf.Color.Snow
staticgetprivate set

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

◆ SpringGreen

Color Mathf.Color.SpringGreen
staticgetprivate set

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

◆ SteelBlue

Color Mathf.Color.SteelBlue
staticgetprivate set

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

◆ Tan

Color Mathf.Color.Tan
staticgetprivate set

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

◆ Teal

Color Mathf.Color.Teal
staticgetprivate set

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

◆ Thistle

Color Mathf.Color.Thistle
staticgetprivate set

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

◆ Tomato

Color Mathf.Color.Tomato
staticgetprivate set

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

◆ Transparent

Color Mathf.Color.Transparent
staticgetprivate set

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

◆ TransparentBlack

Color Mathf.Color.TransparentBlack
staticgetprivate set

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

◆ Turquoise

Color Mathf.Color.Turquoise
staticgetprivate set

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

◆ Violet

Color Mathf.Color.Violet
staticgetprivate set

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

◆ Wheat

Color Mathf.Color.Wheat
staticgetprivate set

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

◆ White

Color Mathf.Color.White
staticgetprivate set

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

◆ WhiteSmoke

Color Mathf.Color.WhiteSmoke
staticgetprivate set

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

◆ Yellow

Color Mathf.Color.Yellow
staticgetprivate set

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

◆ YellowGreen

Color Mathf.Color.YellowGreen
staticgetprivate set

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


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