| Package | org.flintparticles.common.initializers |
| Class | public class ScaleImagesInit |
| Inheritance | ScaleImagesInit InitializerBase |
If you also want to adjust the mass and collision radius of the particle, use the ScalesAllInit initializer.
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | priority : int
Returns a default priority of 0 for this action.
| InitializerBase | |
| scales : Array [write-only]
| ScaleImagesInit | ||
| weights : Array [write-only]
| ScaleImagesInit | ||
| Method | Defined by | ||
|---|---|---|---|
|
ScaleImagesInit(scales:Array = null, weights:Array = null)
The constructor creates a ScaleImagesInit initializer for use by
an emitter.
| ScaleImagesInit | ||
|
addedToEmitter(emitter:Emitter):void
| ScaleImagesInit | ||
|
addScale(scale:Number, weight:Number = 1):void
| ScaleImagesInit | ||
|
This method does nothing.
| ScaleImagesInit | ||
![]() |
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| InitializerBase | |
|
removeScale(scale:Number):void
| ScaleImagesInit | ||
| scales | property |
scales:Array [write-only]Implementation
public function set scales(value:Array):void
| weights | property |
weights:Array [write-only]Implementation
public function set weights(value:Array):void
| ScaleImagesInit | () | constructor |
public function ScaleImagesInit(scales:Array = null, weights:Array = null)The constructor creates a ScaleImagesInit initializer for use by an emitter. To add a ScaleImagesInit to all particles created by an emitter, use the emitter's addInitializer method.
Parametersscales:Array (default = null) — An array containing the scales to use for
each particle created by the emitter.
|
|
weights:Array (default = null) — The weighting to apply to each scale. If no weighting
values are passed, the scales are all assigned a weighting of 1.
|
See also
| addedToEmitter | () | method |
| addScale | () | method |
public function addScale(scale:Number, weight:Number = 1):voidParameters
scale:Number |
|
weight:Number (default = 1) |
| initialize | () | method |
public override function initialize(emitter:Emitter, particle:Particle):voidThis method does nothing. All derived classes override this method to initialize each particle created by the emitter.
Parametersemitter:Emitter |
|
particle:Particle |
| removeScale | () | method |
public function removeScale(scale:Number):voidParameters
scale:Number |