[Edu-sig] turtle coordinates: Y increase downards - as in most graphics API?

kirby urner kirby.urner at gmail.com
Sun Jun 17 21:13:25 EDT 2018


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/edu-sig/attachments/20180617/c4939c9f/attachment.html>


More information about the Edu-sig mailing list