public void setPatches(Array<NinePatch> patches) {
        this.patches.clear();
        this.patches.addAll(patches);
    }
@param patches the frames to be drawn
@param frameDuration the delay between frames in seconds.
core/src/com/ray3k/skincomposer/AnimatedNinePatchDrawable.java