MCPcopy Create free account
hub / github.com/NianBroken/Firework_Simulator / crossetteEffect

Function crossetteEffect

js/script.js:1600–1605  ·  view source on GitHub ↗
(star)

Source from the content-addressed store, hash-verified

1598// Crossette breaks star into four same-color pieces which branch in a cross-like shape.
1599// Crossette将星形分割成四块相同颜色的星形,这些星形分支成十字形。
1600function crossetteEffect(star) {
1601 const startAngle = Math.random() * PI_HALF;
1602 createParticleArc(startAngle, PI_2, 4, 0.5, (angle) => {
1603 Star.add(star.x, star.y, star.color, angle, Math.random() * 0.6 + 0.75, 600);
1604 });
1605}
1606
1607// Flower is like a mini shell
1608//花就像一个迷你的烟花

Callers 1

burstMethod · 0.85

Calls 1

createParticleArcFunction · 0.85

Tested by

no test coverage detected