konfeti - v0.6.0
    Preparing search index...

    Function extendPreset

    • Combine a Preset with Your Own Settings. Returns new options with overrides merged into every burst of the preset (a preset such as SIDE_SHOTS has several). Top-level keys are replaced; paper and physics merge key by key, so you can change one paper setting without losing the preset's others. The preset itself is never modified.

      Parameters

      • preset: FireInput

        Preset (or any fire input) to Start from

      • overrides: FireOptions

        Settings that Win over the Preset

      Returns FireInput

      Fire Input to Pass to fire()

      Konfeti.fire(extendPreset(KonfetiPresets.SNOW, { emission: { mode: "stream", duration: 10000 } }));
      Konfeti.fire(extendPreset(KonfetiPresets.SIDE_SHOTS, { paper: { colors: ["gold", "white"] } }));