Yes it is like you mentioned. If you convert the colour vakue it to hex, you would get (for red)
FF0000 where the digits are RRGGBB. if your colour should be red 56 green 120 blue 220 you would need 56 * 256^2 + 120 * 256^1 + 220 * 256^0 = a big number in mapifo. the way back is as you described below (or similar). it is kind of RGB, but the values for each colour range from 0 to 255. and the three vaues are combined in one number by multiplying with powers of 256. hth chtistof > Hi list, > > I have a query about MapInfo and it's color scheme... > > In the mapbasic def file, you have a line such as > > Define RED 16711680 > > What is that number? It's not RGB because Red comes up > as 255,0,0 -> what is the number and how do you > convert that to RGB? I have seen some code that says > you must take the number 16711680 \ 256 ^ 2 Mod 256 > for Red and 16711680 \ 256 ^ 1 Mod 256 for Blue and so > on...can anyone clarify this issue for me please? > > And can this number be converted to HEX color codes? > > Regards > Ben > > __________________________________________________ > Do you Yahoo!? > Y! Web Hosting - Let the expert host your web site > http://webhosting.yahoo.com/ > > --------------------------------------------------------------------- > List hosting provided by Directions Magazine | www.directionsmag.com | > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Message number: 3747 --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 3749
