PGemitter._colorend Property

Availability

ActionScript 2.0; Flash Player 6

Since

Partigen 1.0

Usage

PGemitter._colorend : Array
PGemitter._colorend[i] : Number/String

Description

Property, read/write; Color and percent to end particle at [hexstring, percent]. Setting this value will tween a particle's color over its life. The first value is color, and the second value is how much tint to apply to the particle (in percent). By default this is set to 'disabled'. To create particles without a tint, just set _colorstart to 'disabled'.

Example

The following example will tween a particle to red over its life:

Partigen.createEmitter(this, 'my_em', 0); //create a new emitter with all the defaults
my_em._x = my_em._y = 200; //set the emitters x&y position to 200 so we can see it
my_em._colorend = ['0xFF0000', 100];
my_em.start();

See Also

PGemitter._colorend_color, PGemitter._colorend_percent, PGemitter._colorstart


Documentation generated by BLDoc Community Edition from B-Line Express.