Class cc.TintBy

Class Summary
Constructor Attributes Constructor Name and Description
 
Tints a cc.Node that implements the cc.NodeRGB protocol from current tint to a custom one.

Method Summary

Class Detail

cc.TintBy()
Tints a cc.Node that implements the cc.NodeRGB protocol from current tint to a custom one.

Method Detail

  • {cc.TintBy} clone()
    returns a new clone of the action
    Returns:
    {cc.TintBy}
  • <static> {cc.TintBy} cc.TintBy.create(duration, deltaRed, deltaGreen, deltaBlue)
    // example
    var action = cc.TintBy.create(2, -127, -255, -127);
    Parameters:
    {Number} duration
    duration in seconds
    {Number} deltaRed
    {Number} deltaGreen
    {Number} deltaBlue
    Returns:
    {cc.TintBy}
  • {Boolean} initWithDuration(duration, deltaRed, deltaGreen, deltaBlue)
    Parameters:
    {Number} duration
    {Number} deltaRed
    0-255
    {Number} deltaGreen
    0-255
    {Number} deltaBlue
    0-255
    Returns:
    {Boolean}
  • {cc.ActionInterval} reverse()
    Returns:
    {cc.ActionInterval}
  • startWithTarget(target)
    Parameters:
    {cc.Sprite} target
  • update(time)
    Parameters:
    {Number} time
    time in seconds