Class: Metro::Easing::EaseIn
- Inherits:
-
Metro::Easing
- Object
- Metro::Easing
- Metro::Easing::EaseIn
- Defined in:
- lib/metro/animation/easing/ease_in.rb
Overview
Perform a ease-in motion between the start position and the final position.
Class Method Summary collapse
Methods inherited from Metro::Easing
calculate, easing_for, easings, register
Class Method Details
.calculation(moment, start, change, interval) ⇒ Object
8 9 10 |
# File 'lib/metro/animation/easing/ease_in.rb', line 8 def self.calculation(moment,start,change,interval) change * (moment = moment / interval) * moment + start end |