134 135 136 137 138 139 140
# File 'lib/tween.rb', line 134 def self.ease(t, st, ch, d) if t < d/2.0 Tween::Bounce::In.ease(t*2.0, 0, ch, d) * 0.5 + st else Tween::Bounce::Out.ease(t*2.0 - d, 0, ch, d) * 0.5 + ch * 0.5 + st end end