webapp/src/Flipper.js
function linearlyApproach (current, target, delta) {
    if (Math.abs(current - target) < delta) {
      return target
    } else if (current < target) {
      return current + delta
    } else {
      return current - delta
    }
  }
function linearlyApproach (current, target, delta) {
    if (Math.abs(current - target) < delta) {
      return target
    } else if (current < target) {
      return current + delta
    } else {
      return current - delta
    }
  }
function linearlyApproach ( current , target , delta ) { if ( Math . abs ( current - target ) < delta ) { return target } else if ( current < target ) { return current + delta } else { return current - delta } }
Linearly approach target by at most delta.
Linearly approach target by at most delta .