Module: Tween::Cubic::Out

Defined in:
lib/tween.rb

Class Method Summary collapse

Class Method Details

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



176
177
178
# File 'lib/tween.rb', line 176

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