Huh, that's useful because I had to write a floodfill a couple of days ago and it was a pain in the arse.
I'll be converting my code to the stackless version toot sweet.
I'll be converting my code to the stackless version toot sweet.
So I needed a way to detect that, and doing a floodfill from the edge of the image turned out to be the easiest way.