Flood Fill Frustration
Submitted by mark on Wed, 2007-06-27 00:18.
See all entries for
Oh my, the flood fill algorithm is quite difficult to finish. But I guess I have found a nice way to debug it in the future, which was the hardest part in the past: Instead of printing lots of information on stdout, which I then try to relate to the objects shown on the screen, I am going to let the algorithm create a PDF document, which explains what it was doing.
Thanks to Cairo creating the PDF will be very simple, especially since Cairo's PDF output does not fail on stroke operations after the viewport was scaled. Let's hope that this is the light at the end of the tunnel.

- elektronische medien, find their site at