by Digby » Nov 8, 2002 @ 8:56am
Yeah, there's a bug in that code. Where the code tests if x2 is greater than 320, should be greater than 240. Similarly, where it tests y2 is greater than 240, it should be 320. You'll also need to change the 320 and 240 values in the associated calculations for i.