Important: The information in this document is obsolete and should not be used for new development.
FractToColor
You can use theFractToColor
macro to convert afract
number to a gxColorValue number.
#define FractToColor(a) ((gxColorValue)((a)-((a)>>16)+8191>>14))
a
- A
fract
number to be converted to a gxColorValue number.- macro result
- The closest gxColorValue number to the
fract
number.