Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Circle with negative radius moves incorrectly and fails to draw. #9

Closed
nickovs opened this issue Jan 1, 2021 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@nickovs
Copy link

nickovs commented Jan 1, 2021

The circle() method for a Turtle is defined take have a centre position that is radius units to the left of the turtle's current position; when radius is positive the circle should proceed in the counterclockwise direction and when radius is negative the circle should proceed clockwise.

The current implementation of circle() fails in two distinct ways:

  • When radius is negative the turtle ends up in the wrong position after the command.
  • When radius is negative no arc or circle is drawn.

The first issue appears to be to do with the Python circle() method does not invert the sign of the extent when the radius is negative. I'm not certain what the cause of the second problem is.

@wangsijie wangsijie added the bug Something isn't working label Jan 4, 2021
@cqby
Copy link
Contributor

cqby commented Mar 1, 2021

fix 0.8.1

@cqby cqby closed this as completed Mar 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants