Controlling Animation Playback Controlling animation playback is best demonstrated using an example animation, such as the Insertion Sort embedded in this web page. The left mouse button, mouse right button (via a context menu), mouse wheel and the Ctrl & Shift keys are used to control playback. The arrow keys, normally on the right hand side of the keyboard, maybe used in lieu of the mouse. The left & right arrows are equivalent to rotating the mouse wheel backwards and forwards and the down arrow is equivalent to pressing the left mouse button. The up arrow is used to reset the animation. If the mouse has buttons, XBUTTON1 is equivalent to pressing the SHIFT key, and XBUTTON2 can be used to start & stop (pause) playback. The Vivio animation may need to be
selected (clicked with
the mouse) in order to activate the control. The
"browser" is selected by clicking outside the animation window, but within the browser
window. Notice how the mouse wheel (or arrow up &
arrow down keys) either controls animation playback or scrolls the web page
(typically) depending on whether the Vivio animation or "browser" has focus. |
||||||||||||||||||||||||||||||||||||
|
An active Insertion Sort Vivio animation | ||||||||||||||||||||||||||||||||||||
Context Menu Right click on the animation window background to display the context menu.
Shuttle The shuttle is displayed by selecting "Show Shuttle" in the context menu.
Position the shuttle by holding down the left mouse button down over the shuttle and moving the mouse. The shuttle's position is remembered in absolute screen co-ordinates The shuttle operating mode is determined by which sector the mouse cursor enters the shuttle. Entering via "tps" and rotating the mouse cursor around the shuttle centre increases or decreases the playback speed. Entering via "snap" and rotating the mouse cursor around the shuttle centre snaps the animation to the next or previous checkpoint. The checkpoints are added into the animation programmatically. In this example, a checkpoint is recorded at the end of each sweep of the insertion sort algorithm. Entering via any other sector, provided that the animation is stopped (paused), and rotating the mouse cursor around the shuttle centre single steps the animation forwards or backwards. To start or stop (pause) playback, click the left mouse button on the shuttle. To hide the shuttle, right click on the shuttle or animation window background and select "Hide shuttle" from the context menu. If a web page contains more that one animation, each
animation will have its own shuttle. |
||||||||||||||||||||||||||||||||||||