Repository navigation
Conversation
Signed-off-by: Don Yin <Don_Yin@outlook.com>
Can I ask - why did you try and do that? |
|
What you're experiencing is not necessarily a bug. #3406 suggested
When Line 834 in 76a7d26 So to the mind of that user, this might also be considered a feature. Pillow values backwards compatibility, so I'm inclined not to revert this behaviour. |
|
Honestly, I came across it while trying edge cases rather than in a real workflow, so I don't have a strong use case for changing it. Thanks for digging up #3406; I didn't realise the wraparound came from there. I'm happy to close this. I can also send a one-line docstring note instead, saying that negative seed coordinates count from the far edge, if that would help. |
|
I've created #10297. So at https://pillow.readthedocs.io/en/stable/reference/ImageDraw.html#PIL.ImageDraw.floodfill, the user would need to click on 'Coordinate system' to see this new note. See what you think. |
I tried filling a 3×3 white image from
(-1, 1)and all nine pixels turned red. A seed beyond the right or bottom edge already leaves the image alone.Changes proposed in this pull request:
I ran the drawing tests,
python3 selftest.py,pre-commit run --all-files, andpython3 -m tox -e mypysuccessfully.python3 -m pytest Tests/had nine Palm/ImageGrab failures that I also reproduced on unchangedmain: the localconvertexecutable is broken and screen capture is unavailable.