ColorToFract
You can use theColorToFractmacro to convert a gxColorValue number to afractnumber.
#define ColorToFract(a) (((fract)(a)<<14) + ((fract)(a) +2 >>2))
a- A gxColorValue number to be converted to a
fractnumber.- macro result
- A
fract number having the same value as thegxColorValue number.