1

How to create flood fill figure animation using python?

I saw this image online and was wondering how to go about these types of animation. I think this is a very useful technique that can be used in maps, presentations, etc and was curious about it.

The image:

I Researched these questions:

Looked at this resource:

Questions:

  • Can you point me to working code that does this type of exercise?
  • Which libraries are considered standard to use now?
  • How does the logic behind the fill exercise work?
  • Can you point me to more information/resources (maybe the docs for the libraries)
  • How could I integrate this concept with matplotlib? Can you point me to an example?

Thank you so much!

Community
  • 1
  • 1
  • I don't think anyone is going to answer your question in its current form. Have you tried writing any code? Maybe try to write some, see how far you get on your own, and come back here when you get stuck with a particular problem. – damian Mar 28 '15 at 15:41
  • @damian, will do. Somewhat tricky to ask a good question. I even tried to do so! :) I just wanted a starting point I guess, and to have some general pointers on how to go about it. Thank you though – pdgonzalez872 Mar 28 '15 at 16:26
  • I would use an `AxesImage` (via imshow) for the fill pattern with a `LineCollection` laid on top for the maze pattern. You the use `FuncAnimation` to update date the image to be shown in the `AxesImage` as you fill it in. – tacaswell Mar 28 '15 at 20:22

0 Answers0