src/main/java/com/tajnyprojekt/tpanimation/TpAnimation.java
public void loop(int n) {
        isLooping = true;
        if (n < 0) n = 0;
        this.loopsToDo = n;
        loopCount = 0;
        play();
    }
/**
     * Starts playback of <code>n</code> loops of the animation.<br>
     * Use <code>stop()</code> to disable looping.
     * @param n the number of loops to render, 0 or negative indicates infinite loop
     * @see #stop()
     */
Starts playback of n loops of the animation.
Use stop() to disable looping.
@param n the number of loops to render, 0 or negative indicates infinite loop
@see #stop()
Starts playback of n loops of the animation . Use stop () to disable looping . @param n the number of loops to render 0 or negative indicates infinite loop @see #stop ()
public void loop(int n) {
        isLooping = true;
        if (n < 0) n = 0;
        this.loopsToDo = n;
        loopCount = 0;
        play();
    }
public void loop ( int n ) { isLooping = true ; if ( n < 0 ) n = 0 ; this . loopsToDo = n ; loopCount = 0 ; play ( ) ; }
Starts playback of <code>n</code> loops of the animation.<br>
 Use <code>stop()</code> to disable looping.
Starts playback of <code > n< / code > loops of the animation . <br > Use <code > stop () < / code > to disable looping .