+ 2
In Python Turtle graphics, How can I add images ?
Actually I'm working with turtle graphics. I don't know how to insert and PNG image in a turtle graphics. Is there anyone familiar with turtle graphics.
7 Respostas
+ 6
hum turtle for simple drawings
the canvas might be better suited for your purpose !
+ 6
Uday Kiran Jayanthi yes you can but by design it is prevented, that shows the use of turtle @
+ 2
actually, I am able to add GIF files, but I want to insert PNG files.
+ 2
you can convert a png into a gif file without quality loss
+ 2
If you're using pure python without any additional external libraries you'll need to convert to a Gif. Otherwise, you can use PIL for python 2 or Pillow for python 3. You'll need to install the library to your python installation or virtual environment. Then you can import it and use Image.open('picture.png') etc to load a png image instead of just using a Gif.
Just Google 'python pillow' or 'pil'
+ 1
You need to convert the PNG to a gif and then you can add it.
0
go to turtle documentation in the python docs....