Platform SDK: DirectX

D3DCOLORVALUE

The D3DCOLORVALUE type describes color values for the D3DLIGHT7 and D3DMATERIAL7 types.

Type D3DCOLORVALUE
    a As Single
    b As Single
    g As Single
    r As Single
End Type

Members

a, b, g and r
Values specifying the red, green, blue, and alpha components of a color. These values generally range from 0 to 1, with 0 being black.

Remarks

You can set the members of this type to values outside the range of 0 to 1 to implement some unusual effects. Values greater than 1 produce strong lights that tend to wash out a scene. Negative values produce dark lights, which actually remove light from a scene. For more information, see Colored Lights.