@newkrok/three-particles - v2.1.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).

    rateOverTime: 10.0
    rateOverDistance: 0.0
    // 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
    };
    Index

    Properties