| Package | idv.cjcat.stardust.common.actions |
| Class | public class AlphaCurve |
| Inheritance | AlphaCurve Action StardustElement |
life property.
The alpha transition is applied using the easing functions designed by Robert Penner.
These functions can be found in the idv.cjcat.stardust.common.easing package.
| Property | Defined by | ||
|---|---|---|---|
![]() | active : Boolean
Denotes if the action is active, true by default.
| Action | |
| inAlpha : Number
The initial alpha value of a particle, 0 by default.
| AlphaCurve | ||
| inFunction : Function
The easing function from the initial alpha to the normal alpha,
Linear.easeIn by default. | AlphaCurve | ||
| inFunctionExtraParams : Array
Some easing functions take more than four parameters.
| AlphaCurve | ||
| inLifespan : Number
The transition lifespan of alpha value from the initial alpha to the normal alpha.
| AlphaCurve | ||
![]() | mask : int
The action will affect a particle only if it's active and the bitwise AND of the action's mask and the particle's mask is non-zero,
1 by default.
| Action | |
![]() | name : String | StardustElement | |
![]() | needsSortedParticles : Boolean
Tells the emitter whether this action requires that particles must be sorted before the
update() calls. | Action | |
![]() | onAdd : ISignal
Dispatched when the added to an emitter.
| Action | |
![]() | onPriorityChange : ISignal
Dispatched when the action's priority is changed.
| Action | |
![]() | onRemove : ISignal
Dispatched when the removed from an emitter.
| Action | |
| outAlpha : Number
The final alpha value of a particle, 0 by default.
| AlphaCurve | ||
| outFunction : Function
The easing function from the normal alpha to the final alpha,
Linear.easeOut by default. | AlphaCurve | ||
| outFunctionExtraParams : Array
Some easing functions take more than four parameters.
| AlphaCurve | ||
| outLifespan : Number
The transition lifespan of alpha value from the normal alpha to the final alpha.
| AlphaCurve | ||
![]() | priority : int
Actions will be sorted by the associated emitter according to their priorities.
| Action | |
![]() | skipThisAction : Boolean
Reset to false on each emitter step.
| Action | |
![]() | supports2D : Boolean
Whether this action supports 2D.
| Action | |
![]() | supports3D : Boolean
Whether this action supports 3D.
| Action | |
| Method | Defined by | ||
|---|---|---|---|
|
AlphaCurve(inLifespan:Number = 0, outLifespan:Number = 0, inFunction:Function = null, outFunction:Function = null)
| AlphaCurve | ||
![]() |
getElementTypeXMLTag():XML
| Action | |
![]() |
getRelatedObjects():Array
[Abstract Method] Returns the related objects of the element.
| StardustElement | |
![]() |
getXMLTag():XML
Returns the root tag of the XML representation.
| StardustElement | |
|
getXMLTagName():String
| AlphaCurve | ||
|
parseXML(xml:XML, builder:XMLBuilder = null):void
| AlphaCurve | ||
![]() |
postUpdate(emitter:Emitter, time:Number):void
[Template Method] This method is called once after each
Emitter.step() method call,
after the update() calls with each particles in the emitter. | Action | |
|
toXML():XML
| AlphaCurve | ||
| AlphaCurve | |||
| inAlpha | property |
public var inAlpha:NumberThe initial alpha value of a particle, 0 by default.
| inFunction | property |
inFunction:Function [read-write]
The easing function from the initial alpha to the normal alpha, Linear.easeIn by default.
public function get inFunction():Function
public function set inFunction(value:Function):void
| inFunctionExtraParams | property |
inFunctionExtraParams:Array [read-write]
Some easing functions take more than four parameters. This property specifies those extra parameters passed to the inFunction.
public function get inFunctionExtraParams():Array
public function set inFunctionExtraParams(value:Array):void
| inLifespan | property |
public var inLifespan:NumberThe transition lifespan of alpha value from the initial alpha to the normal alpha.
| outAlpha | property |
public var outAlpha:NumberThe final alpha value of a particle, 0 by default.
| outFunction | property |
outFunction:Function [read-write]
The easing function from the normal alpha to the final alpha, Linear.easeOut by default.
public function get outFunction():Function
public function set outFunction(value:Function):void
| outFunctionExtraParams | property |
outFunctionExtraParams:Array [read-write]
Some easing functions take more than four parameters. This property specifies those extra parameters passed to the outFunction.
public function get outFunctionExtraParams():Array
public function set outFunctionExtraParams(value:Array):void
| outLifespan | property |
public var outLifespan:NumberThe transition lifespan of alpha value from the normal alpha to the final alpha.
| AlphaCurve | () | constructor |
public function AlphaCurve(inLifespan:Number = 0, outLifespan:Number = 0, inFunction:Function = null, outFunction:Function = null)Parameters
inLifespan:Number (default = 0) |
|
outLifespan:Number (default = 0) |
|
inFunction:Function (default = null) |
|
outFunction:Function (default = null) |
| getXMLTagName | () | method |
public override function getXMLTagName():String
Returns
String |
| parseXML | () | method |
public override function parseXML(xml:XML, builder:XMLBuilder = null):voidParameters
xml:XML |
|
builder:XMLBuilder (default = null) |
| toXML | () | method |
public override function toXML():XML
Returns
XML |
| update | () | method |
public final override function update(emitter:Emitter, particle:Particle, time:Number):voidParameters
emitter:Emitter |
|
particle:Particle |
|
time:Number |