From: Clifford Heath Date: 2009-09-13T11:55:08+09:00 Subject: Re: Nice algorithm for 'spreading' indexes across an array? Max Williams wrote: > It feels like there should be a simple solution for this but i can't > think of a nice way. Anyone? The algorithm you want is called Bresenham's Line algorithm: Clifford Heath.