Boundary fill algorithm

Boundary Fill Algorithm:

  • Choosing a specific interior point [x,y]- which will be a start point for filling.
  • I will use a 4-connected approach to visualize the functionality of the algorithm.
$$$APPLET

Applet algorithm is designed as real boundary fill alg., but for visibility, it is drawing not only single pixels, but 10x10px squares. By clicking on the canvas, you specify starting point where algorithm is started... That´s why white spaces are creating near borders of other colors...

Author Martin Pullmann

Source code