src/main/java/com/tajnyprojekt/tpanimation/TpAnimation.java
public void render(int n) {
        if (isRendering || n <= 0) return;
        stop();
        loopsToDo = n;
        numberOfFrames = PApplet.round(outputFrameRate * durationMillis / 1000.0f);
        totalNumberFrames = loopsToDo * numberOfFrames;
        isRendering = true;
        play();
        log("rendering started");
    }
/**
     * Starts rendering of <code>n</code> loops of the animation.<br>
     * The animation will be stopped and rendered from the beginning when already playing.
     * @param n the number of loops to render, must be greater than 0
     */
Starts rendering of n loops of the animation.
The animation will be stopped and rendered from the beginning when already playing.
@param n the number of loops to render, must be greater than 0
Starts rendering of n loops of the animation . The animation will be stopped and rendered from the beginning when already playing . @param n the number of loops to render must be greater than 0
public void render(int n) {
        if (isRendering || n <= 0) return;
        stop();
        loopsToDo = n;
        numberOfFrames = PApplet.round(outputFrameRate * durationMillis / 1000.0f);
        totalNumberFrames = loopsToDo * numberOfFrames;
        isRendering = true;
        play();
        log("rendering started");
    }
public void render ( int n ) { if ( isRendering || n <= 0 ) return ; stop ( ) ; loopsToDo = n ; numberOfFrames = PApplet . round ( outputFrameRate * durationMillis / 1000.0f ) ; totalNumberFrames = loopsToDo * numberOfFrames ; isRendering = true ; play ( ) ; log ( "rendering started" ) ; }
Starts rendering of <code>n</code> loops of the animation.<br>
 The animation will be stopped and rendered from the beginning when already playing.
Starts rendering of <code > n< / code > loops of the animation . <br > The animation will be stopped and rendered from the beginning when already playing .