Scales a color value.
D3DXCOLOR * D3DXColorScale( D3DXCOLOR * pOut, CONST D3DXCOLOR * pC, FLOAT s );
This function returns a pointer to a D3DXCOLOR structure that is the scaled color value.
The return value for this function is the same value returned in the pOut parameter. In this way, the D3DXColorScale function can be used as a parameter for another function.
This function computes the scaled color value by multiplying the color components of the D3DXCOLOR structure by the specified scale factor, as shown in the following example.
pOut->r = pC->r * s;
Header: Declared in D3dx9math.h.