Skip to content

πŸŽ‰ Release v1.1.0 – Upgraded with collisions, new lightning effects

Latest

Choose a tag to compare

@MiszterSoul MiszterSoul released this 04 Oct 14:19
· 7 commits to main since this release

Changelog

[1.1.0] - 2024-10-04

Added

  • Collision-Triggered Lightning: Particles now trigger lightning bolts upon collision, with configurable colors, glow, thickness, and intensity.
  • Avoidable Areas: Define specific areas on the canvas that particles should avoid. Added updateAvoidableAreas and getCollidedAvoidableArea methods to dynamically calculate and adjust avoidable areas.

Improved

  • Particle Collision and Movement: Enhanced particle collision logic with dynamic adjustments based on canvas size, frame rate, and particle collisions with avoidable areas.
  • Lightning Behavior: Updated lightning configurations, including new settings for lightning splits, segment control, and lifetime adjustments, providing more control over lightning visuals.
  • Code Performance: Optimized frame rate handling and dynamic particle count adjustments based on FPS limits, ensuring smooth performance across different devices.

Fixed

  • Edge Case Handling: Improved handling of particles at canvas edges, ensuring smooth movement and responsiveness to collision-triggered events.

Configurations

  • New configuration parameters:
    • collisionLightningColor, collisionLightningGlowColor, collisionLightningOpacity, collisionLightningThickness for collision-triggered lightning.
    • minParticleCount, maxParticleCount, particleAdjustStep for dynamic particle adjustments based on canvas size.
    • pauseOnScroll and pauseOnBlur for control over animation pauses based on window focus or scroll events.