The CW_ANIMATE_RUN procedure displays a series of images that have been loaded into a CW_ANIMATE compound widget by a call to CW_ANIMATE_LOAD.

CW_ANIMATE provides the graphical interface used by the XINTERANIMATE procedure, which is the preferred routine for displaying animation sequences in most situations. Use this widget instead of XINTERANIMATE when you need to run multiple instances of the animation widget simultaneously. Note that if more than one animation widget is running, they will have to share resources and will display images more slowly than a single instance of the widget.

This routine is written in the IDL language. Its source code can be found in the file in the lib subdirectory of the IDL distribution.

Calling Sequence

CW_ANIMATE_RUN, Widget [, Rate]



The widget ID of the animation widget (created with CW_ANIMATE) that will display the animation.


A value between 0 and 100 that represents the speed of the animation as a percentage of the maximum display rate. The fastest animation has a value of 100 and the slowest has a value of 0. The default animation rate is 100.

The animation rate can also be adjusted after the animation has begun by changing the value of the "Animation Speed" slider.



Set this keyword equal to the number of frames to animate. This number must be less than or equal to the Nframes argument to CW_ANIMATE.


If this keyword is set, the animation is stopped.


See the documentation for CW_ANIMATE for an example using this procedure.

See Also