Insert animations in ''AniWiki''

Please read the explanations in the plugin page to understand how animations work in AniWiki.

The syntax for inserting animations in AniWiki is like this:

<ani id url type max height interval|title>
description
</ani>

:!: Always bear in mind that you have provided a correct url, i.e. your images can be accessed by such a series of addresses: url + i + type, where i is an integer giving the filename of each frame.

Rotation of a word ''Animation''

In the introduction page of the package ''animation'', I have used a rotating word as the beginning example. Now 30 images from that example are uploaded to this site, so here we are able to create an HTML animation page as follows:

<ani example http://animation.yihui.name/_media/wiki: 
png 30 300 0.1|An animation example>
Here is the description for the animation.
</ani>

The above code will generate the result below:

An animation example
loading animation frames... 0%

Here is the description for the animation.

Buffon's Needle

Here is an example illustrating how to upload images to other websites and cite them here. I have generated 100 animation frames from the function buffon.needle() in package animation and uploaded them to Photobucket. You can view all the images in my album buffon's needle.

<ani buffon http://s288.photobucket.com/albums/ll181/xieyihui/buffon_s_needle/ 
png 100 600 0.1|Demonstration of Buffon's Needle>
Suppose we have a floor made of parallel strips of wood, each the same width, 
and we drop a needle onto the floor. What is the probability that the needle 
will lie across a line between two strips?
</ani>

Here is the result (it can take one or two minutes to download all the images, depending on your internet connection):

Demonstration of Buffon's Needle
loading animation frames... 0%

Suppose we have a floor made of parallel strips of wood, each the same width, and we drop a needle onto the floor. What is the probability that the needle will lie across a line between two strips?

 
wiki/animation_example.txt · Last modified: 2008/07/06 07:37 by yihui
 
Recent changes RSS feed Creative Commons License Donate to AniWiki Contribute Your Ideas! Driven by DokuWiki