ColorExtensions.FromVector4 Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Creates a color from a Vector4.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Graphics.Extensions (in Microsoft.Xna.Framework.Graphics.Extensions.dll)
Syntax
'Declaration
Public Shared Function FromVector4 ( _
value As Vector4 _
) As Color
public static Color FromVector4(
Vector4 value
)
Parameters
- value
Type: Microsoft.Xna.Framework.Vector4
The vector to create the color from.
Return Value
Type: Microsoft.Xna.Framework.Color
The created color.
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.