public void setFraction(float fraction) {
        mFraction = fraction;
        invalidate();
    }
This method is called by the animation to update the current position of the
animated object.
AnimationsInterpolatorPlayground/app/src/main/java/com/example/android/interpolatorplayground/CurveVisualizer.java