code: function linearlyApproach (current, target, delta) {
      if (Math.abs(current - target) < delta) {
        return target
      } else if (current < target) {
        return current + delta
      } else {
        return current - delta
      }
    }
docs: Linearly approach target by at most delta.