Skip to content

Latest commit

 

History

History
95 lines (57 loc) · 1.52 KB

d3dcolor-colorvalue.md

File metadata and controls

95 lines (57 loc) · 1.52 KB
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
APIRef
kbSyntax
D3DCOLOR_COLORVALUE
HeaderDef
D3d9types.h

D3DCOLOR_COLORVALUE macro

Initializes a color with the supplied red, green, blue, and alpha floating-point values.

Syntax

D3DCOLOR D3DCOLOR_COLORVALUE(
   float r,
   float g,
   float b,
   float a
);

Parameters

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.

Return value

Returns the D3DCOLOR value that corresponds to the supplied RGBA values.

Requirements

Requirement Value
Header
D3d9types.h

See also

Macros