Module: Tween::Expo::In

Defined in:
lib/tween.rb

Class Method Summary collapse

Class Method Details

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



194
195
196
197
198
199
200
# File 'lib/tween.rb', line 194

def self.ease(t, st, ch, d)
  if t == 0
    st
  else
    ch * (2 ** (10 * (t / d.to_f - 1))) + st
  end
end