Color.Color Method (Microsoft.Xna.Framework)

Constructs an RGBA color from the XYZ unit length components of a vector. Alpha value will be opaque.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll
  • C#
  • VB
  • F#
public Color(
	Vector3 color

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: Microsoft.Xna.Framework.Vector3
A Vector3 representing color.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop