| Package | org.flintparticles.common.actions |
| Class | public class TargetColor |
| Inheritance | TargetColor ActionBase Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | priority : int
Returns a default priority of 0 for this action. | ActionBase | |
| rate : Number
Adjusts how quickly the particle reaches the target color. | TargetColor | ||
| targetColor : Number
The target color. | TargetColor | ||
| Method | Defined By | ||
|---|---|---|---|
TargetColor(targetColor:uint = 0xFFFFFF, rate:Number = 0.1)
The constructor creates a TargetColor action for use by an emitter. | TargetColor | ||
![]() | addedToEmitter(emitter:Emitter):void
This method does nothing. | ActionBase | |
![]() | removedFromEmitter(emitter:Emitter):void
This method does nothing. | ActionBase | |
[override]
Adjusts the color of the particle based on its current color, the target
color and the time elapsed. | TargetColor | ||
| rate | property |
rate:NumberAdjusts how quickly the particle reaches the target color. Larger numbers cause it to approach the target color more quickly.
public function get rate():Number public function set rate(value:Number):void| targetColor | property |
targetColor:NumberThe target color. This is a 32 bit color of the form 0xAARRGGBB.
public function get targetColor():Number public function set targetColor(value:Number):void| TargetColor | () | Constructor |
public function TargetColor(targetColor:uint = 0xFFFFFF, rate:Number = 0.1)The constructor creates a TargetColor action for use by an emitter. To add a TargetColor to all particles created by an emitter, use the emitter's addAction method.
ParameterstargetColor:uint (default = 0xFFFFFF) — The target color. This is a 32 bit color of the form
0xAARRGGBB.
| |
rate:Number (default = 0.1) — Adjusts how quickly the particle reaches the target color.
Larger numbers cause it to approach the target color more quickly.
|
See also
| update | () | method |
override public function update(emitter:Emitter, particle:Particle, time:Number):voidAdjusts the color of the particle based on its current color, the target color and the time elapsed.
This method is called by the emitter and need not be called by the user
Parameters
emitter:Emitter — The Emitter that created the particle.
| |
particle:Particle — The particle to be updated.
| |
time:Number — The duration of the frame - used for time based updates.
|
See also