Module: Tween::Circ::Out

Defined in:
lib/tween.rb

Class Method Summary collapse

Class Method Details

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



95
96
97
98
# File 'lib/tween.rb', line 95

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