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

Wrong display of nested squares #6

Closed
ghost opened this issue Jun 12, 2017 · 2 comments
Closed

Wrong display of nested squares #6

ghost opened this issue Jun 12, 2017 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Jun 12, 2017

This is a minimal example of the wrong display

Python 3.6.1, with IDLE on windows 10: it works

import turtle as t

sideLength = 40
for square in range(5):
    for side in range(4):
        t.forward(sideLength)
        t.left(90)
    sideLength += 10

image

With ipython-turtle-widget in Jupyter notebook() : wrong display

from ipyturtle import Turtle
t = Turtle(fixed=False, width=200, height=200)
t

image

sideLength = 40
for square in range(5):
    for side in range(4):
        t.forward(sideLength)
        t.left(90)
    sideLength += 10

Why ?

Perhaps a rounding error in the angle of the turtle ? (floating value ?)
I can document this bug, but i can't fix it myself.

Thanks !

@gkvoelkl
Copy link
Owner

Thanks for documenting.

I will care.

Best regards Gerhard

@gkvoelkl gkvoelkl added the bug label Jun 12, 2017
@gkvoelkl
Copy link
Owner

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant