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