Skip to content

ParticlePresets

const ParticlePresets: object

Defined in: particles/src/presets.ts:28

Preset emitter configurations. Each works with no arguments, rendering a built-in shape; pass a texture or asset key to use your own art instead.

The returned config already carries a texture source, so overriding the source by spreading is a type error — pass it as the argument. Spreading to override anything else (rate, tint, lifetime, …) works.

readonly fire(textureOrKey?): EmitterConfig

Upward fire effect with fading and shrinking.

TextureInput

EmitterConfig

readonly rain(textureOrKey?): EmitterConfig

Downward rain drops.

TextureInput

EmitterConfig

readonly smoke(textureOrKey?): EmitterConfig

Slow-rising smoke effect.

TextureInput

EmitterConfig

readonly sparks(textureOrKey?): EmitterConfig

Fast, short-lived sparks thrown in every direction and pulled down by gravity.

TextureInput

EmitterConfig

Coding agents: fetch https://yage.dev/llms.txt first and prefer the Markdown references it links over these HTML pages. This page's Markdown counterpart is /llms/packages/particles.md.