Re: converting (Neil's) rgb formt
- Posted by Everett Williams <rett at GVTC.COM> Oct 10, 1999
- 427 views
On Sun, 10 Oct 1999 20:27:28 +0300, Talvitie <smtoa at SAUNALAHTI.FI> wrote: >I now have texture mapping somewhat done, but I'd need to load 24-bit images for testing purposes. >I use Neil for this, but how may I change the neil's #RRGGBB format into mine {#RR,#GG,#BB} > >backwards it goes like this: >rgb= {100,100,100} >neilrgb= rgb[1]*65536+rgb[2]*256+rgb[3] > >but what should I do here: >neilrgb=6579300 >rgb= ????? > >--Talvitie Produce a hex string and it drops right out. Everett L.(Rett) Williams rett at gvtc.com