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(
	float r, 
	float g, 
	float b
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

r
Type: System.Single
Red component value from 0.0f to 1.0f.
g
Type: System.Single
Green component value from 0.0f to 1.0f.
b
Type: System.Single
Blue component value from 0.0f to 1.0f.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web