Re: converting (Neil's) rgb formt

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu