// This BeanShell script demonstrates how to use the // ImageProcessor.applyMacro() method to do animation. imp = IJ.openImage("http://imagej.nih.gov/ij/images/boats.gif"); div = 500; n = 30; delta = div/n; stack = new ImageStack(imp.getWidth(), imp.getHeight()); ip = imp.getProcessor(); for (i=0; i