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

Load custom background images #20

Open
BTWS2 opened this issue Jul 4, 2022 · 2 comments
Open

Load custom background images #20

BTWS2 opened this issue Jul 4, 2022 · 2 comments
Labels
enhancement New feature or request low priority Thing we want to see implemented at some point

Comments

@BTWS2
Copy link
Collaborator

BTWS2 commented Jul 4, 2022

Load custom backgrounds in turtle canvas with bgpic.

Edit: This feature request is to make "connect-the-dots"-exercises possible. This would be ideal to learn about the coordinate system and get some visual help. E.g.
image

@BTWS2 BTWS2 added enhancement New feature or request low priority Thing we want to see implemented at some point labels Jul 4, 2022
@inteon
Copy link
Member

inteon commented Jul 5, 2022

How would the image be provided?
Should the image be on a public url?
Does turtle support public urls?

@BTWS2
Copy link
Collaborator Author

BTWS2 commented Jul 5, 2022

How would the image be provided?

In the workdir or evaluation folder provided by the teacher. The judge would take the alphabetically first gif file, if any. See updated issue description for use case.

Should the image be on a public url?

No.

Does turtle support public urls?

No.

Turtle does support loading of gif-files, but svg-turtle doesn't support it as far as I know. This was a long shot, so prioritize other issues first.

import turtle

def test_bgpic():
    screen = turtle.getscreen()
    screen.bgpic("sample.gif")

test_bgpic()
turtle.done()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority Thing we want to see implemented at some point
Projects
None yet
Development

No branches or pull requests

2 participants