This repository was archived by the owner on Dec 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
VRageMath.Color
Malware edited this page Dec 21, 2018
·
53 revisions
← Index
Namespace: VRageMath
Assembly: VRage.Math.dll
Implements:
Represents a four-component color using red, green, blue, and alpha data.
| [`uint PackedValue`](VRageMath.PackedValue) | Gets the current color as a packed value. |
| [`byte X`](VRageMath.X) | Gets or sets the red component value of this Color. |
| [`byte Y`](VRageMath.Y) | Gets or sets the green component value of this Color. |
| [`byte Z`](VRageMath.Z) | Gets or sets the blue component value of this Color. |
| [`byte R`](VRageMath.R) | Gets or sets the red component value of this Color. |
| [`byte G`](VRageMath.G) | Gets or sets the green component value of this Color. |
| [`byte B`](VRageMath.B) | Gets or sets the blue component value of this Color. |
| [`byte A`](VRageMath.A) | Gets or sets the alpha component value. |
| static [`Color Transparent`](VRageMath.Transparent) | Gets a system-defined color with the value R:0 G:0 B:0 A:0. |
| static [`Color AliceBlue`](VRageMath.AliceBlue) | Gets a system-defined color with the value R:240 G:248 B:255 A:255. |
| static [`Color AntiqueWhite`](VRageMath.AntiqueWhite) | Gets a system-defined color with the value R:250 G:235 B:215 A:255. |
| static [`Color Aqua`](VRageMath.Aqua) | Gets a system-defined color with the value R:0 G:255 B:255 A:255. |
| static [`Color Aquamarine`](VRageMath.Aquamarine) | Gets a system-defined color with the value R:127 G:255 B:212 A:255. |
| static [`Color Azure`](VRageMath.Azure) | Gets a system-defined color with the value R:240 G:255 B:255 A:255. |
| static [`Color Beige`](VRageMath.Beige) | Gets a system-defined color with the value R:245 G:245 B:220 A:255. |
| static [`Color Bisque`](VRageMath.Bisque) | Gets a system-defined color with the value R:255 G:228 B:196 A:255. |
| static [`Color Black`](VRageMath.Black) | Gets a system-defined color with the value R:0 G:0 B:0 A:255. |
| static [`Color BlanchedAlmond`](VRageMath.BlanchedAlmond) | Gets a system-defined color with the value R:255 G:235 B:205 A:255. |
| static [`Color Blue`](VRageMath.Blue) | Gets a system-defined color with the value R:0 G:0 B:255 A:255. |
| static [`Color BlueViolet`](VRageMath.BlueViolet) | Gets a system-defined color with the value R:138 G:43 B:226 A:255. |
| static [`Color Brown`](VRageMath.Brown) | Gets a system-defined color with the value R:165 G:42 B:42 A:255. |
| static [`Color BurlyWood`](VRageMath.BurlyWood) | Gets a system-defined color with the value R:222 G:184 B:135 A:255. |
| static [`Color CadetBlue`](VRageMath.CadetBlue) | Gets a system-defined color with the value R:95 G:158 B:160 A:255. |
| static [`Color Chartreuse`](VRageMath.Chartreuse) | Gets a system-defined color with the value R:127 G:255 B:0 A:255. |
| static [`Color Chocolate`](VRageMath.Chocolate) | Gets a system-defined color with the value R:210 G:105 B:30 A:255. |
| static [`Color Coral`](VRageMath.Coral) | Gets a system-defined color with the value R:255 G:127 B:80 A:255. |
| static [`Color CornflowerBlue`](VRageMath.CornflowerBlue) | Gets a system-defined color with the value R:100 G:149 B:237 A:255. |
| static [`Color Cornsilk`](VRageMath.Cornsilk) | Gets a system-defined color with the value R:255 G:248 B:220 A:255. |
| static [`Color Crimson`](VRageMath.Crimson) | Gets a system-defined color with the value R:220 G:20 B:60 A:255. |
| static [`Color Cyan`](VRageMath.Cyan) | Gets a system-defined color with the value R:0 G:255 B:255 A:255. |
| static [`Color DarkBlue`](VRageMath.DarkBlue) | Gets a system-defined color with the value R:0 G:0 B:139 A:255. |
| static [`Color DarkCyan`](VRageMath.DarkCyan) | Gets a system-defined color with the value R:0 G:139 B:139 A:255. |
| static [`Color DarkGoldenrod`](VRageMath.DarkGoldenrod) | Gets a system-defined color with the value R:184 G:134 B:11 A:255. |
| static [`Color DarkGray`](VRageMath.DarkGray) | Gets a system-defined color with the value R:169 G:169 B:169 A:255. |
| static [`Color DarkGreen`](VRageMath.DarkGreen) | Gets a system-defined color with the value R:0 G:100 B:0 A:255. |
| static [`Color DarkKhaki`](VRageMath.DarkKhaki) | Gets a system-defined color with the value R:189 G:183 B:107 A:255. |
| static [`Color DarkMagenta`](VRageMath.DarkMagenta) | Gets a system-defined color with the value R:139 G:0 B:139 A:255. |
| static [`Color DarkOliveGreen`](VRageMath.DarkOliveGreen) | Gets a system-defined color with the value R:85 G:107 B:47 A:255. |
| static [`Color DarkOrange`](VRageMath.DarkOrange) | Gets a system-defined color with the value R:255 G:140 B:0 A:255. |
| static [`Color DarkOrchid`](VRageMath.DarkOrchid) | Gets a system-defined color with the value R:153 G:50 B:204 A:255. |
| static [`Color DarkRed`](VRageMath.DarkRed) | Gets a system-defined color with the value R:139 G:0 B:0 A:255. |
| static [`Color DarkSalmon`](VRageMath.DarkSalmon) | Gets a system-defined color with the value R:233 G:150 B:122 A:255. |
| static [`Color DarkSeaGreen`](VRageMath.DarkSeaGreen) | Gets a system-defined color with the value R:143 G:188 B:139 A:255. |
| static [`Color DarkSlateBlue`](VRageMath.DarkSlateBlue) | Gets a system-defined color with the value R:72 G:61 B:139 A:255. |
| static [`Color DarkSlateGray`](VRageMath.DarkSlateGray) | Gets a system-defined color with the value R:47 G:79 B:79 A:255. |
| static [`Color DarkTurquoise`](VRageMath.DarkTurquoise) | Gets a system-defined color with the value R:0 G:206 B:209 A:255. |
| static [`Color DarkViolet`](VRageMath.DarkViolet) | Gets a system-defined color with the value R:148 G:0 B:211 A:255. |
| static [`Color DeepPink`](VRageMath.DeepPink) | Gets a system-defined color with the value R:255 G:20 B:147 A:255. |
| static [`Color DeepSkyBlue`](VRageMath.DeepSkyBlue) | Gets a system-defined color with the value R:0 G:191 B:255 A:255. |
| static [`Color DimGray`](VRageMath.DimGray) | Gets a system-defined color with the value R:105 G:105 B:105 A:255. |
| static [`Color DodgerBlue`](VRageMath.DodgerBlue) | Gets a system-defined color with the value R:30 G:144 B:255 A:255. |
| static [`Color Firebrick`](VRageMath.Firebrick) | Gets a system-defined color with the value R:178 G:34 B:34 A:255. |
| static [`Color FloralWhite`](VRageMath.FloralWhite) | Gets a system-defined color with the value R:255 G:250 B:240 A:255. |
| static [`Color ForestGreen`](VRageMath.ForestGreen) | Gets a system-defined color with the value R:34 G:139 B:34 A:255. |
| static [`Color Fuchsia`](VRageMath.Fuchsia) | Gets a system-defined color with the value R:255 G:0 B:255 A:255. |
| static [`Color Gainsboro`](VRageMath.Gainsboro) | Gets a system-defined color with the value R:220 G:220 B:220 A:255. |
| static [`Color GhostWhite`](VRageMath.GhostWhite) | Gets a system-defined color with the value R:248 G:248 B:255 A:255. |
| static [`Color Gold`](VRageMath.Gold) | Gets a system-defined color with the value R:255 G:215 B:0 A:255. |
| static [`Color Goldenrod`](VRageMath.Goldenrod) | Gets a system-defined color with the value R:218 G:165 B:32 A:255. |
| static [`Color Gray`](VRageMath.Gray) | Gets a system-defined color with the value R:128 G:128 B:128 A:255. |
| static [`Color Green`](VRageMath.Green) | Gets a system-defined color with the value R:0 G:128 B:0 A:255. |
| static [`Color GreenYellow`](VRageMath.GreenYellow) | Gets a system-defined color with the value R:173 G:255 B:47 A:255. |
| static [`Color Honeydew`](VRageMath.Honeydew) | Gets a system-defined color with the value R:240 G:255 B:240 A:255. |
| static [`Color HotPink`](VRageMath.HotPink) | Gets a system-defined color with the value R:255 G:105 B:180 A:255. |
| static [`Color IndianRed`](VRageMath.IndianRed) | Gets a system-defined color with the value R:205 G:92 B:92 A:255. |
| static [`Color Indigo`](VRageMath.Indigo) | Gets a system-defined color with the value R:75 G:0 B:130 A:255. |
| static [`Color Ivory`](VRageMath.Ivory) | Gets a system-defined color with the value R:255 G:255 B:240 A:255. |
| static [`Color Khaki`](VRageMath.Khaki) | Gets a system-defined color with the value R:240 G:230 B:140 A:255. |
| static [`Color Lavender`](VRageMath.Lavender) | Gets a system-defined color with the value R:230 G:230 B:250 A:255. |
| static [`Color LavenderBlush`](VRageMath.LavenderBlush) | Gets a system-defined color with the value R:255 G:240 B:245 A:255. |
| static [`Color LawnGreen`](VRageMath.LawnGreen) | Gets a system-defined color with the value R:124 G:252 B:0 A:255. |
| static [`Color LemonChiffon`](VRageMath.LemonChiffon) | Gets a system-defined color with the value R:255 G:250 B:205 A:255. |
| static [`Color LightBlue`](VRageMath.LightBlue) | Gets a system-defined color with the value R:173 G:216 B:230 A:255. |
| static [`Color LightCoral`](VRageMath.LightCoral) | Gets a system-defined color with the value R:240 G:128 B:128 A:255. |
| static [`Color LightCyan`](VRageMath.LightCyan) | Gets a system-defined color with the value R:224 G:255 B:255 A:255. |
| static [`Color LightGoldenrodYellow`](VRageMath.LightGoldenrodYellow) | Gets a system-defined color with the value R:250 G:250 B:210 A:255. |
| static [`Color LightGreen`](VRageMath.LightGreen) | Gets a system-defined color with the value R:144 G:238 B:144 A:255. |
| static [`Color LightGray`](VRageMath.LightGray) | Gets a system-defined color with the value R:211 G:211 B:211 A:255. |
| static [`Color LightPink`](VRageMath.LightPink) | Gets a system-defined color with the value R:255 G:182 B:193 A:255. |
| static [`Color LightSalmon`](VRageMath.LightSalmon) | Gets a system-defined color with the value R:255 G:160 B:122 A:255. |
| static [`Color LightSeaGreen`](VRageMath.LightSeaGreen) | Gets a system-defined color with the value R:32 G:178 B:170 A:255. |
| static [`Color LightSkyBlue`](VRageMath.LightSkyBlue) | Gets a system-defined color with the value R:135 G:206 B:250 A:255. |
| static [`Color LightSlateGray`](VRageMath.LightSlateGray) | Gets a system-defined color with the value R:119 G:136 B:153 A:255. |
| static [`Color LightSteelBlue`](VRageMath.LightSteelBlue) | Gets a system-defined color with the value R:176 G:196 B:222 A:255. |
| static [`Color LightYellow`](VRageMath.LightYellow) | Gets a system-defined color with the value R:255 G:255 B:224 A:255. |
| static [`Color Lime`](VRageMath.Lime) | Gets a system-defined color with the value R:0 G:255 B:0 A:255. |
| static [`Color LimeGreen`](VRageMath.LimeGreen) | Gets a system-defined color with the value R:50 G:205 B:50 A:255. |
| static [`Color Linen`](VRageMath.Linen) | Gets a system-defined color with the value R:250 G:240 B:230 A:255. |
| static [`Color Magenta`](VRageMath.Magenta) | Gets a system-defined color with the value R:255 G:0 B:255 A:255. |
| static [`Color Maroon`](VRageMath.Maroon) | Gets a system-defined color with the value R:128 G:0 B:0 A:255. |
| static [`Color MediumAquamarine`](VRageMath.MediumAquamarine) | Gets a system-defined color with the value R:102 G:205 B:170 A:255. |
| static [`Color MediumBlue`](VRageMath.MediumBlue) | Gets a system-defined color with the value R:0 G:0 B:205 A:255. |
| static [`Color MediumOrchid`](VRageMath.MediumOrchid) | Gets a system-defined color with the value R:186 G:85 B:211 A:255. |
| static [`Color MediumPurple`](VRageMath.MediumPurple) | Gets a system-defined color with the value R:147 G:112 B:219 A:255. |
| static [`Color MediumSeaGreen`](VRageMath.MediumSeaGreen) | Gets a system-defined color with the value R:60 G:179 B:113 A:255. |
| static [`Color MediumSlateBlue`](VRageMath.MediumSlateBlue) | Gets a system-defined color with the value R:123 G:104 B:238 A:255. |
| static [`Color MediumSpringGreen`](VRageMath.MediumSpringGreen) | Gets a system-defined color with the value R:0 G:250 B:154 A:255. |
| static [`Color MediumTurquoise`](VRageMath.MediumTurquoise) | Gets a system-defined color with the value R:72 G:209 B:204 A:255. |
| static [`Color MediumVioletRed`](VRageMath.MediumVioletRed) | Gets a system-defined color with the value R:199 G:21 B:133 A:255. |
| static [`Color MidnightBlue`](VRageMath.MidnightBlue) | Gets a system-defined color with the value R:25 G:25 B:112 A:255. |
| static [`Color MintCream`](VRageMath.MintCream) | Gets a system-defined color with the value R:245 G:255 B:250 A:255. |
| static [`Color MistyRose`](VRageMath.MistyRose) | Gets a system-defined color with the value R:255 G:228 B:225 A:255. |
| static [`Color Moccasin`](VRageMath.Moccasin) | Gets a system-defined color with the value R:255 G:228 B:181 A:255. |
| static [`Color NavajoWhite`](VRageMath.NavajoWhite) | Gets a system-defined color with the value R:255 G:222 B:173 A:255. |
| static [`Color Navy`](VRageMath.Navy) | Gets a system-defined color R:0 G:0 B:128 A:255. |
| static [`Color OldLace`](VRageMath.OldLace) | Gets a system-defined color with the value R:253 G:245 B:230 A:255. |
| static [`Color Olive`](VRageMath.Olive) | Gets a system-defined color with the value R:128 G:128 B:0 A:255. |
| static [`Color OliveDrab`](VRageMath.OliveDrab) | Gets a system-defined color with the value R:107 G:142 B:35 A:255. |
| static [`Color Orange`](VRageMath.Orange) | Gets a system-defined color with the value R:255 G:165 B:0 A:255. |
| static [`Color OrangeRed`](VRageMath.OrangeRed) | Gets a system-defined color with the value R:255 G:69 B:0 A:255. |
| static [`Color Orchid`](VRageMath.Orchid) | Gets a system-defined color with the value R:218 G:112 B:214 A:255. |
| static [`Color PaleGoldenrod`](VRageMath.PaleGoldenrod) | Gets a system-defined color with the value R:238 G:232 B:170 A:255. |
| static [`Color PaleGreen`](VRageMath.PaleGreen) | Gets a system-defined color with the value R:152 G:251 B:152 A:255. |
| static [`Color PaleTurquoise`](VRageMath.PaleTurquoise) | Gets a system-defined color with the value R:175 G:238 B:238 A:255. |
| static [`Color PaleVioletRed`](VRageMath.PaleVioletRed) | Gets a system-defined color with the value R:219 G:112 B:147 A:255. |
| static [`Color PapayaWhip`](VRageMath.PapayaWhip) | Gets a system-defined color with the value R:255 G:239 B:213 A:255. |
| static [`Color PeachPuff`](VRageMath.PeachPuff) | Gets a system-defined color with the value R:255 G:218 B:185 A:255. |
| static [`Color Peru`](VRageMath.Peru) | Gets a system-defined color with the value R:205 G:133 B:63 A:255. |
| static [`Color Pink`](VRageMath.Pink) | Gets a system-defined color with the value R:255 G:192 B:203 A:255. |
| static [`Color Plum`](VRageMath.Plum) | Gets a system-defined color with the value R:221 G:160 B:221 A:255. |
| static [`Color PowderBlue`](VRageMath.PowderBlue) | Gets a system-defined color with the value R:176 G:224 B:230 A:255. |
| static [`Color Purple`](VRageMath.Purple) | Gets a system-defined color with the value R:128 G:0 B:128 A:255. |
| static [`Color Red`](VRageMath.Red) | Gets a system-defined color with the value R:255 G:0 B:0 A:255. |
| static [`Color RosyBrown`](VRageMath.RosyBrown) | Gets a system-defined color with the value R:188 G:143 B:143 A:255. |
| static [`Color RoyalBlue`](VRageMath.RoyalBlue) | Gets a system-defined color with the value R:65 G:105 B:225 A:255. |
| static [`Color SaddleBrown`](VRageMath.SaddleBrown) | Gets a system-defined color with the value R:139 G:69 B:19 A:255. |
| static [`Color Salmon`](VRageMath.Salmon) | Gets a system-defined color with the value R:250 G:128 B:114 A:255. |
| static [`Color SandyBrown`](VRageMath.SandyBrown) | Gets a system-defined color with the value R:244 G:164 B:96 A:255. |
| static [`Color SeaGreen`](VRageMath.SeaGreen) | Gets a system-defined color with the value R:46 G:139 B:87 A:255. |
| static [`Color SeaShell`](VRageMath.SeaShell) | Gets a system-defined color with the value R:255 G:245 B:238 A:255. |
| static [`Color Sienna`](VRageMath.Sienna) | Gets a system-defined color with the value R:160 G:82 B:45 A:255. |
| static [`Color Silver`](VRageMath.Silver) | Gets a system-defined color with the value R:192 G:192 B:192 A:255. |
| static [`Color SkyBlue`](VRageMath.SkyBlue) | Gets a system-defined color with the value R:135 G:206 B:235 A:255. |
| static [`Color SlateBlue`](VRageMath.SlateBlue) | Gets a system-defined color with the value R:106 G:90 B:205 A:255. |
| static [`Color SlateGray`](VRageMath.SlateGray) | Gets a system-defined color with the value R:112 G:128 B:144 A:255. |
| static [`Color Snow`](VRageMath.Snow) | Gets a system-defined color with the value R:255 G:250 B:250 A:255. |
| static [`Color SpringGreen`](VRageMath.SpringGreen) | Gets a system-defined color with the value R:0 G:255 B:127 A:255. |
| static [`Color SteelBlue`](VRageMath.SteelBlue) | Gets a system-defined color with the value R:70 G:130 B:180 A:255. |
| static [`Color Tan`](VRageMath.Tan) | Gets a system-defined color with the value R:210 G:180 B:140 A:255. |
| static [`Color Teal`](VRageMath.Teal) | Gets a system-defined color with the value R:0 G:128 B:128 A:255. |
| static [`Color Thistle`](VRageMath.Thistle) | Gets a system-defined color with the value R:216 G:191 B:216 A:255. |
| static [`Color Tomato`](VRageMath.Tomato) | Gets a system-defined color with the value R:255 G:99 B:71 A:255. |
| static [`Color Turquoise`](VRageMath.Turquoise) | Gets a system-defined color with the value R:64 G:224 B:208 A:255. |
| static [`Color Violet`](VRageMath.Violet) | Gets a system-defined color with the value R:238 G:130 B:238 A:255. |
| static [`Color Wheat`](VRageMath.Wheat) | Gets a system-defined color with the value R:245 G:222 B:179 A:255. |
| static [`Color White`](VRageMath.White) | Gets a system-defined color with the value R:255 G:255 B:255 A:255. |
| static [`Color WhiteSmoke`](VRageMath.WhiteSmoke) | Gets a system-defined color with the value R:245 G:245 B:245 A:255. |
| static [`Color Yellow`](VRageMath.Yellow) | Gets a system-defined color with the value R:255 G:255 B:0 A:255. |
| static [`Color YellowGreen`](VRageMath.YellowGreen) | Gets a system-defined color with the value R:154 G:205 B:50 A:255. |
| static [`Color FromNonPremultiplied(Vector4 vector)`](VRageMath.FromNonPremultiplied) | Convert a non premultipled color into color data that contains alpha. |
| static [`Color FromNonPremultiplied(int r, int g, int b, int a)`](VRageMath.FromNonPremultiplied) | Converts a non-premultipled alpha color to a color that contains premultiplied alpha. |
| [`Vector3 ToVector3()`](VRageMath.ToVector3) | Gets a three-component vector representation for this object. |
| [`Vector4 ToVector4()`](VRageMath.ToVector4) | Gets a four-component vector representation for this object. |
| static [`Color Lerp(Color value1, Color value2, float amount)`](VRageMath.Lerp) | Linearly interpolate a color. |
| static [`Color Multiply(Color value, float scale)`](VRageMath.Multiply) | Multiply each color component by the scale factor. |
| [`string ToString()`](VRageMath.ToString) | Gets a string representation of this object. |
| [`int GetHashCode()`](VRageMath.GetHashCode) | Serves as a hash function for a particular type. |
| [`bool Equals(Object obj)`](VRageMath.Equals) | Test an instance of a color object to see if it is equal to this object. |
| [`bool Equals(Color other)`](VRageMath.Equals) | Test a color to see if it is equal to the color in this instance. |
| static [`Color Lighten(Color inColor, double inAmount)`](VRageMath.Lighten) | |
| static [`Color Darken(Color inColor, double inAmount)`](VRageMath.Darken) | |
| [`Color ToGray()`](VRageMath.ToGray) | |
| [`Vector4 ToVector4()`](VRageMath.PackedVector.ToVector4) | Expands the packed representation into a Vector4. _Inherited from [`IPackedVector`](VRageMath.Color)_ |
| [`void PackFromVector4(Vector4 vector)`](VRageMath.PackedVector.PackFromVector4) | Sets the packed representation from a Vector4. _Inherited from [`IPackedVector`](VRageMath.Color)_ |
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!