I need a function that will systematically generate coordinates 5,5 at a time.
For example:
[php]Starting at 0,0
Run the function.
Generate the coordinates between 0,0 and 5,5.
Run the function.
Generate the coordinates between 0,0 and 5,-5.
Run the function.
Generate the coordinates between 0,0 and -5,-5.
Run the function.
Generate the coordinates between 0,0 and -5,5.
Run the function.
Generate the coordinates between 0,5 and 5,10.
Run the function.
Generate the coordinates between 5,5 and 10,10.
Run the function.
Generate the coordinates between 5,0 and 10,5.[/php]
etc.
I’ve been trying to Pseudo code this, but am struggling with even that. If anyone could maybe write someway to logically figure this out in pseudo code that would be okay, but if anyone knows how to write this as a function that would be even better!