Boundary Fill Algorithm
Boundary fill algorithm is suitable when the boundary has single color while flood fill algorithm is more suitable for filling regions which are defined with boundary having more than one color. For example map of a country surrounded with other countries.
These basic algorithms provide methods for filling areas with a single (solid) color. Modifications can be made for multi color filling or pattern filling.