DirectXMath Library color functions

Lists the color functions provided by DirectXMath.

In this section

Topic Description
XMColorSRGBToRGB
Converts an sRGB color vector to RGB.
XMColorRGBToSRGB
Converts an RGB color vector to sRGB.
XMColorAdjustContrast
Adjusts the contrast value of a color.
XMColorAdjustSaturation
Adjusts the saturation value of a color.
XMColorEqual
Tests for the equality of two colors.
XMColorGreater
Tests whether all the components of the first color are greater than the corresponding components in the second color.
XMColorGreaterOrEqual
Tests whether all the components of the first color are greater than or equal to the corresponding components of the second color.
XMColorHSLToRGB
Converts HSL color values to RGB color values.
XMColorHSVToRGB
Converts HSV color values to RGB color values.
XMColorIsInfinite
Tests to see whether any of the components of a color are either positive or negative infinity.
XMColorIsNaN
Tests to see whether any component of a color is not a number (NaN).
XMColorLess
Tests whether all the components of the first color are less than the corresponding components of the second color.
XMColorLessOrEqual
Tests whether all the components of the first color are less than or equal to the corresponding components of the second color.
XMColorModulate
Blends two colors by multiplying corresponding components together.
XMColorNegative
Determines the negative RGB color value of a color.
XMColorNotEqual
Tests to see whether two colors are unequal.
XMColorRGBToHSL
Converts RGB color values to HSL color values.
XMColorRGBToHSV
Converts RGB color values to HSV color values.
XMColorRGBToXYZ
Converts RGB color values to XYZ color values.
XMColorRGBToYUV
Converts RGB color values to YUV color values.
XMColorRGBToYUV_HD
Converts RGB color values to YUV HD color values.
XMColorRGBToYUV_UHD
Converts RGB color values to YUV UHD color values.
XMColorSRGBToXYZ
Converts SRGB color values to XYZ color values.
XMColorXYZToRGB
Converts XYZ color values to RGB color values.
XMColorXYZToSRGB
Converts XYZ color values to SRGB color values.
XMColorYUVToRGB
Converts YUV color values to RGB color values.
XMColorYUVToRGB_HD
Converts YUV color values to RGB HD color values.
XMColorYUVToRGB_UHD
Converts YUV color values to RGB UHD color values.

 

DirectXMath Library Functions