Color Constructor (Single, Single, Single)

Creates a new instance of the class.

Syntax

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

Parameters

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