Negative coordinate? #9372
Unanswered
swalter972
asked this question in
Q&A
Replies: 2 comments 1 reply
-
|
From the code, the reason for this behaviour is actually not in Python. In our Python code, we move into C at the line Line 2106 in 0a1d6c3 From there, our C code attempts to fix your negative co-ordinates at Lines 1868 to 1873 in 0a1d6c3 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Thanks, any reason for that ? (because my pupils shouted "IT works" despite of those negative coordinate) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I use Pillow with my pupils in computer science class.
It's a good exercise for visualizing matrices and coordinates. This is the first time I've encountered the problem of negative coordinates.
For example, this code correctly returns an image with horizontal symmetry.
I'm trying to understand why with the source code on github, but I don't have much time to look at everything, and the documentation on the coordinate system is rather brief.
One might think of Python slices ([-1]), but these are tuples.
thanks
Beta Was this translation helpful? Give feedback.
All reactions