> So what's the notation to go the other way? Is there something niftier > than this: > > rgb = r+(256*(g+256*b))
You could use rgb = r | ((b<<8 | g)<<8) but which you considered niftier would depend on whether you had a great-uncle Boole, I guess.
> So what's the notation to go the other way? Is there something niftier > than this: > > rgb = r+(256*(g+256*b))
You could use rgb = r | ((b<<8 | g)<<8) but which you considered niftier would depend on whether you had a great-uncle Boole, I guess.