Re: turtle coordinates: Y increase downards - as in most graphics API?

kirby urner <[email protected]>
Newsgroups gmane.comp.python.education
Message-ID <CAPJgG3SUB-QCEbGiov5tqMwA_1rDh_-Tw6vW9HgYdi9PB8c0qQ@mail.gmail.com>
Any Ideas?
> Thanks :)
> --
>


​Wow I didn't know about this issue.

Just

import turtle
turtle.forward(100)
turtle.right(90)
turtle.forward(100)
turtle.left(90)
turtle.forward(100)

performs as expected out of the box right?  Forward is in the direction the
turtle is facing and left and right are the turtle's own front paws.  We're
looking down on said turtle.

https://flic.kr/p/Lb4mUf  (warning: URL is case sensitive)

I gather some have a preference for (0,0) as upper left versus smack dab in
the middle of the screen with X right and Y up?

Codesters and Scratch follow the (0,0) in the middle convention.  That's
how math textbooks do it.

HTML Canvas object is irrelevant.  Resistance is futile.  Just kidding.

Would be good to have a global setting, just like for cubic vs. tetra
volumes.

Kirby

_______________________________________________
Edu-sig mailing list
[email protected]
https://mail.python.org/mailman/listinfo/edu-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.