| Package | org.flintparticles.common.initializers |
| Class | public class ColorsInit |
| Inheritance | ColorsInit InitializerBase Object |
| Property | Defined By | ||
|---|---|---|---|
| colors : Array [write-only] | ColorsInit | ||
![]() | priority : int
Returns a default priority of 0 for this action. | InitializerBase | |
| weights : Array [write-only] | ColorsInit | ||
| Method | Defined By | ||
|---|---|---|---|
ColorsInit(colors:Array = null, weights:Array = null)
The constructor creates a ColorsInit initializer for use by
an emitter. | ColorsInit | ||
addColor(color:uint, weight:Number = 1):void | ColorsInit | ||
addedToEmitter(emitter:Emitter):void [override] | ColorsInit | ||
[override]
This method does nothing. | ColorsInit | ||
removeColor(color:uint):void | ColorsInit | ||
![]() | removedFromEmitter(emitter:Emitter):void
This method does nothing. | InitializerBase | |
| colors | property |
colors:Array [write-only] public function set colors(value:Array):void| weights | property |
weights:Array [write-only] public function set weights(value:Array):void| ColorsInit | () | Constructor |
public function ColorsInit(colors:Array = null, weights:Array = null)The constructor creates a ColorsInit initializer for use by an emitter. To add a ColorsInit to all particles created by an emitter, use the emitter's addInitializer method.
Parameterscolors:Array (default = null) — An array containing the Colors to use for
each particle created by the emitter, as 32bit ARGB values.
| |
weights:Array (default = null) — The weighting to apply to each color. If no weighting
values are passed, the colors are all assigned a weighting of 1.
|
See also
| addColor | () | method |
public function addColor(color:uint, weight:Number = 1):voidParameters
color:uint | |
weight:Number (default = 1) |
| addedToEmitter | () | method |
| 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 |
| removeColor | () | method |
public function removeColor(color:uint):voidParameters
color:uint |