Defines the emission behavior of the particles. Supports rates defined over time or distance using constant values, random ranges, or curves (Bézier or easing). Also supports burst emissions for instantaneous particle effects.
rateOverTime: 10.0rateOverDistance: 0.0bursts: [] Copy
rateOverTime: 10.0rateOverDistance: 0.0bursts: []
// Rate over time as a constant valuerateOverTime: 10;// Rate over time as a random rangerateOverTime: { min: 5, max: 15 };// Rate over time using a Bézier curverateOverTime: { type: 'bezier', bezierPoints: [ { x: 0, y: 0, percentage: 0 }, { x: 0.5, y: 50 }, { x: 1, y: 100, percentage: 1 } ], scale: 1};// Rate over distance as a constant valuerateOverDistance: 2;// Rate over distance as a random rangerateOverDistance: { min: 1, max: 3 };// Rate over distance using an easing curverateOverDistance: { type: 'easing', curveFunction: (distance) => Math.sin(distance), scale: 0.5};// Burst emissions for explosionsbursts: [ { time: 0, count: 50 }, { time: 1, count: { min: 20, max: 30 }, probability: 0.8 }, { time: 0.5, count: 10, cycles: 3, interval: 0.2 }]; Copy
// Rate over time as a constant valuerateOverTime: 10;// Rate over time as a random rangerateOverTime: { min: 5, max: 15 };// Rate over time using a Bézier curverateOverTime: { type: 'bezier', bezierPoints: [ { x: 0, y: 0, percentage: 0 }, { x: 0.5, y: 50 }, { x: 1, y: 100, percentage: 1 } ], scale: 1};// Rate over distance as a constant valuerateOverDistance: 2;// Rate over distance as a random rangerateOverDistance: { min: 1, max: 3 };// Rate over distance using an easing curverateOverDistance: { type: 'easing', curveFunction: (distance) => Math.sin(distance), scale: 0.5};// Burst emissions for explosionsbursts: [ { time: 0, count: 50 }, { time: 1, count: { min: 20, max: 30 }, probability: 0.8 }, { time: 0.5, count: 10, cycles: 3, interval: 0.2 }];
Optional
Array of burst configurations for instantaneous particle emissions
Defines the emission behavior of the particles. Supports rates defined over time or distance using constant values, random ranges, or curves (Bézier or easing). Also supports burst emissions for instantaneous particle effects.
Default
Example