Module: Tween::Sine::In

Defined in:
lib/tween.rb

Class Method Summary collapse

Class Method Details

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



69
70
71
# File 'lib/tween.rb', line 69

def self.ease(t, st, ch, d)
  -ch * Math.cos(t / d * (Math::PI / 2)) + ch + st
end