code: public static float enlarge(float startValue, float endValue, float time) {
          if (startValue > endValue)
              throw new IllegalArgumentException("Start size can't be larger than end size.");
          return startValue + (endValue - startValue) * time;
      }
docs: Enlarge value from startValue to endValue
  
  @param startValue start size
  @param endValue   end size
  @param time       time of animation
  @return new size value