Class cc.EaseElastic
Extends
cc.ActionEase.
Defined in: CCActionEase.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Ease Elastic abstract class
|
Method Attributes | Method Name and Description |
---|---|
<static> |
cc.EaseElastic.create(action, period)
Creates the action with the inner action and the period in radians (default is 0.3)
|
get period of the wave in radians.
|
|
initWithAction(action, period)
Initializes the action with the inner action and the period in radians (default is 0.3)
|
|
reverse()
|
|
setPeriod(period)
set period of the wave in radians.
|
- Methods borrowed from class cc.ActionEase:
- startWithTarget, stop, update
- Methods borrowed from class cc.ActionInterval:
- getAmplitudeRate, getElapsed, initWithDuration, isDone, setAmplitudeRate, step
- Methods borrowed from class cc.FiniteTimeAction:
- getDuration, setDuration
- Methods borrowed from class cc.Action:
- copy, copyWithZone, description, getOriginalTarget, getTag, getTarget, release, retain, setOriginalTarget, setTag, setTarget
Method Detail
<static>
{cc.EaseElastic}
cc.EaseElastic.create(action, period)
Creates the action with the inner action and the period in radians (default is 0.3)
// example var moveEaseElastic = cc.EaseElastic.create(action, 3.0);
- Parameters:
- {cc.ActionInterval} action
- {Number} period
- Returns:
- {cc.EaseElastic}
{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
- Returns:
- {Boolean}
{Null}
reverse()
- Returns:
- {Null}
setPeriod(period)
set period of the wave in radians.
- Parameters:
- {Number} period