Module: Tween::Quart::Out

Defined in:
lib/tween.rb

Class Method Summary collapse

Class Method Details

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



260
261
262
# File 'lib/tween.rb', line 260

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