Color.Color Method (Microsoft.Xna.Framework)
Constructs an RGBA color from scalars representing red, green and blue values. Alpha value will be opaque.
- 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
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web