MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / fire

Function fire

client/src/utils/fire-confetti.ts:10–24  ·  view source on GitHub ↗
(
    particleRatio: number,
    opts: {
      spread?: number;
      startVelocity?: number;
      decay?: number;
      scalar?: number;
    }
  )

Source from the content-addressed store, hash-verified

8 };
9
10 function fire(
11 particleRatio: number,
12 opts: {
13 spread?: number;
14 startVelocity?: number;
15 decay?: number;
16 scalar?: number;
17 }
18 ) {
19 confetti(
20 Object.assign({}, defaults, opts, {
21 particleCount: Math.floor(count * particleRatio)
22 })
23 )?.catch(err => console.log(err));
24 }
25
26 fire(0.25, {
27 spread: 26,

Callers 1

fireConfettiFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected