Class cc.FadeOut
Extends
cc.ActionInterval.
Defined in: CCActionInterval.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Fades Out an object that implements the cc.RGBAProtocol protocol.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
cc.FadeOut.create(d)
|
reverse()
|
|
update(time)
|
- Methods borrowed from class cc.ActionInterval:
- getAmplitudeRate, getElapsed, initWithDuration, isDone, setAmplitudeRate, startWithTarget, 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.FadeOut()
Fades Out an object that implements the cc.RGBAProtocol protocol. It modifies the opacity from 255 to 0.
The "reverse" of this action is FadeIn
Method Detail
<static>
{cc.FadeOut}
cc.FadeOut.create(d)
// example var action = cc.FadeOut.create(1.0);
- Parameters:
- {Number} d
- duration in seconds
- Returns:
- {cc.FadeOut}
{cc.ActionInterval}
reverse()
- Returns:
- {cc.ActionInterval}
update(time)
- Parameters:
- {Number} time
- time in seconds