Flood Fill:Recolor the Start Blob, Not a Restart From Every Pixel
Paint the 4-connected start color once — copying the raster and restarting a flood from every matching pixel is the honest quadratic, and skipping the early-out when start already equals color never returns.
Read More