[New-bugs-announce] [issue23660] Turtle left/right inverted when using different coordinates orientation

Andre Roberge report at bugs.python.org
Fri Mar 13 16:42:52 CET 2015


New submission from Andre Roberge:

The turtle module using screen coordinates such that the vertical coordinate increases vertically on the screen. This orientation is different from the traditional orientation for graphics programs.

It is possible to set coordinates with the "normal" orientation using the setworldcoordinates function, e.g.

    >>> from turtle import *
    >>> setworldcoordinates(0, 400, 400, 0)

With the above choice, the y coordinate increases as the turtle moves down on the screen.  However, doing so inverts the role of left() and right().

I have attached a "diff" file which introduces a change needed so that left() and right() behave correctly with this different orientation.

----------
files: turtle_diff.txt
messages: 238037
nosy: aroberge
priority: normal
severity: normal
status: open
title: Turtle left/right inverted when using different coordinates orientation
type: behavior
versions: Python 3.4
Added file: http://bugs.python.org/file38473/turtle_diff.txt

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23660>
_______________________________________


More information about the New-bugs-announce mailing list