Skip to content

ThiagoCComelli/Flood-Fill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flood Fill

Algorithm to Flood Fill.

  • Python
  • No complex code
  • Beautiful to see

ezgif com-optimize(1)

Features!

  • 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

How to use

Need:

  • Python - Programming language
  • PIL - Python Imaging Library

Executation

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"

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages