You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ImageDraw.floodfill code assumes a negative index will raise an IndexError, but python wraps that around to the last element, which is not the desired effect. This causes a floodfill that hits the left side or the top of the image to wrap around to the other side. Code:
On Sep 5, 2019, at 4:01 PM, Hugo van Kemenade ***@***.***> wrote:
Thanks both, merged!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
The ImageDraw.floodfill code assumes a negative index will raise an IndexError, but python wraps that around to the last element, which is not the desired effect. This causes a floodfill that hits the left side or the top of the image to wrap around to the other side. Code:
Fix:
The text was updated successfully, but these errors were encountered: