src/main/java/com/tajnyprojekt/tpanimation/TpAnimation.java
private void updateTimer() {
        int currentMillis = parent.millis();
        elapsedMillis += currentMillis - lastFrameMillis;
        elapsedMillis = PApplet.constrain(elapsedMillis, 0, durationMillis);
        lastFrameMillis = currentMillis;
    }
/**
     * Updates and calculates the time elapsed since start of the animation / loop.
     */
Updates and calculates the time elapsed since start of the animation / loop.
Updates and calculates the time elapsed since start of the animation / loop .
private void updateTimer() {
        int currentMillis = parent.millis();
        elapsedMillis += currentMillis - lastFrameMillis;
        elapsedMillis = PApplet.constrain(elapsedMillis, 0, durationMillis);
        lastFrameMillis = currentMillis;
    }
private void updateTimer ( ) { int currentMillis = parent . millis ( ) ; elapsedMillis += currentMillis - lastFrameMillis ; elapsedMillis = PApplet . constrain ( elapsedMillis , 0 , durationMillis ) ; lastFrameMillis = currentMillis ; }
Updates and calculates the time elapsed since start of the animation / loop.
Updates and calculates the time elapsed since start of the animation / loop .