Reputation: 10045
when I touch one place,Within the Prescribed area fill the green color.like this:
click one of the fish,the both fish are red
Now I can only use the scan line seed filling algorithm to identify a closed area, but cannot identify multiple areas。
Like this coral, one click fills in multiple areas
if any one gives solution it would be so great,Thank you. (English is not my native language; please excuse typing errors.)
I have a crude idea.
floodFill(from: B)
continuebut I don't konw how to implementation if you find that the stack contains seed point A
in this demo
Upvotes: 11
Views: 1577