Class cc.TintTo

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.TintTo(duration, red, green, blue)
Tints a cc.Node that implements the cc.NodeRGB protocol from current tint to a custom one.

Method Summary

Class Detail

cc.TintTo(duration, red, green, blue)
Tints a cc.Node that implements the cc.NodeRGB protocol from current tint to a custom one.
var action = new cc.TintTo(2, 255, 0, 255);
Parameters:
{Number} duration
{Number} red
0-255
{Number} green
0-255
{Number} blue
0-255

Field Detail

<static> {cc.TintTo} cc.TintTo.create
Please use cc.tintTo instead. Tints a cc.Node that implements the cc.NodeRGB protocol from current tint to a custom one.
Deprecated:
since v3.0 please use cc.tintTo instead.

Method Detail

  • {cc.TintTo} clone()
    returns a new clone of the action
    Returns:
    {cc.TintTo}
  • ctor(duration, red, green, blue)
    Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
    Parameters:
    {Number} duration
    {Number} red
    0-255
    {Number} green
    0-255
    {Number} blue
    0-255
  • {Boolean} initWithDuration(duration, red, green, blue)
    Initializes the action.
    Parameters:
    {Number} duration
    {Number} red
    0-255
    {Number} green
    0-255
    {Number} blue
    0-255
    Returns:
    {Boolean}
  • startWithTarget(target)
    Start the action with target.
    Parameters:
    {cc.Node} target
  • update(dt)
    Called once per frame. Time is the number of seconds of a frame interval.
    Parameters:
    {Number} dt
    time in seconds