Skip to content

EmitterConfig

ts
type EmitterConfig = object;

Type describing the configuration options for an Emitter.

Properties

addAtBack?

ts
optional addAtBack: boolean;

Whether new particles are added to the back of the particle list (behind other particles).


alphaBehavior?

ts
optional alphaBehavior: AlphaBehaviorConfig;

Configuration for the AlphaBehavior.


colorBehavior?

ts
optional colorBehavior: ColorBehaviorConfig;

Configuration for the ColorBehavior.


ease?

ts
optional ease: Ease;

Easing applied to particle's lifetime.


emitterVersion

ts
emitterVersion: string;

Emitter version this config was made for.


maxParticleLifetime?

ts
optional maxParticleLifetime: number;

Maximum lifetime of particles emitted, in seconds.


maxParticles?

ts
optional maxParticles: number;

Maximum number of particles allowed alive at once.


minParticleLifetime?

ts
optional minParticleLifetime: number;

Minimum lifetime of particles emitted, in seconds.


movementBehavior?

ts
optional movementBehavior: MovementBehaviorConfig;

Configuration for the MovementBehavior.


particlesPerWave?

ts
optional particlesPerWave: number;

Number of particles to spawn each wave.


rotationBehavior?

ts
optional rotationBehavior: RotationBehaviorConfig;

Configuration for the RotationBehavior.


scaleBehavior?

ts
optional scaleBehavior: ScaleBehaviorConfig;

Configuration for the ScaleBehavior.


spawnBehavior?

ts
optional spawnBehavior: SpawnBehaviorConfig;

Configuration for the SpawnBehavior.


spawnChance?

ts
optional spawnChance: number;

Chance of spawning particles each wave, between 0 and 1.


spawnInterval?

ts
optional spawnInterval: number;

Interval between spawn waves, in seconds.


textureBehavior?

ts
optional textureBehavior: TextureBehaviorConfig;

Configuration for the TextureBehavior.