public void setIndex(int index) {
        this.index = index;
    }
@param patches the frames to be drawn
@param frameDuration the delay between frames in seconds.
core/src/com/ray3k/skincomposer/AnimatedNinePatchDrawable.java