src/main/java/com/tajnyprojekt/tpanimation/TpAnimatedVariable.java
private void updateLocalProgress(float progress) {
        if (isFullLength) {
            localProgress = progress;
        }
        else {
            localProgress = PApplet.constrain(progress, startProgress, endProgress);
            localProgress = PApplet.map(localProgress, startProgress, endProgress, 0.0f, 1.0f);
        }
        if (ease) {
            localProgress = TpEasing.ease(localProgress, easingFunctionNumber);
        }
    }
/**
     * Updates field's local progress based on parent animation progress and eventual time bounds.<br>
     * Also applies easing.
     * @param progress the parent animation progress
     */
Updates field's local progress based on parent animation progress and eventual time bounds.
Also applies easing.
@param progress the parent animation progress
Updates field ' s local progress based on parent animation progress and eventual time bounds . Also applies easing . @param progress the parent animation progress
private void updateLocalProgress(float progress) {
        if (isFullLength) {
            localProgress = progress;
        }
        else {
            localProgress = PApplet.constrain(progress, startProgress, endProgress);
            localProgress = PApplet.map(localProgress, startProgress, endProgress, 0.0f, 1.0f);
        }
        if (ease) {
            localProgress = TpEasing.ease(localProgress, easingFunctionNumber);
        }
    }
private void updateLocalProgress ( float progress ) { if ( isFullLength ) { localProgress = progress ; } else { localProgress = PApplet . constrain ( progress , startProgress , endProgress ) ; localProgress = PApplet . map ( localProgress , startProgress , endProgress , 0.0f , 1.0f ) ; } if ( ease ) { localProgress = TpEasing . ease ( localProgress , easingFunctionNumber ) ; } }
Updates field's local progress based on parent animation progress and eventual time bounds.<br>
 Also applies easing.
Updates field ' s local progress based on parent animation progress and eventual time bounds . <br > Also applies easing .