Share via


Color Constructor (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
)

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