It is row, column. In your picture it is row 0 and column 3. Rows start
bottom to top and columns are left to right. The rows start at the bottom,
which is why it's 0. In most image processing, it's done top to bottom, but
for OpenGL the bottom left is the reference (like a graph) so I'm sure
that's why they did bottom up.
As far as why it's not, [x, y]. I couldn't tell you, that's just the format
that was decided. You should still be able to access in [y, x] form.
On Thursday, March 28, 2019 at 6:43:43 PM UTC-5, Marcin wrote:
>
> Hi,
>
> I documentation (1.3 and 'latest') we can find that :
>
> "Images with more than one row can be accessed either as a
> single-dimensional sequence, or as a (row, column) tuple"
>
> But then in our code we have to use (column,row) order instead. It is a
> little confusing.
>
> Btw. Is there a reason why we do not access the grid in [x,y] ->
> [row,column] way?
>
>
> [image: pyg docs.PNG]
> - Marcin
>
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.