قالب وردپرس درنا توس
Home / IOS Development / swift – iOS – How to fill colors in Prescribed Area

swift – iOS – How to fill colors in Prescribed Area



when I touch one place you fill the green color within the prescribed range. Like this:

  like this

and this:
 enter image description here

click one of the fish , both fish are red

Now I can only use the scan line fill algorithm to identify a closed area, but can not identify more areas。

Like this coral, fills one click in several areas

if anyone gives solution it would be so great, thank you. (English is not my native language; sorry for typos.)


Source link