|
11
|
1 |
package com.eclecticdesignstudio.motion.easing { |
|
|
2 |
|
|
|
3 |
|
|
|
4 |
import com.eclecticdesignstudio.motion.easing.equations.ElasticEaseIn; |
|
|
5 |
import com.eclecticdesignstudio.motion.easing.equations.ElasticEaseInOut; |
|
|
6 |
import com.eclecticdesignstudio.motion.easing.equations.ElasticEaseOut; |
|
|
7 |
|
|
|
8 |
|
|
|
9 |
/** |
|
|
10 |
* @author Joshua Granick |
|
|
11 |
* @author Philippe / http://philippe.elsass.me |
|
|
12 |
* @author Robert Penner / http://www.robertpenner.com/easing_terms_of_use.html |
|
|
13 |
*/ |
|
|
14 |
final public class Elastic { |
|
|
15 |
|
|
|
16 |
|
|
|
17 |
static public function get easeIn ():IEasing { return new ElasticEaseIn (0.1, 0.4); } |
|
|
18 |
static public function get easeOut ():IEasing { return new ElasticEaseOut (0.1, 0.4); } |
|
|
19 |
static public function get easeInOut ():IEasing { return new ElasticEaseInOut (0.1, 0.4); } |
|
|
20 |
|
|
|
21 |
|
|
|
22 |
static public function easeInWith (a:Number, p:Number):IEasing { |
|
|
23 |
|
|
|
24 |
return new ElasticEaseIn (a, p); |
|
|
25 |
|
|
|
26 |
} |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
static public function easeOutWith (a:Number, p:Number):IEasing { |
|
|
30 |
|
|
|
31 |
return new ElasticEaseOut (a, p); |
|
|
32 |
|
|
|
33 |
} |
|
|
34 |
|
|
|
35 |
|
|
|
36 |
static public function easeInOutWith (a:Number, p:Number):IEasing { |
|
|
37 |
|
|
|
38 |
return new ElasticEaseInOut (a, p); |
|
|
39 |
|
|
|
40 |
} |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
} |
|
|
44 |
|
|
|
45 |
|
|
|
46 |
} |
|
|
47 |
|
|
|
48 |
|
|
|
49 |
import com.eclecticdesignstudio.motion.easing.IEasing; |
|
|
50 |
|
|
|
51 |
|
|
|
52 |
|
|
|
53 |
|
|
|
54 |
|
|
|
55 |
|
|
|
56 |
|
|
|
57 |
|