Algorithm to Flood Fill.
- Python
- No complex code
- Beautiful to see
- Create a output gif with the processes
You can:
- Choose a random image (black and white) of a maze or something else, and the program return a gif with the flood
- Input a matrix with 0s and 1s, and return a image with the flood
Need:
Install the dependencies and.. Inside folder mazes, put your image
THE IMAGE NEED A GREEN PIXEL - RGB COLOR (0,255,0) - TO START THE PROCESS a red pixel is optionally. (green pixel is the start of Flood)
$ cd Image
$ python3 main.py Maze5.png
And inside of the "./output" will have the "{name_of_your_file}.gif"
MIT