Flood Fill in Python


/ Published in: Python
Save to your folder(s)

A short snippet to demonstrate how to mark pixels inside e.g.a circle.
Note that checking if a pixel was already added or not would be done faster using as input to the floodfill function a duplicate array of the pixel data and simply setting any added pixels to one.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.