Click to Rate and Give Feedback
MSDN
MSDN Library
XNA Game Studio
XNA Game Studio 3.1
Color Structure
Color Constructor
 Color Constructor (Byte, Byte, Byte...

  Switch on low bandwidth view
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)

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.
Xbox 360, Windows XP SP2, Windows Vista, Zune
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker