Color Constructor (Int32, Int32, Int32)

Creates a new instance of the class.

Syntax

'Declaration
Public Sub New ( _
         r As Integer, _
         g As Integer, _
         b As Integer _
)
public Color (
         int r,
         int g,
         int b
)
public:
Color(
         int r,
         int g,
         int b
)

Parameters

  • r
    Type: Int32
    Red component.
  • g
    Type: Int32
    Green component.
  • b
    Type: Int32
    Blue 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