Class cc.EaseElastic
- Defined in: CCActionEase.js
- Extends cc.ActionEase
Constructor Attributes | Constructor Name and Description |
---|---|
cc.EaseElastic(action, period)
Ease Elastic abstract class.
|
Method Summary
Class Detail
cc.EaseElastic(action, period)
Ease Elastic abstract class.
- Parameters:
- {cc.ActionInterval} action
- {Number} period Optional, Default: 0.3
- since v3.0 Does not recommend the use of the base object.
Method Detail
-
{cc.EaseElastic} clone()to copy object with deep copy. returns a clone of action.
- Returns:
- {cc.EaseElastic}
-
Creates the action with the inner action and the period in radians (default is 0.3).
- Parameters:
- {cc.ActionInterval} action
- {Number} period Optional, Default: 0.3
- Deprecated:
- since v3.0 Does not recommend the use of the base object.
- Returns:
- {cc.EaseElastic}
-
ctor(action, period)Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
Creates the action with the inner action and the period in radians (default is 0.3).- Parameters:
- {cc.ActionInterval} action
- {Number} period Optional, Default: 0.3
-
{Number} getPeriod()get period of the wave in radians. default is 0.3
- Returns:
- {Number}
-
{Boolean} initWithAction(action, period)Initializes the action with the inner action and the period in radians (default is 0.3)
- Parameters:
- {cc.ActionInterval} action
- {Number} period Optional, Default: 0.3
- Returns:
- {Boolean}
-
{null} reverse()Create a action. Opposite with the original motion trajectory.
Will be overwrite.- Returns:
- {null}
-
setPeriod(period)set period of the wave in radians.
- Parameters:
- {Number} period