/* DynAPI Distribution Slide Animation Extension The DynAPI Distribution is distributed under the terms of the GNU LGPL license. requires: dynapi.fx.Thread */ // Generates a path between 2 points, stepping inc pixels at a time function SlideAnimation(x1,y1,x2,y2,inc) { var n,dx,dy,lx,ly,p=[]; if (x2==null) x2 = x1; if (y2==null) y2 = y1; lx = x2-x1; ly = y2-y1; n = Math.sqrt(Math.pow(lx,2) + Math.pow(ly,2))/(inc||10); dx = lx/n; dy = ly/n; for (var i=0;i