Share via


ColorValue.ColorValue(Single,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, _
    ByVal a As Single _
)
C# public ColorValue(
    float r,
    float g,
    float b,
    float a
);
C++ public:
 ColorValue(
    float r,
    float g,
    float b,
    float a
);
JScript public function ColorValue(
    r : float,
    g : float,
    b : float,
    a : 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.
a System.Single
A SingleLeave Site value that represents the alpha channel value of the color.