Flood Fill Example: This program demonstrates how to fill a closed shape with a color. Even around holes! Draw a shape and press the 'f' key while pointing inside it. It will fill the white area with the current color. I added white (for erasing) but it won't fill with the background white color. It uses the "scanline" flood fill algorithm, which is explained here -- http://student.kuleuven.be/~m0216922/CG/floodfill.html Enjoy.