Color.Color Method (Microsoft.Xna.Framework)

Constructs an RGBA color from a Color and an alpha value.

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

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.


Type: Microsoft.Xna.Framework.Color
A Color for RGB values of new Color instance.
Type: System.Int32
The alpha component value from 0 to 255.
Supported in:

 Windows DirectX Desktop
 Linux Desktop
 Windows OpenGL Desktop