description | ms.assetid | title | ms.topic | ms.date | topic_type | api_name | api_type | api_location | |||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Initializes a color with the supplied red, green, blue, and alpha floating-point values. |
61825e33-4150-47cd-97f2-2144434a45e2 |
D3DCOLOR_COLORVALUE macro (D3d9types.h) |
reference |
05/31/2018 |
|
|
|
|
Initializes a color with the supplied red, green, blue, and alpha floating-point values.
D3DCOLOR D3DCOLOR_COLORVALUE(
float r,
float g,
float b,
float a
);
-
r
-
Red component of the color. This value must be a floating-point value in the range 0.0 through 1.0.
-
g
-
Green component of the color. This value must be a floating-point value in the range 0.0 through 1.0.
-
b
-
Blue component of the color. This value must be a floating-point value in the range 0.0 through 1.0.
-
a
-
Alpha component of the color. This value must be a floating-point value in the range 0.0 through 1.0.
Returns the D3DCOLOR value that corresponds to the supplied RGBA values.
Requirement | Value |
---|---|
Header |
|