Color.Color Method (Microsoft.Xna.Framework)

Constructs an RGBA color from scalars representing red, green, blue and alpha values.

Namespace: Microsoft.Xna.Framework
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
  • C#
  • VB
  • F#
public Color(
	Byte r, 
	Byte g, 
	Byte b, 
	Byte alpha
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

r
Type: System.Byte
g
Type: System.Byte
b
Type: System.Byte
alpha
Type: System.Byte
This overload sets the values directly without clamping, and may therefore be faster than the other overloads.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web