On Thursday 18 April 2002 1:45 pm, Lars Gullik Bjønnes wrote: > Herbert Voss <[EMAIL PROTECTED]> writes: > | Angus Leeming wrote: > >> r = int(factor * double(r)); > >> g = int(factor * double(g)); > >> b = int(factor * double(b)); > | > | never divide or multiply with powers of 2! > > Hmm why?
You mean use left-shit and right-shift operators? No; I hate them. It's equivalent to pointer arithmetic and IMO is an optimisation that's justified only very rarely. Angus