有没有一种简单的方法可以用Pygame制作和保存动画? [英] Is there a simple way to make and save an animation with Pygame?

查看:553
本文介绍了有没有一种简单的方法可以用Pygame制作和保存动画?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个非常简单的分形生成器,可以打印出每个步骤;我想把它放在我做的演讲中。我用于演示的工具显然不支持pygame,是否可以将其保存为视频?最好作为动画的.gif或类似形式。

I made a very simple fractal generator that prints out each step; I want to put it in a presentation I made. The tool with which I'm making the presentation obviously doesn't support pygame, is there any way to save it as a video? Preferably as an animated .gif or the like.

推荐答案

不直接。但是,您可以使用执行此操作的许多可用实用程序之一来保存程序的截屏视频

我不知道Windows或OSX,但是如果您使用Ubuntu或其他基于gnome的桌面,则可以使用gnome-shell内置功能(标准键绑定是 Control + Shift + Alt + R )或 istanbul (更多信息此处)。

I don't know about Windows or OSX, but if you are on Ubuntu or other gnome-based desktop you can either use the gnome-shell built-in functionality (standard keybinding is Control+Shift+Alt+R) or istanbul (more info here).

谷歌搜索截屏<您的操作系统-here> 如果您不在Ubuntu上,应该会有所帮助。

Googling screencast <your-os-here> should help if you are not on Ubuntu.

编辑:您可以保存一个视频如果您愿意的话,可以使用其他实用程序轻松转换其格式。 此处是一种方法如何将 ogv (Linux屏幕广播的标准输出)转换为动画gif。

One you saved the video you can easily convert its format - if you so like - with other utilities. Here is a how-to on how to convert from ogv (the standard output for linux screencasting) to animated gif.

这篇关于有没有一种简单的方法可以用Pygame制作和保存动画?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆