首页 > 解决方案 > 如何保存由 zelle 图形模块制作的动画?

问题描述

这是我想以视频格式(例如GIF)保存的简单代码。你能告诉我我该怎么做吗?我可以以 eps 格式保存每一帧,但不知道应该如何保存整个动画。

from graphics import *

win = GraphWin('Face', 1000,1000)
pt = Point(50, 50)
cir = Circle(pt, 25)
cir.draw(win)

for i in range(46):  # animate cir1 to the right
    cir.move(10, 0)
    time.sleep(.05)

win.getMouse()
win.close()

标签: pythonanimationzelle-graphics

解决方案


推荐阅读