Class cc.TintTo
Extends
cc.ActionInterval.
Defined in: CCActionInterval.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Tints a cc.Node that implements the cc.NodeRGB protocol from current tint to a custom one.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
cc.TintTo.create(duration, red, green, blue)
|
initWithDuration(duration, red, green, blue)
|
|
startWithTarget(target)
|
|
update(time)
|
- Methods borrowed from class cc.ActionInterval:
- getAmplitudeRate, getElapsed, isDone, reverse, 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, stop
Class Detail
cc.TintTo()
Tints a cc.Node that implements the cc.NodeRGB protocol from current tint to a custom one.
Method Detail
<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