6

Is there a way to export a python turtle drawing to a video? The video should contain the real-time drawing process.

In particular I'm not interested in a screen-recording workaround, but a solution that would work in a headless system like a cloud environment.

Here's an example of a turtle drawing

import turtle 
tr = turtle.Turtle()
rad = 80
tr.circle(rad)
turtle.done()
Alberto
  • 63
  • 4
  • 3
    If a gif can satisfy your needs you can check [here](https://stackoverflow.com/questions/41319971/is-there-a-way-to-save-turtles-drawing-as-an-animated-gif) there are ways to save frames using tkinter – alparslan mimaroğlu Aug 13 '21 at 14:08
  • I don't know a way, but if you are really desperate try using a screen recorder such as OBS. – Jonathan Drukker Aug 13 '21 at 16:35
  • 1
    Does this answer your question? [Is there a way to save turtle's drawing as an animated GIF?](https://stackoverflow.com/questions/41319971/is-there-a-way-to-save-turtles-drawing-as-an-animated-gif). Once to snapshot frames, then creating an mp4 or other video format is about the same as creating a gif. – ggorlen Aug 02 '22 at 18:44

0 Answers0