Module: Tween::Quint::InOut
- Defined in:
- lib/tween.rb
Class Method Summary collapse
Class Method Details
.ease(t, st, ch, d) ⇒ Object
290 291 292 293 294 295 296 |
# File 'lib/tween.rb', line 290 def self.ease(t, st, ch, d) if (t /= d / 2.0) < 1 ch / 2.0 * t * t *t * t * t + st else ch / 2.0 * ((t -= 2) * t * t * t * t + 2) + st end end |