Module: Tween::Expo::Out
- Defined in:
- lib/tween.rb
Class Method Summary collapse
Class Method Details
.ease(t, st, ch, d) ⇒ Object
204 205 206 207 208 209 210 |
# File 'lib/tween.rb', line 204 def self.ease(t, st, ch, d) if t == d st + ch else ch * (-(2 ** (-10 * t / d.to_f)) + 1) + st end end |