Skip to content
Advertisement

generate video pixel by pixel, programmatically

I’d like to generate an animation pixel by pixel programmatically. Preferably in Hi-Def, in Python or in Ruby. I thought about using PIL to make each frame and then convert the frames into video. Is there a better way to do this?

EDIT: Clarification, this is 2D and I need the pixels to be precise.

EDITEDIT:

Something like this:

frame = Frame()
frame.draw(0, 0, 'red')
frame.draw(0, 1, 'blue')
...
frame = Frame()
...

Would be awesome.

Advertisement

Answer

rcairo – ruby bindings for Cairo image library.

https://github.com/rcairo/rcairo

7 People found this is helpful
Advertisement