OptionalalphaOptionalanchorAn optional anchor used to attach areas and behaviors.
OptionalanchorA fixed offset (scene pixels) applied to the anchor.
OptionalanchorWhich point to use when anchoring.
OptionalareaThe default spawn area in "effect" mode (scene coordinates).
OptionalbehaviorOptional behavior.
OptionalblendThe blend mode used to render particles.
OptionalblurAn optional blur filter applied to the internal container.
OptionalboundsOptional generator bounds in scene coordinates. This is used for coordinate conversion, viewport clamping, and optional clipping. Defaults to the current Scene dimensions.
OptionalclipClip (=> mask) configuration. Use true for default clipping. If no clip rectangle is provided and ParticleGeneratorConfiguration#area is a foundry.data.BaseShapeData, that shape is used.
OptionalconstraintThe constraint area.
OptionalconstraintHow to handle particles leaving the constraint area. If null, defaults to "kill" in ambient mode and "none" in effect mode.
OptionalcontainerThe parent container which receives the internal particle container. Defaults to canvas.primary.
OptionalcountThe target particle count.
OptionaldebugOptional debugging helpers.
OptionaldriftOptional random drift configuration.
OptionalelevationThe elevation for the particle container.
OptionalfadeFade envelope configuration.
OptionalfollowFollow behavior options.
OptionalinitialThe initial proportion (0..1) of the computed target particle count to spawn on start.
OptionallifetimeThe particle lifetime in milliseconds.
OptionalmanualIf true, particles are never spawned automatically.
If null, defaults to true in "effect" mode unless spawnRate is explicitly configured and false in "ambient"
mode. Legacy perFrame does not change the default.
OptionalmaskAn explicit mask for the
particle container. Accepts either a pre-built PIXI.DisplayObject, a PIXI shape, or a
foundry.data.BaseShapeData which is drawn into a PIXI.Graphics.
Presence implies masking is desired, and this mask takes precedence over clip.
OptionalmodeThe runtime mode.
OptionalnewlyIf true, prioritize spawning particles in newly-visible areas when the view changes (pan/zoom).
OptionalonAn optional callback called when a particle is recycled.
OptionalonAn optional callback called after the particle has been placed and configured. This is a handy place to attach custom per-particle data for batch shaders.
OptionalonAn optional callback called per frame (not per particle!).
OptionalonAn optional callback called each frame for each live particle, after position, rotation, tint, and alpha have been computed.
OptionalorbitOrbit behavior options.
OptionalparticleOptional sprite anchor override for particle textures.
If null, each texture's defaultAnchor is used.
OptionalperDeprecated since v14. Use spawnRate instead. If spawnRate is omitted or null,
this legacy per-frame value is converted using the Pixi ticker target frame rate.
OptionalpositionAn optional spawn validator. The function is invoked as (x, y, {generator, particle}) and must return true if the location is valid. Coordinates are scene coordinates in pixels. The generator evaluates a single candidate position per spawn attempt.
OptionalprobabilityThe chance (0..1) that a spawn attempt actually creates a particle.
OptionalrandomizeIf true, particles spawned in padded regions can start partially through their lifetime.
OptionalrestitutionBounce restitution factor (0..1) used when constraintMode is "bounce".
OptionalrotationRotation configuration for particles.
OptionalsampleWhich part of the spawn area to sample.
OptionalscaleThe scale value for particles.
OptionalshaderOptional shader class used to render particles. Defaults to BaseSamplerShader. Batchable shaders are the fast path for sustained effects. ParticleGenerator creates plain SpriteMesh instances, so shaders which require foundry.canvas.primary.PrimarySpriteMesh occlusion or depth data are not supported.
OptionalsortThe sorting key for the particle container.
OptionalspawnThe maximum number of particles that may be spawned per second (auto-spawn mode).
OptionaltexturesThe particle texture sources. Each entry may be a PIXI.Texture or a string path usable by foundry.canvas.getTexture/PIXI.Texture.from.
OptionaltickerThe ticker used to drive the update loop. Defaults to CanvasAnimation.ticker.
OptionaltintThe tint color for particles.
OptionalvelocityThe particle velocity in pixels per second.
OptionalviewA proportion (0..1+) of extra area around the visible region used for spawning. For example, 0.2 extends the spawn region by 20% in each dimension.
The alpha value for particles.