Color Constructor (Int32, Int32, Int32, Int32)
Creates a new instance of the class.
Syntax
'Declaration
Public Sub New ( _
r As Integer, _
g As Integer, _
b As Integer, _
a As Integer _
)
public Color (
int r,
int g,
int b,
int a
)
public:
Color(
int r,
int g,
int b,
int a
)
Parameters
- r
Type: Int32
Red component. - g
Type: Int32
Green component. - b
Type: Int32
Blue component. - a
Type: Int32
Alpha component.
Requirements
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Reference
Color Structure
Color Members
Microsoft.Xna.Framework Namespace
Platforms
Windows Phone