Microsoft DirectX 8.0 (Visual Basic)

D3DCOLORVALUE

Describes color values.

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 are in the range from 0 through 1, with 0 being black.

Remarks

You can set the members of this type to values outside the range of 0 through 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.

See Also

Color Values for Lights and Materials