python - 如何保存由 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()
解决方案
推荐阅读
- python - 在 django 中找不到页面不应该上升的错误
- wordpress - Woocommerce 特定类别的总库存数
- r - 是否可以在 xaringan 演示文稿中包含 pdf 图像?
- windows-subsystem-for-linux - powershell.exe -command get-clipboard 如果重定向会修改我的终端字体
- node.js - Socket.IO 和 Electron 不能发射或接收
- javascript - 括号内的三元运算符——这是做什么的?
- django - Django:将 LDAP 凭据传递给第 3 方 SDK
- ios - 强制 YouTube 链接在移动 Safari 中打开
- vuejs2 - Tailwindcss @apply 指令在 vue 组件中不起作用
- python - 使用 for 循环将元素导入列表