festive-effects 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -417,9 +417,14 @@ function randomInRange(min, max) {
417
417
  */
418
418
  function generateParticles(count, viewport, particleTypes, colors, physics, animationType) {
419
419
  const particles = [];
420
+ // Snowflake-specific colors (white & icy blues only)
421
+ const SNOWFLAKE_COLORS = ['#FFFFFF', '#E8F4FF', '#B8D4E8', '#E0F7FF', '#D6EAF8'];
420
422
  for (let i = 0; i < count; i++) {
421
423
  const type = randomFromArray(particleTypes);
422
- const color = randomFromArray(colors);
424
+ // Use snowflake-specific colors for snowflakes, otherwise use festival colors
425
+ const color = type === 'snowflake'
426
+ ? randomFromArray(SNOWFLAKE_COLORS)
427
+ : randomFromArray(colors);
423
428
  const size = randomInRange(physics.scale[0] * 20, physics.scale[1] * 20);
424
429
  // Position calculation based on animation type
425
430
  let x;