131 points · by Uncle_Sam · 16y ago · 28 comments
I made a simple RMagick script to generate these from animation frames. Turns out it even works well with full-color images. See: http://doormouse.org/illusion/ (interactivity only works in browsers that support the HTML5 range element)
Just overlay N layers (the frames of your animation) on top of one another. For every Nth column of pixels, delete the next N-1 columns following it (in all layers). Then, for each layer at index X in the stack, translate the entire layer horizontally by X pixels.
Your overlay for viewing the animation is just a black opaque rectangle with every Nth column being deleted to reveal the image beneath.
First person who says "HEY BUT ITS HACKIN UR VISION" gets a fist sandwich.