Module: Tween::Quint::Out

Defined in:
lib/tween.rb

Class Method Summary collapse

Class Method Details

.ease(t, st, ch, d) ⇒ Object



284
285
286
# File 'lib/tween.rb', line 284

def self.ease(t, st, ch, d)
  ch * ((t = t / d.to_f - 1) * t * t *t * t + 1) + st
end