The wxploop program is an interactive program that allows WXP programs to overlay and animate. This program sets up a bitmap (or pixmap) which can be used as a canvas for several WXP programs. A bitmap/pixmap is a reserved area of memory that mimics the display window so that graphics can be drawn to it just as if it were to the window. Multiple programs can all draw to the same bitmap allowing products to be overlaid. Second, the program can open up several bitmaps, each acting as a separate canvas and the resulting bitmaps can be looped to show animation.

Information can be drawn onto the window or a pixmap in one of three ways:
Wxploop can be run in one of two operational modes:
The program initially starts in STOP mode and runs any commands passed through the command line. Then, if any image files either X window dump or GIF are specified, these are added to the loop in the order they appeared on the command line. Once the first image is loaded, the main window is opened and the program will animate the images (go to LOOP mode) once all are loaded into the program. After the images are loaded, the program animates those images and waits for commands to be entered via loopset where pixmaps can be created and deleted, images annotated and loop parameters changed.
At any point through loopset, a window ID of the main window can be queried. This window ID can then be passed to any WXP graphics program by specifying the window device. Example return:
+8627531:8627533:800x600 or +8627531:8627533 (if size is the
default 640x512)
Also, pixmaps can be created. The pixmap ID can be queried and graphics drawn directly to the pixmap by specifying its ID and size to the device resource.
The program will run those commands pass on the command line and load any images in listed on the command line. The program will then print the window ID of the main window allowing WXP programs to access that window with the window specification under the device resource.
Then the wxploop program will automatically background itself. This way, the window ID can be set to a shell variable and passed to another graphics program. Manual backgrounding is not necessary with "&" on the command line and is also not recommended.
NOTE for X Windows: When plotting graphics to a wxploop window or pixmap, it is highly recommended to allocate all colors used in the final graphic by using the "color" command. If this is not done, only the default color table is loaded (normally "wxp.clr"). Even though each WXP program allocates its own colors, these only remain allocated for the duration of each graphics program that is independent of wxploop. Once the graphics program exits, the colors are deallocated and those colors displayed on a wxploop window or pixmap may be changed by the next program that wishes to allocate colors. Running the "color" command in wxploop will allocate those colors in the color table. If a graphic uses multiple color table, the "color" must be run again to allocate the other color tables. This command does not deallocate any previous colors.
Once a loop has been created, it can be saved to either X window dump or GIF files. Then these files can be read back into wxploop later on and again animated. Another key feature is the check command that will determine if an image is already in the loop based on image titles.
For further information about WXP, email technical-support@weather.unisys.com
Last updated by Dan Vietor on June 24, 1998