You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
π Release v1.1.0 β Upgraded with collisions, new lightning effects
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.