src/main/java/com/tajnyprojekt/tpanimation/TpAnimation.java
private void prepare() {
        renderedFrames = 0;
        loopCount = 0;
        elapsedMillis = 0;
        lastFrameMillis = parent.millis();
        isFinished = false;
        isForwardPlayback = isForwardPlaybackSetting;
        if (isForwardPlayback) {
            currentFrame = 0;
            progress = 0;
        }
        else {
            currentFrame = numberOfFrames - 1;
            progress = 1;
        }
    }
/**
     * Prepares the initial animation state for playback.<br>
     * Meant to be called inside methods that can start playback.
     */
Prepares the initial animation state for playback.
Meant to be called inside methods that can start playback.
Prepares the initial animation state for playback . Meant to be called inside methods that can start playback .
private void prepare() {
        renderedFrames = 0;
        loopCount = 0;
        elapsedMillis = 0;
        lastFrameMillis = parent.millis();
        isFinished = false;
        isForwardPlayback = isForwardPlaybackSetting;
        if (isForwardPlayback) {
            currentFrame = 0;
            progress = 0;
        }
        else {
            currentFrame = numberOfFrames - 1;
            progress = 1;
        }
    }
private void prepare ( ) { renderedFrames = 0 ; loopCount = 0 ; elapsedMillis = 0 ; lastFrameMillis = parent . millis ( ) ; isFinished = false ; isForwardPlayback = isForwardPlaybackSetting ; if ( isForwardPlayback ) { currentFrame = 0 ; progress = 0 ; } else { currentFrame = numberOfFrames - 1 ; progress = 1 ; } }
Prepares the initial animation state for playback.<br>
 Meant to be called inside methods that can start playback.
Prepares the initial animation state for playback . <br > Meant to be called inside methods that can start playback .