Class Index | File Index

Classes


Class cc.TintTo


Extends cc.ActionInterval.

Defined in: CCActionInterval.js.

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
Method Attributes Method Name and Description
<static>  
cc.TintTo.create(duration, red, green, blue)
 
initWithDuration(duration, red, green, blue)
 
 
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

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 09 2013 07:51:54 GMT-0800 (PST)