I have flood fill Image functionality in my app and it's working fine, but now I want to fill Colour on specific portion of Image with Animation.
I have used below library ho achive flood fill.
Here I am sharing reference video link so anyone can get idea that which and where animation I want.
Reference Video link:- link
You could edit that code and update the image every n iterations... but, that might make it too slow, and might not give you the desired effect anyway.
Another option, which may or may not suit your needs, would be to animate a mask to "reveal" the newly-color-filled image.
Could look something like this:
If the oval animation doesn't suffice, you could play around with a shape mask such as this:
animating its scale from tiny to large enough to cover the view.
Edit
Here's a quick example of animating a shape mask (put an image named "sample" in your assets):
If you want to use that with your "flood fill" ...
First, I would edit that flood fill code (or find another example).
Instead of encapsulating it in a subclassed
UIImageView, have it:Then, overlay one image view on top of another, where the "top" image view begins with an empty mask (so it's completely clear). On tap:
.imageof the "top" image view.imageof the "bottom" image view with the new imageLather, rinse, repeat.
You could also optimize the animation by having the flood-fill code also return the changed bounds, and then make the "end" mask only as large as needed to cover the changed area.
Example project here: https://github.com/DonMag/FloodAnim