flood-fill
3,336
Published 2009-01-02
It uses the "scanline with stack" flood fill algorithm, which is explained here -- http://lodev.org/cgtutor/floodfill.html
Enjoy.