Share via


ColorValue.ColorValue(Single,Single,Single) Constructor (Microsoft.DirectX.Direct3D)

Initializes a new instance of the ColorValue structure.

Definition

Visual Basic Public Sub New( _
    ByVal r As Single, _
    ByVal g As Single, _
    ByVal b As Single _
)
C# public ColorValue(
    float r,
    float g,
    float b
);
C++ public:
 ColorValue(
    float r,
    float g,
    float b
);
JScript public function ColorValue(
    r : float,
    g : float,
    b : float
);

Parameters

r System.Single
A SingleLeave Site value that represents the level of red in the color.
g System.Single
A SingleLeave Site value that represents the level of green in the color.
b System.Single
A SingleLeave Site value that represents the level of blue in the color.