D3DRGB

D3DRGB(r, g, b) \

(0xff000000L | ( ((long)((r) * 255)) << 16) | \

(((long)((g) * 255)) << 8) | (long)((b) * 255))

Initializes a color with the supplied RGB values.

·Returns the D3DCOLOR value corresponding to the supplied RGB values.

r, g, and b

Red, green, and blue components of the color. These should be floating-point values in the range 0 through 1.