Color.Color Method (Microsoft.Xna.Framework)

Constructs an RGBA color from color and alpha value.

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

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

color
Type: Microsoft.Xna.Framework.Color
A Color for RGB values of new Color instance.
alpha
Type: System.Single
Alpha component value from 0.0f to 1.0f.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web