I came across this cool animation on Sander Huisman's blog. Original animation was a lossy YouTube link, and it doesn't do it justice. The way to get a high-quality embedded animation is to generate individual frames and then export to Flash format as follows
Export["~/research/qr/hinges/anim.swf", images];
Then include the following snippet in your page. Location of the swf file goes in two places, allegedly to provide compatibility for IE+Mozilla browsers
Notebook
From the help:
ReplyDeleteExport["file.swf", Manipulate[...], "ControlAppearance" -> Automatic] exports a Manipulate object to a Flash animation file, rendering user controls in the style of the local notebook interface.
Which is even easier; you don't have to make any frames yourself :)
It's easier, but it makes too few frames by default so the result looks jaggy. One thing I'd really like is a way to make the animation with interactive slider that lets user go back. Theoretically it should be possible by importing images into some Flash slide-show maker, but it's still on my todo list
ReplyDeleteBeautiful and notebook instructive to me.
ReplyDeleteI have also posted the html into the notebook (for my reference).