EmitterOptions
Defined in: particles/src/types.ts:29
Everything an emitter configures apart from where its texture comes from.
Properties
Section titled “Properties”alpha?
Section titled “alpha?”
optionalalpha?:NumberRange|Lerped
Defined in: particles/src/types.ts:43
Alpha/opacity (or lerped). Default: 1.
angle?
Section titled “angle?”
optionalangle?:NumberRange
Defined in: particles/src/types.ts:39
Emission direction in radians. Default: 0.
blendMode?
Section titled “blendMode?”
optionalblendMode?:BLEND_MODES
Defined in: particles/src/types.ts:57
How the whole particle container’s pixels combine with what is drawn
beneath it — "add" for fire, sparks, and magic. Unset, the container
inherits its render layer’s blend mode, which is "normal" unless the
game set one on the layer. See BlendMode for the modes that need
import "pixi.js/advanced-blend-modes".
damping?
Section titled “damping?”
optionaldamping?:number
Defined in: particles/src/types.ts:61
Velocity damping per second (0-1). Default: 0.
gravity?
Section titled “gravity?”
optionalgravity?:object
Defined in: particles/src/types.ts:59
Gravity in px/s². Default: none.
x:
number
y:
number
layer?
Section titled “layer?”
optionallayer?:string
Defined in: particles/src/types.ts:85
Render layer name. Default: “default”.
lifetime
Section titled “lifetime”lifetime:
NumberRange
Defined in: particles/src/types.ts:35
Particle lifetime in seconds.
maxParticles?
Section titled “maxParticles?”
optionalmaxParticles?:number
Defined in: particles/src/types.ts:31
Maximum number of live particles. Default: 100.
radialSpeed?
Section titled “radialSpeed?”
optionalradialSpeed?:NumberRange
Defined in: particles/src/types.ts:76
Speed in px/s along the direction from the emitter’s origin to the
particle’s spawn offset. Negative moves inward. Adds to the velocity
speed and angle produce. Needs a spawnOffset.
optionalrate?:number
Defined in: particles/src/types.ts:33
Particles per second for continuous emission. Default: 10.
rotation?
Section titled “rotation?”
optionalrotation?:NumberRange
Defined in: particles/src/types.ts:45
Initial rotation in radians. Default: 0.
rotationSpeed?
Section titled “rotationSpeed?”
optionalrotationSpeed?:NumberRange
Defined in: particles/src/types.ts:47
Rotation speed in rad/s. Default: 0.
scale?
Section titled “scale?”
optionalscale?:NumberRange|Lerped
Defined in: particles/src/types.ts:41
Uniform scale (or lerped). Default: 1.
simulationSpace?
Section titled “simulationSpace?”
optionalsimulationSpace?:"world"|"local"
Defined in: particles/src/types.ts:83
"world" (default): particles keep the screen position they were spawned
at, so moving the emitter afterwards does not drag them along.
"local": particles follow the emitter’s position. Position only — the
emitter’s rotation and scale are not applied.
spawnOffset?
Section titled “spawnOffset?”
optionalspawnOffset?: {angle?:undefined;radius?:undefined;x?:NumberRange;y?:NumberRange; } | {angle?:NumberRange;radius:NumberRange;x?:undefined;y?:undefined; }
Defined in: particles/src/types.ts:68
Random offset from the emitter’s origin at spawn time, in either form:
a rectangle (x/y ranges) or a ring (radius, with an optional
angle arc that defaults to the full circle). Setting members of both
forms is a type error.
speed?
Section titled “speed?”
optionalspeed?:NumberRange
Defined in: particles/src/types.ts:37
Initial speed in px/s. Default: 0.
optionaltint?:number
Defined in: particles/src/types.ts:49
Tint color. Default: 0xffffff.