Introduction: Boundary Fill Algorithm starts at a pixel inside the polygon to be filled and paints the interior proceeding outwards towards the boundary. Boundary Fill Algorithm. Start at a point inside the figure and paint with a particular color. Filling continues until a boundary color is encountered. The boundary fill algorithm works as its name. This algorithm picks a point inside an object and starts to fill until it hits the boundary of the object. The color of the.
In this article, we are going to learn about Boundary-fill algorithm and Flood-fill algorithm in computer graphics. Boundary Fill Algorithm: The boundary fill algorithm works as its name. This algorithm picks a point inside an figure and starts to fill until it reaches the boundary. Following is the algorithm for filling a region in a recursive manner with color specified fill color (f_color) up to a boundary color specified boundary color ( b_color).