Important: The information in this document is obsolete and should not be used for new development.
ColorToFract
You can use theColorToFract
macro to convert a gxColorValue number to afract
number.
#define ColorToFract(a) (((fract)(a)<<14) + ((fract)(a) +2 >>2))
a
- A gxColorValue number to be converted to a
fract
number.- macro result
- A
fract number having the same value as the
gxColorValue number.