MoveTo move1 = (MoveTo) start.getCommand(i);
MoveTo move2 = (MoveTo) delta.getCommand(i);
move1.setX(move1.getX() + (move2.getX() * progress));
move1.setY(move1.getY() + (move2.getY() * progress));
} else if (start.getCommand(i) instanceof CurveTo) {
CurveTo curve1 = (CurveTo) start.getCommand(i);
CurveTo curve2 = (CurveTo) delta.getCommand(i);
curve1.setX(curve1.getX() + (curve2.getX() * progress));
curve1.setY(curve1.getY() + (curve2.getY() * progress));
curve1.setX1(curve1.getX1() + (curve2.getX1() * progress));
curve1.setY1(curve1.getY1() + (curve2.getY1() * progress));
curve1.setX2(curve1.getX2() + (curve2.getX2() * progress));
curve1.setY2(curve1.getY2() + (curve2.getY2() * progress));
}
}
origin.setCommands(start.getCommands());
origin.redraw();
}