| Package | org.flintparticles.common.initializers |
| Class | public class ColorInit |
| Inheritance | ColorInit InitializerBase |
| Property | Defined by | ||
|---|---|---|---|
| color : uint
When reading, returns the average of minColor and maxColor.
| ColorInit | ||
| maxColor : uint
The maximum color value for particles initialised by
this initializer.
| ColorInit | ||
| minColor : uint
The minimum color value for particles initialised by
this initializer.
| ColorInit | ||
| Method | Defined by | ||
|---|---|---|---|
|
ColorInit(color1:uint, color2:uint)
The constructor creates a ColorInit initializer for use by
an emitter.
| ColorInit | ||
![]() |
addedToEmitter(emitter:Emitter):void
This method does nothing.
| InitializerBase | |
![]() |
getDefaultPriority():Number
Returns a default priority of 0 for this action.
| InitializerBase | |
|
This method does nothing.
| ColorInit | ||
![]() |
removedFromEmitter(emitter:Emitter):void
This method does nothing.
| InitializerBase | |
| color | property |
color:uint [read-write]When reading, returns the average of minColor and maxColor. When writing this sets both maxColor and minColor to the same color.
Implementation public function get color():uint
public function set color(value:uint):void
| maxColor | property |
maxColor:uint [read-write]The maximum color value for particles initialised by this initializer. Should be between 0 and 1.
Implementation public function get maxColor():uint
public function set maxColor(value:uint):void
| minColor | property |
minColor:uint [read-write]The minimum color value for particles initialised by this initializer. Should be between 0 and 1.
Implementation public function get minColor():uint
public function set minColor(value:uint):void
| ColorInit | () | constructor |
public function ColorInit(color1:uint, color2:uint)The constructor creates a ColorInit initializer for use by an emitter. To add a ColorInit to all particles created by an emitter, use the emitter's addInitializer method.
The color of particles initialized by this class will be a random value between the two values pased to the constructor. For a fixed value, pass the same color in for both parameters.
Parameterscolor1:uint — the 32bit (ARGB) color at one end of the color range to use.
|
|
color2:uint — the 32bit (ARGB) color at the other end of the color range to use.
|
See also
| 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 |