2d Image fill functionality (flood fill)

i am developing a coloring app in unreal engine. and i want to ask is there any way to fill in the 2d image with any color defined by edges / boundaries ? same like fill tool in MsPaint if yes then can someone guide me the process in BPs?

Yes, by changing the material from one that makes the mesh look like it’s not colored, to one that does.