Determines the negative RGB color value of a color.
XMVECTOR XMColorNegative(
XMVECTOR C
)
C
Type: XMVECTOR
XMVECTOR describing the color. Each of the components of C should be in the range 0.0f to 1.0f.
Type: XMVECTOR
Returns an XMVECTOR describing the negative color. The w-component (alpha) is copied unmodified from the input vector.
The following pseudocode shows you the operation of the function.
XMVECTOR colorOut;
colorOut.x = 1.0f - C.x;
colorOut.y = 1.0f - C.y;
colorOut.z = 1.0f - C.z;
colorOut.w = C.w;
return colorOut;
Header: Declared in directxmath.h.