ColorExtensions.ToVector3 Method
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Converts the specified color into a Vector3.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework.Graphics.Extensions (in Microsoft.Xna.Framework.Graphics.Extensions.dll)
Syntax
'Declaration
Public Shared Function ToVector3 ( _
color As Color _
) As Vector3
public static Vector3 ToVector3(
Color color
)
Parameters
- color
Type: Microsoft.Xna.Framework.Color
The color to convert.
Return Value
Type: Microsoft.Xna.Framework.Vector3
The converted vector.
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.