converting (Neil's) rgb formt

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

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=3D {100,100,100}
neilrgb=3D rgb[1]*65536+rgb[2]*256+rgb[3]

but what should I do here:
neilrgb=3D6579300
rgb=3D ?????

--Talvitie

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

Search



Quick Links

User menu

Not signed in.

Misc Menu