@newkrok/three-particles - v2.4.0
    Preparing search index...

    Type Alias Emission

    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.0
    rateOverDistance: 0.0
    bursts: []
    // Rate over time as a constant value
    rateOverTime: 10;

    // Rate over time as a random range
    rateOverTime: { min: 5, max: 15 };

    // Rate over time using a Bézier curve
    rateOverTime: {
    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 value
    rateOverDistance: 2;

    // Rate over distance as a random range
    rateOverDistance: { min: 1, max: 3 };

    // Rate over distance using an easing curve
    rateOverDistance: {
    type: 'easing',
    curveFunction: (distance) => Math.sin(distance),
    scale: 0.5
    };

    // Burst emissions for explosions
    bursts: [
    { time: 0, count: 50 },
    { time: 1, count: { min: 20, max: 30 }, probability: 0.8 },
    { time: 0.5, count: 10, cycles: 3, interval: 0.2 }
    ];
    Index

    Properties

    bursts?: Burst[]

    Array of burst configurations for instantaneous particle emissions