wiki
Flood fill, also called seed fill, is an algorithm that determines the area connected to a given node in a multi-dimensional array. When applied on an image to fill a particular bounded area with color, it is also known as boundary fill.