ColorExtensions Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Performs conversions of colors and vectors.
Inheritance Hierarchy
System.Object
Microsoft.Xna.Framework.ColorExtensions
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Graphics.Extensions (in Microsoft.Xna.Framework.Graphics.Extensions.dll)
Syntax
'Declaration
Public NotInheritable Class ColorExtensions
public static class ColorExtensions
The ColorExtensions type exposes the following members.
Methods
Name | Description | |
---|---|---|
FromVector3 | Creates a color from a Vector3. | |
FromVector4 | Creates a color from a Vector4. | |
ToVector3 | Converts the specified color into a Vector3. | |
ToVector4 | Converts the specified color into a Vector4. |
Top
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.