Color Constructor (Single, Single, Single, Single)
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Initializes a new instance of the Color structure using floating point values.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in Microsoft.Xna.Framework.dll)
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
)
Parameters
- r
Type: System.Single
Red component.
- g
Type: System.Single
Green component.
- b
Type: System.Single
Blue component.
- a
Type: System.Single
Alpha component.
Version Information
Silverlight
Supported in: 5
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.