Flood Fill in Java
Posted on 1997-11-18
Does anyone know of a routine to do a flood fill in Java? By flood fill I mean the same as "paint can" fill in a graphics program. Basically, a flood fill identifies the key color at a specified coordinate. The routine then changes pixels of the key color to a new color spreading in all directions until a pixel not the key color is found.