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

Andre Roberge andre.roberge at gmail.com
Sun Jun 17 22:16:06 EDT 2018


On Sun, Jun 17, 2018 at 10:13 PM kirby urner <kirby.urner at gmail.com> wrote:

>
>
> 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?
>

​Yes, it does. BUT, if you set the world coordinates like Jurgis reported,
then left and right are inverted. There's an easy fix ... but it has been
rejected.​



>   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
> Edu-sig at python.org
> https://mail.python.org/mailman/listinfo/edu-sig
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/edu-sig/attachments/20180617/95c190a5/attachment-0001.html>


More information about the Edu-sig mailing list