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

Andre Roberge <[email protected]>
Newsgroups gmane.comp.python.education
Message-ID <CAGMu_=ospigQEA6tfek_AHMBup_t2UC_8v32=Eeas1uF8xC=RA@mail.gmail.com>
On Sun, Jun 17, 2018 at 10:13 PM kirby urner <[email protected]> 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
> [email protected]
> https://mail.python.org/mailman/listinfo/edu-sig
>

_______________________________________________
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.