On 28/07/2016 at 04:59, xxxxxxxx wrote:
As Niklas already pointed out, you are having a problem with your recursion, which in the end will lead to a stack overflow.
Instead of walking the tree recursively, it's advised to have a loop for the "Next" direction and only recurse into the "Down" direction. I know, this link leads into the C++ docs, but I'm sure you can see the pattern in the second depicted code snippet.
I'm not sure, I understood the question about the "virtual printer". Scott is using SetPixel() and the function gets the coordinate of the pixel as parameters. There's no need to use the loops, if you know which pixels you are addressing. Or you could store the coordinates of relevant pixel in a list and then loop over this list to set the pixels. Many roads...