XNA Game Studio 3.1
Color Constructor (Byte, Byte, Byte, Byte)
Initializes a new instance of Color.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

C#
public Color (
         byte r,
         byte g,
         byte b,
         byte a
)

Parameters

r
The red component of a color, between 0 and 255.
g
The green component of a color, between 0 and 255.
b
The blue component of a color, between 0 and 255.
a
The alpha component of a color, between 0 and 255.
See Also

Reference

Platforms

Xbox 360, Windows XP SP2, Windows Vista, Zune
Tags :


Page view tracker