News for hackers. Stuff that matters.
Re:Instant flood fill with HTML Canvas by ghusbands on Tuesday May 23, 2023 @11:58PM (#36053913)
One visible difference would be that if there are two identically-colored overlapping objects, the article's method will treat them as two separate areas, whereas the algorithm mentioned above will treat them as one.

There are faster fill algorithms than the above, described on Wikipedia, that don't need you to visit the whole image [1]. In particular, span-based filling.

https://en.wikipedia.org/wiki/Flood_fill

There are no comments on this comment yet.