Class cc.EaseElastic

Class Summary
Constructor Attributes Constructor Name and Description
 
Ease Elastic abstract class

Method Summary

Class Detail

cc.EaseElastic()
Ease Elastic abstract class

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 Optional, Default: 0.3
    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 Optional, Default: 0.3
    Returns:
    {Boolean}
  • {Null} reverse()
    Returns:
    {Null}
  • setPeriod(period)
    set period of the wave in radians.
    Parameters:
    {Number} period