Scripting demonstrations


Try new Record-your-own-demos page!
You can code automatic demonstrations yourself, just by changing the contents of a plain-text file and calling this from javascript embedded in a webpage using the applet's public method playfile (view html source of a page with demos to see how).

Here are the demo text files


Instruction codes

Updated 20/4/02
The first letter after each # is an instruction. All subsequent text until the next # is the parameter for that instruction. "White space" at the beginning and end is trimmed.

Note the code is case sensitive and doesn't trap errors! It may help to add pauses (e.g. #w 1000) between "major" changes to give the model time to catch up. You shouldn't need to restart the applet to test it (although this may help if it gets stuck).

Probably wise to start most sequences with reset, select number of plots, and rearrange them