Share via


Color Constructor (Int32, Int32, Int32)

Creates a new instance of the class.

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

Syntax

public Color (
         int r,
         int g,
         int b
)

Parameters

  • r
    Red component.
  • g
    Green component.
  • b
    Blue component.

See Also

Reference

Color Structure
Color Members
Microsoft.Xna.Framework Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP, Windows Phone 7