SlideViewer Script Format Description

This page describes the script file format for the SlideViewer applet, followed by a short example. Due to the variety of options available in the scripts, there is a quick reference section for the command format, followed by a section that describes the commands in full detail. The first section below describes some the general script file format.


SlideViewer Script General Format Notes

The following list contains general information about the script file format.


SlideViewer Script Quick Command Format Reference

The following script format description is in semi-EBNF format.

All parameters for transitions are optional except for the <pic> parameter. For delays, all parameters are optional, with the <non-negint> delay time defaulting to 1 second.

Here are descriptions of the non-terminals used in the above definitions:

   *****************************************************************
   <pic>           ::= pic=<keyname of pic>
   <direction>     ::= dir=(Left | Right | Up | Down)
   <anydirection>  ::= <direction> | dir=(LeftRight | UpDown)
   <linedirection> ::= dir=(horiz | horizontal | vert | vertical)
   <fromdirection> ::= dir=(TopLeft | TopRight | BotLeft | BottomLeft |
                            BotRight | BottomRight)
   <pivot>         ::= pivot=(TopLeft | Top | TopRight | Left | Center | Right |
                              BotLeft | BottomLeft | Bottom | BotRight | BottomRight)
   <delay>         ::= delay=<non-negint>
   <pixelSize>     ::= pixelSize=<posint>
   <jumpSize>      ::= jumpSize=<posint>
   <speed>         ::= speed=<posint>
   <strip>         ::= strip=<posint>

   <int>           ::= ..., -2, -1, 0, 1, 2, ...
   <non-negint>    ::= 0, 1, 2, ...
   <posint>        ::= 1, 2, 3, ...

   <color>         ::= <0..255>,<0..255>,<0..255>
   *****************************************************************

SlideViewer Script Complete Command Format Description

Description of Special Non-Transition Commands

Description of Transition Commands

Description of Delay Commands


Example Script

The following example declares four images, one which is pure black, and the others being actual gifs which will be padded with the default black to make them all the same size. It may be helpful to see SlideViewer perform the script.

   !**********************************************************
   ! Short Example Script
   !**********************************************************
   pic key=black  rgb=0,0,0
   pic key=coast  url=pics/ca_coast7.gif
   pic key=storm  url=pics/glacier_storm_bw.gif
   pic key=bridge url=pics/gldn_bridge1.gif

   do

      ! Show the first image
      appear pic=coast
         delay 2000

      ! Wipe on the storm image
      wipe pic=storm  delay=30 speed=5 strip=2 pivot=TopLeft clockwise=1
         delay 2000

      ! PixelIn the bridge image
      pixelin pic=bridge delay=30 pixelSize=6
         delay 2000

      ! Rotate to black
      rotate dir=vertical pic=black  delay=50 strip=2 speed=7
         delay 2000

      ! Fade in the first image
      fadeIn pic=coast delay=50 speed=4

      ! Repeat infinitely
   repeat times=-1

SlideViewer was written and is Copyright © 1995 by Mike Crider