Optional Readonlyangle?: Range<Degrees>Launch Direction.
90 shoots straight up, 0 right, 180 left, 270 down.
Optional Readonlydelay?: MillisecondsStart Delay.
Waits this long after fire() before the burst starts. Give the entries of a list different delays to
choreograph them: a cannon shot, then a message, then a finale.
Optional Readonlyemission?: EmissionOptionsEmission Timing.
Optional Readonlyformation?: FormationOptionsFormation.
The particles first form a text or an image, hold it, then burst apart. The shape is centered on
origin; startVelocity becomes the speed at which the particles fly outward, and particleCount (if
set) only caps the count the shape needs.
Optional Readonlylifetime?: Range<Milliseconds>Particle Lifetime. Particles are removed after this time (and earlier once they fall below the canvas, unless a floor is set).
Optional Readonlyorigin?: OriginSpawn Origin.
Optional Readonlypaper?: PaperStylePaper Style (and base style for every shape).
Optional ReadonlyparticleCount?: numberNumber of Particles.
For "interval" emission this is per shot. Rounded down; negative values become 0. Capped by the
instance's maxParticles.
Optional Readonlyphysics?: PhysicsOptionsMotion Physics.
Optional Readonlyseed?: numberRandom Seed. The same seed with the same options and canvas size reproduces the exact same burst.
Optional Readonlyshapes?: readonly ShapeOptions[]Shape Mix.
Each particle picks one entry (respecting weight). Omitted = paper only.
Optional Readonlyspread?: DegreesLaunch Cone Width.
Total opening angle around angle. 360 shoots in every direction.
Optional ReadonlystartVelocity?: Range<PixelsPerSecond>Launch Speed.
For a formation, the speed at which the particles burst apart from the shape.
Options for a Single Burst. Everything is optional —
Konfeti.fire()with no arguments produces a classic confetti pop.