Color Constructor (Single, Single, Single, Single)
Creates a new instance of the class.
Syntax
'Declaration
Public Sub New ( _
r As Single, _
g As Single, _
b As Single, _
a As Single _
)
public Color (
float r,
float g,
float b,
float a
)
public:
Color(
float r,
float g,
float b,
float a
)
Parameters
- r
Type: Single
Red component. - g
Type: Single
Green component. - b
Type: Single
Blue component. - a
Type: Single
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