View Single Post
  #2  
Old 08-17-2006, 03:29 AM
EmanonCow
Sarnak
 
Join Date: Aug 2006
Posts: 35
Default

It is probably a packed RGB value.

If so, 16777215 will be White as well.

Do you know hex numbers?

The 6 diget hex number will probably be formatted like this:
RRGGBB

Each "channel" or component goes from 00 to FF (0 to 255 in decimal).

If Red, Green and Blue are from 0 to 255 each:
ColourNum = Red * 2^16 + Green * 2^8 + Blue
should display the RGB colour combination. (2^16 is "two to the power of 16", or 2*2*2*2*2*2*2*2*2*2*2*2*2*2*2*2.)
Reply With Quote