Color Constructor (Single, Single, Single, Single)
Creates a new instance of the class.
Namespace: Microsoft.Xna.Framework
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
Syntax
public Color (
float r,
float g,
float b,
float a
)
Parameters
- r
Red component. - g
Green component. - b
Blue component. - a
Alpha component.
See Also
Reference
Color Structure
Color Members
Microsoft.Xna.Framework Namespace
Platforms
Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7