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

draw_line() inconsistency with CodeSkulptor #1

Open
goekce opened this issue Nov 28, 2021 · 0 comments
Open

draw_line() inconsistency with CodeSkulptor #1

goekce opened this issue Nov 28, 2021 · 0 comments

Comments

@goekce
Copy link

goekce commented Nov 28, 2021

The following code is rendered differently when drawn with simplegui. The edges of draw_line() of simplequi seem to be longer:

try:
    import simplegui
except ModuleNotFoundError:
    import simplequi as simplegui

def draw(c):
    c.draw_circle([90, 200], 20, 10, 'white')
    c.draw_circle([210, 200], 20, 10, 'white')
    c.draw_line([50, 180], [250, 180], 60, 'red')
    c.draw_line([55, 170], [90, 120], 5, 'red')
    c.draw_line([90, 120], [130, 120], 5, 'red')
    c.draw_line([180, 108], [180, 160], 140, 'red')


f = simplegui.create_frame('', 300, 300)
f.set_draw_handler(draw)
f.start()

PS: Thanks for this lightweight module!

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

No branches or pull requests

1 participant