0

I have made several programs in Python that have output showing up as a window called Python Turtle Graphics.

I want to save these files as .gifs for internet purposes.

Can the output of a Python program using the turtle library be saved as an animated .gif?

jwpfox
  • 5,124
  • 11
  • 45
  • 42
Vulwsztyn
  • 2,140
  • 1
  • 12
  • 20
  • find image lib that support GIF for your platform and add frame on each repaint of your window. Other option is to use grabber app that selects part of desktop and saves it as GIF (there are some out there those I tried had free trials for 30 days and had a message over the GIF feed but works. – Spektre Nov 23 '16 at 08:07
  • 1
    If you're using Mac OSX, I've just written up [how to create an animated GIF using just Python turtle and Preview](http://stackoverflow.com/questions/41319971/is-there-a-way-to-save-turtles-drawing-as-an-animated-gif/41353016#41353016) – cdlane Dec 28 '16 at 01:31

1 Answers1

-2

The easiest way would be a screen recording app.
Something like GifCam could be a nice easy solution.
Alternatively you could use something like BB Flashback recorder to record a video and then convert to a gif. The advantage here would be you can also capture the moue interactions if there are any.

hitchcock
  • 16
  • 3
  • 1
    Author talking about programmatic way of creating gif image. It is an programmers resource at least. – Artsiom Miksiuk Oct 25 '17 at 18:51
  • 1
    Their question doesn't say anything about a programmatic way to get a gif. Also, using just the turtle library it can't be done. You would need additional libraries or external processing. With only the turtle library you could save single frames of the drawing as an image and then composite them into a gif afterwards. – hitchcock Oct 25 '17 at 19:04