Visual3D Game EngineAPI Documentation for XNA, C#, VB, and .NET
Assembly: Visual3D (in Visual3D.dll) Version: 1.0.0.0 (1.0.0.0)
This class is necessary so we can store the color components as floating
point values in the range [0,1]. It serves as an intermediary to Color, which
stores them as byte values. This doesn't allow for slow color component
interpolation, because with the values always being cast back to a byte would lose
any small interpolated values (i.e. 223 - .25 as a byte is 223).
Namespace: Visual3DAssembly: Visual3D (in Visual3D.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
| C# | Visual Basic |
[SerializableAttribute] public struct VColor : IComparable, IEquatable<VColor>
<SerializableAttribute> _ Public Structure VColor _ Implements IComparable, IEquatable(Of VColor)
Members
| All Members | Constructors | Fields | Properties | Methods |
| Member | Description | ||||
|---|---|---|---|---|---|
| VColor(Color) | Initializes a new instance of the VColor class | ||||
| VColor(Vector3) | Initializes a new instance of the VColor class | ||||
| VColor(Vector4) | Initializes a new instance of the VColor class | ||||
| VColor(Single) | Initializes a new instance of the VColor class | ||||
| VColor(UInt32) | Creates a color from the hexidecimal representation in the form 0xAARRGGBB such as is used in HTML. | ||||
| VColor(Byte, Byte) | Initializes a new instance of the VColor class | ||||
| VColor(Byte, Byte, Byte) | Initializes a new instance of the VColor class | ||||
| VColor(Byte, Byte, Byte, Byte) | Initializes a new instance of the VColor class | ||||
| A | |||||
| Add(VColor, VColor) | |||||
| Add(VColor, VColor, Boolean) | |||||
| Addition(VColor, VColor) | |||||
| AliceBlue |
The color AliceBlue.
| ||||
| AlphaLevel |
Alpha value [0,1].
| ||||
| AntiqueWhite |
The color AntiqueWhite.
| ||||
| Aqua |
The color Aqua.
| ||||
| Aquamarine |
The color Aquamarine.
| ||||
| Azure |
The color Azure.
| ||||
| B | |||||
| Beige |
The color Beige.
| ||||
| Bisque |
The color Bisque.
| ||||
| Black |
The color Black.
| ||||
| BlanchedAlmond |
The color BlanchedAlmond.
| ||||
| Blue |
The color Blue.
| ||||
| BlueLevel |
Blue color component [0,1].
| ||||
| BlueViolet |
The color BlueViolet.
| ||||
| Brown |
The color Brown.
| ||||
| BurlyWood |
The color BurlyWood.
| ||||
| CadetBlue |
The color CadetBlue.
| ||||
| Chartreuse |
The color Chartreuse.
| ||||
| Chocolate |
The color Chocolate.
| ||||
| Clone()()()() |
Returns a copy of this Color instance.
| ||||
| CompareTo(Object) |
Used to compare 2 Color objects for equality.
| ||||
| Coral |
The color Coral.
| ||||
| CornflowerBlue |
The color CornflowerBlue.
| ||||
| Cornsilk |
The color Cornsilk.
| ||||
| Create(Single) | |||||
| Crimson |
The color Crimson.
| ||||
| Cyan |
The color Cyan.
| ||||
| DarkBlue |
The color DarkBlue.
| ||||
| DarkBrown |
The color Brown.
| ||||
| DarkCyan |
The color DarkCyan.
| ||||
| DarkGoldenrod |
The color DarkGoldenrod.
| ||||
| DarkGray |
The color DarkGray.
| ||||
| DarkGreen |
The color DarkGreen.
| ||||
| DarkKhaki |
The color DarkKhaki.
| ||||
| DarkMagenta |
The color DarkMagenta.
| ||||
| DarkOliveGreen |
The color DarkOliveGreen.
| ||||
| DarkOrange |
The color DarkOrange.
| ||||
| DarkOrchid |
The color DarkOrchid.
| ||||
| DarkRed |
The color DarkRed.
| ||||
| DarkSalmon |
The color DarkSalmon.
| ||||
| DarkSeaGreen |
The color DarkSeaGreen.
| ||||
| DarkSlateBlue |
The color DarkSlateBlue.
| ||||
| DarkSlateGray |
The color DarkSlateGray.
| ||||
| DarkTurquoise |
The color DarkTurquoise.
| ||||
| DarkViolet |
The color DarkViolet.
| ||||
| DeepPink |
The color DeepPink.
| ||||
| DeepSkyBlue |
The color DeepSkyBlue.
| ||||
| DimGray |
The color DimGray.
| ||||
| DodgerBlue |
The color DodgerBlue.
| ||||
| EnsureMinimum(Byte) | |||||
| EnsureMinimum(Single) | |||||
| Equality(VColor, VColor) | |||||
| Equals(Object) | (Overrides ValueType..::..Equals(Object).) | ||||
| Equals(VColor) | |||||
| ExplicitNarrowingExplicitExplicitExplicit(Vector3 to VColor) | |||||
| ExplicitNarrowingExplicitExplicitExplicit(Vector4 to VColor) | |||||
| ExplicitNarrowingExplicitExplicitExplicit(VColor to Vector4) | |||||
| ExplicitNarrowingExplicitExplicitExplicit(VColor to Vector3) | |||||
| Firebrick |
The color Firebrick.
| ||||
| FloralWhite |
The color FloralWhite.
| ||||
| ForestGreen |
The color ForestGreen.
| ||||
| FromColor(Color) | Static method used to create a new
| ||||
| Fuchsia |
The color Fuchsia.
| ||||
| G | |||||
| Gainsboro |
The color Gainsboro.
| ||||
| GetHashCode()()()() |
Override GetHashCode.
(Overrides ValueType..::..GetHashCode()()()().) | ||||
| GetInverted()()()() | |||||
| GhostWhite |
The color GhostWhite.
| ||||
| Gold |
The color Gold.
| ||||
| Goldenrod |
The color Goldenrod.
| ||||
| Gray |
The color Gray.
| ||||
| Green |
The color Green.
| ||||
| GreenLevel |
Green color component [0,1].
| ||||
| GreenYellow |
The color GreenYellow.
| ||||
| Honeydew |
The color Honeydew.
| ||||
| HotPink |
The color HotPink.
| ||||
| ImplicitWideningImplicitImplicitImplicit(Color to VColor) | |||||
| ImplicitWideningImplicitImplicitImplicit(VColor to Color) | |||||
| IndianRed |
The color IndianRed.
| ||||
| Indigo |
The color Indigo.
| ||||
| Inequality(VColor, VColor) | |||||
| IsBlack | |||||
| IsTransparent | |||||
| Ivory |
The color Ivory.
| ||||
| Khaki |
The color Khaki.
| ||||
| Lavender |
The color Lavender.
| ||||
| LavenderBlush |
The color LavenderBlush.
| ||||
| LawnGreen |
The color LawnGreen.
| ||||
| LemonChiffon |
The color LemonChiffon.
| ||||
| Lerp(ScaledColor, ScaledColor, Single) | |||||
| LightBlue |
The color LightBlue.
| ||||
| LightCoral |
The color LightCoral.
| ||||
| LightCyan |
The color LightCyan.
| ||||
| LightGoldenrodYellow |
The color LightGoldenrodYellow.
| ||||
| LightGray |
The color LightGray.
| ||||
| LightGreen |
The color LightGreen.
| ||||
| LightPink |
The color LightPink.
| ||||
| LightSalmon |
The color LightSalmon.
| ||||
| LightSeaGreen |
The color LightSeaGreen.
| ||||
| LightSkyBlue |
The color LightSkyBlue.
| ||||
| LightSlateGray |
The color LightSlateGray.
| ||||
| LightSteelBlue |
The color LightSteelBlue.
| ||||
| LightYellow |
The color LightYellow.
| ||||
| Lime |
The color Lime.
| ||||
| LimeGreen |
The color LimeGreen.
| ||||
| Linen |
The color Linen.
| ||||
| Magenta |
The color Magenta.
| ||||
| Maroon |
The color Maroon.
| ||||
| MediumAquamarine |
The color MediumAquamarine.
| ||||
| MediumBlue |
The color MediumBlue.
| ||||
| MediumOrchid |
The color MediumOrchid.
| ||||
| MediumPurple |
The color MediumPurple.
| ||||
| MediumSeaGreen |
The color MediumSeaGreen.
| ||||
| MediumSlateBlue |
The color MediumSlateBlue.
| ||||
| MediumSpringGreen |
The color MediumSpringGreen.
| ||||
| MediumTurquoise |
The color MediumTurquoise.
| ||||
| MediumVioletRed |
The color MediumVioletRed.
| ||||
| MidnightBlue |
The color MidnightBlue.
| ||||
| MintCream |
The color MintCream.
| ||||
| MistyRose |
The color MistyRose.
| ||||
| Moccasin |
The color Moccasin.
| ||||
| Multiply(Single, VColor) | |||||
| Multiply(VColor, Single) | |||||
| NavajoWhite |
The color NavajoWhite.
| ||||
| Navy |
The color Navy.
| ||||
| OldLace |
The color OldLace.
| ||||
| Olive |
The color Olive.
| ||||
| OliveDrab |
The color OliveDrab.
| ||||
| Orange |
The color Orange.
| ||||
| OrangeRed |
The color OrangeRed.
| ||||
| Orchid |
The color Orchid.
| ||||
| PackedValue | Converts this color value to packed ARBG format. | ||||
| PaleGoldenrod |
The color PaleGoldenrod.
| ||||
| PaleGreen |
The color PaleGreen.
| ||||
| PaleTurquoise |
The color PaleTurquoise.
| ||||
| PaleVioletRed |
The color PaleVioletRed.
| ||||
| PapayaWhip |
The color PapayaWhip.
| ||||
| Parse(String) | Parses the string representation of a color and returns the corresponding Color object.
| ||||
| PeachPuff |
The color PeachPuff.
| ||||
| Peru |
The color Peru.
| ||||
| Pink |
The color Pink.
| ||||
| Plum |
The color Plum.
| ||||
| PowderBlue |
The color PowderBlue.
| ||||
| Purple |
The color Purple.
| ||||
| R | |||||
| Red |
The color Red.
| ||||
| RedLevel |
Red color component [0,1].
| ||||
| RosyBrown |
The color RosyBrown.
| ||||
| RoyalBlue |
The color RoyalBlue.
| ||||
| SaddleBrown |
The color SaddleBrown.
| ||||
| Salmon |
The color Salmon.
| ||||
| SandyBrown |
The color SandyBrown.
| ||||
| SeaGreen |
The color SeaGreen.
| ||||
| SeaShell |
The color SeaShell.
| ||||
| Sienna |
The color Sienna.
| ||||
| Silver |
The color Silver.
| ||||
| SkyBlue |
The color SkyBlue.
| ||||
| SlateBlue |
The color SlateBlue.
| ||||
| SlateGray |
The color SlateGray.
| ||||
| Snow |
The color Snow.
| ||||
| SpringGreen |
The color SpringGreen.
| ||||
| SteelBlue |
The color SteelBlue.
| ||||
| Subtract(VColor, VColor) | |||||
| Subtract(VColor, VColor, Boolean) | |||||
| Subtraction(VColor, VColor) | |||||
| Tan |
The color Tan.
| ||||
| Teal |
The color Teal.
| ||||
| Thistle |
The color Thistle.
| ||||
| ToColor()()()() | Converts this instance to a Color structure. | ||||
| ToColorF()()()() | |||||
| ToDescriptiveString()()()() | |||||
| Tomato |
The color Tomato.
| ||||
| ToMonochrome(VColor) | |||||
| ToMonochrome(VColor, Single) | |||||
| ToString()()()() | (Overrides ValueType..::..ToString()()()().) | ||||
| ToVector3()()()() | |||||
| ToVector4()()()() | |||||
| TransparentBlack |
The color Transparent Black.
| ||||
| TransparentWhite |
The color Transparent White.
| ||||
| Turquoise |
The color Turquoise.
| ||||
| VeryDarkGray |
The color DarkGray.
| ||||
| Violet |
The color Violet.
| ||||
| Wheat |
The color Wheat.
| ||||
| White |
The color White.
| ||||
| WhiteSmoke |
The color WhiteSmoke.
| ||||
| Yellow |
The color Yellow.
| ||||
| YellowGreen |
The color YellowGreen.
| ||||