Bitmap/Flood fill: Difference between revisions

m
(→‎{{header|E}}: better algorithm and optimizations (can actually complete File:Unfilledcirc.png in reasonable time))
Line 357:
}</lang>
 
Note that this does not make any attempt to smoothly fill 'banks' or have a tolerance; it matches exact colors only. This will fill the example image with red inside green:
 
<lang e>{