Need a Flood fill tutorial or code example

Hi

I have started some days ago the development with corona.
For a children coloring book I need the Flood fill algorithm or something like that.
Exists anywhere a good tutorial or code how I can implement it?
Have searched via google but I have not found a good one.

Happy Eastern @all.