Class cc.TintTo

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.TintTo()
Tints a cc.Node that implements the cc.NodeRGB protocol from current tint to a custom one.

Method Detail

  • {cc.TintTo} clone()
    returns a new clone of the action
    Returns:
    {cc.TintTo}
  • <static> {cc.TintTo} cc.TintTo.create(duration, red, green, blue)
    // example
    var action = cc.TintTo.create(2, 255, 0, 255);
    Parameters:
    {Number} duration
    {Number} red
    0-255
    {Number} green
    0-255
    {Number} blue
    0-255
    Returns:
    {cc.TintTo}
  • {Boolean} initWithDuration(duration, red, green, blue)
    Parameters:
    {Number} duration
    {Number} red
    0-255
    {Number} green
    0-255
    {Number} blue
    0-255
    Returns:
    {Boolean}
  • startWithTarget(target)
    Parameters:
    {cc.Sprite} target
  • update(time)
    Parameters:
    {Number} time
    time in seconds