| Package | org.flintparticles.twoD.initializers |
| Class | public class ScaleAllsInit |
| Inheritance | ScaleAllsInit InitializerBase Object |
If you want to adjust only the image size use the ScaleImageInit initializer.
This initializer has a priority of -10 to ensure it occurs after mass and radius assignment classes like CollisionRadiusInit and MassInit.
See also
| Property | Defined By | ||
|---|---|---|---|
![]() | priority : int
Returns a default priority of 0 for this action. | InitializerBase | |
| scales : Array [write-only] | ScaleAllsInit | ||
| weights : Array [write-only] | ScaleAllsInit | ||
| Method | Defined By | ||
|---|---|---|---|
ScaleAllsInit(scales:Array = null, weights:Array = null)
The constructor creates a ScaleAllsInit initializer for use by
an emitter. | ScaleAllsInit | ||
addedToEmitter(emitter:Emitter):void [override] | ScaleAllsInit | ||
addScale(scale:Number, weight:Number = 1):void | ScaleAllsInit | ||
[override]
This method does nothing. | ScaleAllsInit | ||
![]() | removedFromEmitter(emitter:Emitter):void
This method does nothing. | InitializerBase | |
removeScale(scale:Number):void | ScaleAllsInit | ||
| scales | property |
scales:Array [write-only] public function set scales(value:Array):void| weights | property |
weights:Array [write-only] public function set weights(value:Array):void| ScaleAllsInit | () | Constructor |
public function ScaleAllsInit(scales:Array = null, weights:Array = null)The constructor creates a ScaleAllsInit initializer for use by an emitter. To add a ScaleAllsInit 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 |
override public function initialize(emitter:Emitter, particle:Particle):voidThis method does nothing. All derived classes override this method to initialize each particle created by the emitter.
Parameters
emitter:Emitter | |
particle:Particle |
| removeScale | () | method |
public function removeScale(scale:Number):voidParameters
scale:Number |