Color.Color Method (Microsoft.Xna.Framework)

Constructs an RGBA color from scalars representing red, green and blue values. Alpha value will be opaque.

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

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

r
Type: System.Int32
Red component value from 0 to 255.
g
Type: System.Int32
Green component value from 0 to 255.
b
Type: System.Int32
Blue component value from 0 to 255.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web