以编程方式逐个像素地生成视频

Aus*_*son 7 ruby python video animation

我想以编程方式逐像素生成动画.最好是Hi-Def,Python或Ruby.我想过使用PIL制作每个帧然后将帧转换成视频.有一个更好的方法吗?

编辑:澄清,这是2D,我需要像素精确.

EDITEDIT:

像这样的东西:

frame = Frame()
frame.draw(0, 0, 'red')
frame.draw(0, 1, 'blue')
...
frame = Frame()
...
Run Code Online (Sandbox Code Playgroud)

会很棒的.

Aus*_*son 0

rcairo - 开罗图像库的 ruby​​ 绑定.

https://github.com/rcairo/rcairo